{
  "contractName": "GenesisProtocol",
  "abi": [
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "name": "parameters",
      "outputs": [
        {
          "name": "queuedVoteRequiredPercentage",
          "type": "uint256"
        },
        {
          "name": "queuedVotePeriodLimit",
          "type": "uint256"
        },
        {
          "name": "boostedVotePeriodLimit",
          "type": "uint256"
        },
        {
          "name": "preBoostedVotePeriodLimit",
          "type": "uint256"
        },
        {
          "name": "thresholdConst",
          "type": "uint256"
        },
        {
          "name": "limitExponentValue",
          "type": "uint256"
        },
        {
          "name": "quietEndingPeriod",
          "type": "uint256"
        },
        {
          "name": "proposingRepReward",
          "type": "uint256"
        },
        {
          "name": "votersReputationLossRatio",
          "type": "uint256"
        },
        {
          "name": "minimumDaoBounty",
          "type": "uint256"
        },
        {
          "name": "daoBountyConst",
          "type": "uint256"
        },
        {
          "name": "activationTime",
          "type": "uint256"
        },
        {
          "name": "voteOnBehalf",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_params",
          "type": "uint256[11]"
        },
        {
          "name": "_voteOnBehalf",
          "type": "address"
        }
      ],
      "name": "getParametersHash",
      "outputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "payable": false,
      "stateMutability": "pure",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "NO",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "proposalsCnt",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_paramsHash",
          "type": "bytes32"
        },
        {
          "name": "_organizationId",
          "type": "bytes32"
        }
      ],
      "name": "threshold",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "DELEGATION_HASH_EIP712",
      "outputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "name": "proposals",
      "outputs": [
        {
          "name": "organizationId",
          "type": "bytes32"
        },
        {
          "name": "callbacks",
          "type": "address"
        },
        {
          "name": "state",
          "type": "uint8"
        },
        {
          "name": "winningVote",
          "type": "uint256"
        },
        {
          "name": "proposer",
          "type": "address"
        },
        {
          "name": "currentBoostedVotePeriodLimit",
          "type": "uint256"
        },
        {
          "name": "paramsHash",
          "type": "bytes32"
        },
        {
          "name": "daoBountyRemain",
          "type": "uint256"
        },
        {
          "name": "daoBounty",
          "type": "uint256"
        },
        {
          "name": "totalStakes",
          "type": "uint256"
        },
        {
          "name": "confidenceThreshold",
          "type": "uint256"
        },
        {
          "name": "secondsFromTimeOutTillExecuteBoosted",
          "type": "uint256"
        },
        {
          "name": "daoRedeemItsWinnings",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        }
      ],
      "name": "calcExecuteCallBounty",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "name": "_beneficiary",
          "type": "address"
        }
      ],
      "name": "redeemDaoBounty",
      "outputs": [
        {
          "name": "redeemedAmount",
          "type": "uint256"
        },
        {
          "name": "potentialAmount",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "stakingToken",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        }
      ],
      "name": "shouldBoost",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "",
          "type": "uint256"
        },
        {
          "name": "_paramsHash",
          "type": "bytes32"
        },
        {
          "name": "_proposer",
          "type": "address"
        },
        {
          "name": "_organization",
          "type": "address"
        }
      ],
      "name": "propose",
      "outputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_params",
          "type": "uint256[11]"
        },
        {
          "name": "_voteOnBehalf",
          "type": "address"
        }
      ],
      "name": "setParameters",
      "outputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "NUM_OF_CHOICES",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "name": "stakesNonce",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "YES",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "name": "organizations",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "name": "averagesDownstakesOfBoosted",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        }
      ],
      "name": "executeBoosted",
      "outputs": [
        {
          "name": "expirationCallBounty",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "name": "_beneficiary",
          "type": "address"
        }
      ],
      "name": "redeem",
      "outputs": [
        {
          "name": "rewards",
          "type": "uint256[3]"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "name": "orgBoostedProposalsCnt",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "name": "_stakingToken",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "constructor"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "name": "_organization",
          "type": "address"
        },
        {
          "indexed": true,
          "name": "_staker",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "_vote",
          "type": "uint256"
        },
        {
          "indexed": false,
          "name": "_amount",
          "type": "uint256"
        }
      ],
      "name": "Stake",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "name": "_organization",
          "type": "address"
        },
        {
          "indexed": true,
          "name": "_beneficiary",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "_amount",
          "type": "uint256"
        }
      ],
      "name": "Redeem",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "name": "_organization",
          "type": "address"
        },
        {
          "indexed": true,
          "name": "_beneficiary",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "_amount",
          "type": "uint256"
        }
      ],
      "name": "RedeemDaoBounty",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "name": "_organization",
          "type": "address"
        },
        {
          "indexed": true,
          "name": "_beneficiary",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "_amount",
          "type": "uint256"
        }
      ],
      "name": "RedeemReputation",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "indexed": false,
          "name": "_proposalState",
          "type": "uint8"
        }
      ],
      "name": "StateChange",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "indexed": false,
          "name": "_executionState",
          "type": "uint8"
        }
      ],
      "name": "GPExecuteProposal",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "name": "_beneficiary",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "_amount",
          "type": "uint256"
        }
      ],
      "name": "ExpirationCallBounty",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "indexed": false,
          "name": "_confidenceThreshold",
          "type": "uint256"
        }
      ],
      "name": "ConfidenceLevelChange",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "name": "_organization",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "_numOfChoices",
          "type": "uint256"
        },
        {
          "indexed": false,
          "name": "_proposer",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "_paramsHash",
          "type": "bytes32"
        }
      ],
      "name": "NewProposal",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "name": "_organization",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "_decision",
          "type": "uint256"
        },
        {
          "indexed": false,
          "name": "_totalReputation",
          "type": "uint256"
        }
      ],
      "name": "ExecuteProposal",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "name": "_organization",
          "type": "address"
        },
        {
          "indexed": true,
          "name": "_voter",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "_vote",
          "type": "uint256"
        },
        {
          "indexed": false,
          "name": "_reputation",
          "type": "uint256"
        }
      ],
      "name": "VoteProposal",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "name": "_organization",
          "type": "address"
        }
      ],
      "name": "CancelProposal",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "name": "_organization",
          "type": "address"
        },
        {
          "indexed": true,
          "name": "_voter",
          "type": "address"
        }
      ],
      "name": "CancelVoting",
      "type": "event"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "name": "_vote",
          "type": "uint256"
        },
        {
          "name": "_amount",
          "type": "uint256"
        }
      ],
      "name": "stake",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "name": "_vote",
          "type": "uint256"
        },
        {
          "name": "_amount",
          "type": "uint256"
        },
        {
          "name": "_nonce",
          "type": "uint256"
        },
        {
          "name": "_signatureType",
          "type": "uint256"
        },
        {
          "name": "_signature",
          "type": "bytes"
        }
      ],
      "name": "stakeWithSignature",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "name": "_vote",
          "type": "uint256"
        },
        {
          "name": "_amount",
          "type": "uint256"
        },
        {
          "name": "_voter",
          "type": "address"
        }
      ],
      "name": "vote",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        }
      ],
      "name": "cancelVote",
      "outputs": [],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        }
      ],
      "name": "execute",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "name": "getNumberOfChoices",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        }
      ],
      "name": "getProposalTimes",
      "outputs": [
        {
          "name": "times",
          "type": "uint256[3]"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "name": "_voter",
          "type": "address"
        }
      ],
      "name": "voteInfo",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        },
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "name": "_choice",
          "type": "uint256"
        }
      ],
      "name": "voteStatus",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        }
      ],
      "name": "isVotable",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        }
      ],
      "name": "proposalStatus",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        },
        {
          "name": "",
          "type": "uint256"
        },
        {
          "name": "",
          "type": "uint256"
        },
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        }
      ],
      "name": "getProposalOrganization",
      "outputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "name": "_staker",
          "type": "address"
        }
      ],
      "name": "getStaker",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        },
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "name": "_vote",
          "type": "uint256"
        }
      ],
      "name": "voteStake",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        }
      ],
      "name": "winningVote",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        }
      ],
      "name": "state",
      "outputs": [
        {
          "name": "",
          "type": "uint8"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "isAbstainAllow",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "pure",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "getAllowedRangeOfChoices",
      "outputs": [
        {
          "name": "min",
          "type": "uint256"
        },
        {
          "name": "max",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "pure",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        }
      ],
      "name": "score",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    }
  ],
  "metadata": "{\"compiler\":{\"version\":\"0.5.4+commit.9549d8ff\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"parameters\",\"outputs\":[{\"name\":\"queuedVoteRequiredPercentage\",\"type\":\"uint256\"},{\"name\":\"queuedVotePeriodLimit\",\"type\":\"uint256\"},{\"name\":\"boostedVotePeriodLimit\",\"type\":\"uint256\"},{\"name\":\"preBoostedVotePeriodLimit\",\"type\":\"uint256\"},{\"name\":\"thresholdConst\",\"type\":\"uint256\"},{\"name\":\"limitExponentValue\",\"type\":\"uint256\"},{\"name\":\"quietEndingPeriod\",\"type\":\"uint256\"},{\"name\":\"proposingRepReward\",\"type\":\"uint256\"},{\"name\":\"votersReputationLossRatio\",\"type\":\"uint256\"},{\"name\":\"minimumDaoBounty\",\"type\":\"uint256\"},{\"name\":\"daoBountyConst\",\"type\":\"uint256\"},{\"name\":\"activationTime\",\"type\":\"uint256\"},{\"name\":\"voteOnBehalf\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_params\",\"type\":\"uint256[11]\"},{\"name\":\"_voteOnBehalf\",\"type\":\"address\"}],\"name\":\"getParametersHash\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"NO\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"name\":\"_voter\",\"type\":\"address\"}],\"name\":\"voteInfo\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"name\":\"_staker\",\"type\":\"address\"}],\"name\":\"getStaker\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_proposalId\",\"type\":\"bytes32\"}],\"name\":\"getProposalOrganization\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"proposalsCnt\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_paramsHash\",\"type\":\"bytes32\"},{\"name\":\"_organizationId\",\"type\":\"bytes32\"}],\"name\":\"threshold\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"name\":\"_vote\",\"type\":\"uint256\"},{\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"stake\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"DELEGATION_HASH_EIP712\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"proposals\",\"outputs\":[{\"name\":\"organizationId\",\"type\":\"bytes32\"},{\"name\":\"callbacks\",\"type\":\"address\"},{\"name\":\"state\",\"type\":\"uint8\"},{\"name\":\"winningVote\",\"type\":\"uint256\"},{\"name\":\"proposer\",\"type\":\"address\"},{\"name\":\"currentBoostedVotePeriodLimit\",\"type\":\"uint256\"},{\"name\":\"paramsHash\",\"type\":\"bytes32\"},{\"name\":\"daoBountyRemain\",\"type\":\"uint256\"},{\"name\":\"daoBounty\",\"type\":\"uint256\"},{\"name\":\"totalStakes\",\"type\":\"uint256\"},{\"name\":\"confidenceThreshold\",\"type\":\"uint256\"},{\"name\":\"secondsFromTimeOutTillExecuteBoosted\",\"type\":\"uint256\"},{\"name\":\"daoRedeemItsWinnings\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"name\":\"_vote\",\"type\":\"uint256\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_voter\",\"type\":\"address\"}],\"name\":\"vote\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_proposalId\",\"type\":\"bytes32\"}],\"name\":\"winningVote\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_proposalId\",\"type\":\"bytes32\"}],\"name\":\"calcExecuteCallBounty\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"name\":\"_vote\",\"type\":\"uint256\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_nonce\",\"type\":\"uint256\"},{\"name\":\"_signatureType\",\"type\":\"uint256\"},{\"name\":\"_signature\",\"type\":\"bytes\"}],\"name\":\"stakeWithSignature\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getAllowedRangeOfChoices\",\"outputs\":[{\"name\":\"min\",\"type\":\"uint256\"},{\"name\":\"max\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isAbstainAllow\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_proposalId\",\"type\":\"bytes32\"}],\"name\":\"state\",\"outputs\":[{\"name\":\"\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"name\":\"_beneficiary\",\"type\":\"address\"}],\"name\":\"redeemDaoBounty\",\"outputs\":[{\"name\":\"redeemedAmount\",\"type\":\"uint256\"},{\"name\":\"potentialAmount\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"name\":\"_vote\",\"type\":\"uint256\"}],\"name\":\"voteStake\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"stakingToken\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_proposalId\",\"type\":\"bytes32\"}],\"name\":\"proposalStatus\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_proposalId\",\"type\":\"bytes32\"}],\"name\":\"shouldBoost\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"_paramsHash\",\"type\":\"bytes32\"},{\"name\":\"_proposer\",\"type\":\"address\"},{\"name\":\"_organization\",\"type\":\"address\"}],\"name\":\"propose\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_params\",\"type\":\"uint256[11]\"},{\"name\":\"_voteOnBehalf\",\"type\":\"address\"}],\"name\":\"setParameters\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_proposalId\",\"type\":\"bytes32\"}],\"name\":\"cancelVote\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"NUM_OF_CHOICES\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"getNumberOfChoices\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"address\"}],\"name\":\"stakesNonce\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"YES\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"name\":\"_choice\",\"type\":\"uint256\"}],\"name\":\"voteStatus\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"organizations\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"averagesDownstakesOfBoosted\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_proposalId\",\"type\":\"bytes32\"}],\"name\":\"executeBoosted\",\"outputs\":[{\"name\":\"expirationCallBounty\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_proposalId\",\"type\":\"bytes32\"}],\"name\":\"isVotable\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_proposalId\",\"type\":\"bytes32\"}],\"name\":\"getProposalTimes\",\"outputs\":[{\"name\":\"times\",\"type\":\"uint256[3]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"name\":\"_beneficiary\",\"type\":\"address\"}],\"name\":\"redeem\",\"outputs\":[{\"name\":\"rewards\",\"type\":\"uint256[3]\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_proposalId\",\"type\":\"bytes32\"}],\"name\":\"score\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_proposalId\",\"type\":\"bytes32\"}],\"name\":\"execute\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"orgBoostedProposalsCnt\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"_stakingToken\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"_organization\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_staker\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_vote\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"Stake\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"_organization\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_beneficiary\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"Redeem\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"_organization\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_beneficiary\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"RedeemDaoBounty\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"_organization\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_beneficiary\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"RedeemReputation\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"_proposalState\",\"type\":\"uint8\"}],\"name\":\"StateChange\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"_executionState\",\"type\":\"uint8\"}],\"name\":\"GPExecuteProposal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"_beneficiary\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"ExpirationCallBounty\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"_confidenceThreshold\",\"type\":\"uint256\"}],\"name\":\"ConfidenceLevelChange\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"_organization\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_numOfChoices\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_proposer\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_paramsHash\",\"type\":\"bytes32\"}],\"name\":\"NewProposal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"_organization\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_decision\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_totalReputation\",\"type\":\"uint256\"}],\"name\":\"ExecuteProposal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"_organization\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_voter\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_vote\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_reputation\",\"type\":\"uint256\"}],\"name\":\"VoteProposal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"_organization\",\"type\":\"address\"}],\"name\":\"CancelProposal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"_organization\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_voter\",\"type\":\"address\"}],\"name\":\"CancelVoting\",\"type\":\"event\"}],\"devdoc\":{\"methods\":{\"calcExecuteCallBounty(bytes32)\":{\"details\":\"calcExecuteCallBounty calculate the execute boosted call bounty\",\"params\":{\"_proposalId\":\"the ID of the proposal\"},\"return\":\"uint256 executeCallBounty\"},\"cancelVote(bytes32)\":{\"details\":\"Cancel the vote of the msg.sender. cancel vote is not allow in genesisProtocol so this function doing nothing. This function is here in order to comply to the IntVoteInterface .\"},\"constructor\":{\"details\":\"Constructor\"},\"execute(bytes32)\":{\"details\":\"execute check if the proposal has been decided, and if so, execute the proposal\",\"params\":{\"_proposalId\":\"the id of the proposal\"},\"return\":\"bool true - the proposal has been executed             false - otherwise.\"},\"executeBoosted(bytes32)\":{\"details\":\"executeBoosted try to execute a boosted or QuietEndingPeriod proposal if it is expired it rewards the msg.sender with P % of the proposal's upstakes upon a successful call to this function. P = t/150, where t is the number of seconds passed since the the proposal's timeout. P is capped by 10%.\",\"params\":{\"_proposalId\":\"the id of the proposal\"},\"return\":\"uint256 expirationCallBounty the bounty amount for the expiration call\"},\"getAllowedRangeOfChoices()\":{\"details\":\"getAllowedRangeOfChoices returns the allowed range of choices for a voting machine.\",\"return\":\"min - minimum number of choices max - maximum number of choices\"},\"getNumberOfChoices(bytes32)\":{\"details\":\"getNumberOfChoices returns the number of choices possible in this proposal\",\"return\":\"uint256 that contains number of choices\"},\"getParametersHash(uint256[11],address)\":{\"details\":\"hashParameters returns a hash of the given parameters\"},\"getProposalOrganization(bytes32)\":{\"details\":\"getProposalOrganization return the organizationId for a given proposal\",\"params\":{\"_proposalId\":\"the ID of the proposal\"},\"return\":\"bytes32 organization identifier\"},\"getProposalTimes(bytes32)\":{\"details\":\"getProposalTimes returns proposals times variables.\",\"params\":{\"_proposalId\":\"id of the proposal\"},\"return\":\"proposals times array\"},\"getStaker(bytes32,address)\":{\"details\":\"getStaker return the vote and stake amount for a given proposal and staker\",\"params\":{\"_proposalId\":\"the ID of the proposal\",\"_staker\":\"staker address\"},\"return\":\"uint256 voteuint256 amount\"},\"isAbstainAllow()\":{\"details\":\"isAbstainAllow returns if the voting machine allow abstain (0)\",\"return\":\"bool true or false\"},\"isVotable(bytes32)\":{\"details\":\"isVotable check if the proposal is votable\",\"params\":{\"_proposalId\":\"the ID of the proposal\"},\"return\":\"bool true or false\"},\"proposalStatus(bytes32)\":{\"details\":\"proposalStatus return the total votes and stakes for a given proposal\",\"params\":{\"_proposalId\":\"the ID of the proposal\"},\"return\":\"uint256 preBoostedVotes YESuint256 preBoostedVotes NOuint256 total stakes YESuint256 total stakes NO\"},\"propose(uint256,bytes32,address,address)\":{\"details\":\"register a new proposal with the given parameters. Every proposal has a unique ID which is being generated by calculating keccak256 of a incremented counter.\",\"params\":{\"_organization\":\"address\",\"_paramsHash\":\"parameters hash\",\"_proposer\":\"address\"}},\"redeem(bytes32,address)\":{\"details\":\"redeem a reward for a successful stake, vote or proposing. The function use a beneficiary address as a parameter (and not msg.sender) to enable users to redeem on behalf of someone else.\",\"params\":{\"_beneficiary\":\"- the beneficiary address\",\"_proposalId\":\"the ID of the proposal\"},\"return\":\"rewards -          [0] stakerTokenReward          [1] voterReputationReward          [2] proposerReputationReward\"},\"redeemDaoBounty(bytes32,address)\":{\"details\":\"redeemDaoBounty a reward for a successful stake. The function use a beneficiary address as a parameter (and not msg.sender) to enable users to redeem on behalf of someone else.\",\"params\":{\"_beneficiary\":\"- the beneficiary address\",\"_proposalId\":\"the ID of the proposal\"},\"return\":\"redeemedAmount - redeem token amountpotentialAmount - potential redeem token amount(if there is enough tokens bounty at the organization )\"},\"score(bytes32)\":{\"details\":\"score return the proposal score\",\"params\":{\"_proposalId\":\"the ID of the proposal\"},\"return\":\"uint256 proposal score.\"},\"setParameters(uint256[11],address)\":{\"details\":\"hash the parameters, save them if necessary, and return the hash value\",\"params\":{\"_params\":\"a parameters array   _params[0] - _queuedVoteRequiredPercentage,   _params[1] - _queuedVotePeriodLimit, //the time limit for a proposal to be in an absolute voting mode.   _params[2] - _boostedVotePeriodLimit, //the time limit for a proposal to be in an relative voting mode.   _params[3] - _preBoostedVotePeriodLimit, //the time limit for a proposal to be in an preparation                 state (stable) before boosted.   _params[4] -_thresholdConst   _params[5] -_quietEndingPeriod   _params[6] -_proposingRepReward   _params[7] -_votersReputationLossRatio   _params[8] -_minimumDaoBounty   _params[9] -_daoBountyConst   _params[10] -_activationTime\",\"_voteOnBehalf\":\"- authorized to vote on behalf of others.\"}},\"shouldBoost(bytes32)\":{\"details\":\"shouldBoost check if a proposal should be shifted to boosted phase.\",\"params\":{\"_proposalId\":\"the ID of the proposal\"},\"return\":\"bool true or false.\"},\"stake(bytes32,uint256,uint256)\":{\"details\":\"staking function\",\"params\":{\"_amount\":\"the betting amount\",\"_proposalId\":\"id of the proposal\",\"_vote\":\"NO(2) or YES(1).\"},\"return\":\"bool true - the proposal has been executed             false - otherwise.\"},\"stakeWithSignature(bytes32,uint256,uint256,uint256,uint256,bytes)\":{\"details\":\"stakeWithSignature function\",\"params\":{\"_amount\":\"the betting amount\",\"_nonce\":\"nonce value ,it is part of the signature to ensure that a signature can be received only once.\",\"_proposalId\":\"id of the proposal\",\"_signature\":\"- signed data by the staker\",\"_signatureType\":\"signature type 1 - for web3.eth.sign 2 - for eth_signTypedData according to EIP #712.\",\"_vote\":\"NO(2) or YES(1).\"},\"return\":\"bool true - the proposal has been executed             false - otherwise.\"},\"state(bytes32)\":{\"details\":\"voteStake return the state for a given proposal\",\"params\":{\"_proposalId\":\"the ID of the proposal\"},\"return\":\"ProposalState proposal state\"},\"threshold(bytes32,bytes32)\":{\"details\":\"threshold return the organization's score threshold which required by a proposal to shift to boosted state. This threshold is dynamically set and it depend on the number of boosted proposal.\",\"params\":{\"_organizationId\":\"the organization identifier\",\"_paramsHash\":\"the organization parameters hash\"},\"return\":\"uint256 organization's score threshold as real number.\"},\"vote(bytes32,uint256,uint256,address)\":{\"details\":\"voting function\",\"params\":{\"_amount\":\"the reputation amount to vote with . if _amount == 0 it will use all voter reputation.\",\"_proposalId\":\"id of the proposal\",\"_vote\":\"NO(2) or YES(1).\",\"_voter\":\"voter address\"},\"return\":\"bool true - the proposal has been executed             false - otherwise.\"},\"voteInfo(bytes32,address)\":{\"details\":\"voteInfo returns the vote and the amount of reputation of the user committed to this proposal\",\"params\":{\"_proposalId\":\"the ID of the proposal\",\"_voter\":\"the address of the voter\"},\"return\":\"uint256 vote - the voters vote       uint256 reputation - amount of reputation committed by _voter to _proposalId\"},\"voteStake(bytes32,uint256)\":{\"details\":\"voteStake return the amount stakes for a given proposal and vote\",\"params\":{\"_proposalId\":\"the ID of the proposal\",\"_vote\":\"vote number\"},\"return\":\"uint256 stake amount\"},\"voteStatus(bytes32,uint256)\":{\"details\":\"voteStatus returns the reputation voted for a proposal for a specific voting choice.\",\"params\":{\"_choice\":\"the index in the\",\"_proposalId\":\"the ID of the proposal\"},\"return\":\"voted reputation for the given choice\"},\"winningVote(bytes32)\":{\"details\":\"voteStake return the winningVote for a given proposal\",\"params\":{\"_proposalId\":\"the ID of the proposal\"},\"return\":\"uint256 winningVote\"}},\"title\":\"GenesisProtocol implementation -an organization's voting machine scheme.\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"@daostack/infra/contracts/votingMachines/GenesisProtocol.sol\":\"GenesisProtocol\"},\"evmVersion\":\"byzantium\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@daostack/infra/contracts/libs/RealMath.sol\":{\"keccak256\":\"0x3ee79c4b483da327916ac36f9d5cc6a1f2f0363db3ad06793ec67f46e1f653db\",\"urls\":[\"bzzr://548cdb33afa45d2d4bfb0ed3f557257f77c7d9ae142326d04584e20d00c153d3\"]},\"@daostack/infra/contracts/votingMachines/GenesisProtocol.sol\":{\"keccak256\":\"0x0321da6019e0e1a7fc4e1ca484d7d5d376805abb17f9eb9c46a6731e9dfe58dc\",\"urls\":[\"bzzr://4cf93479ffb97b0f90d2974a0404136bfda093edb9e4b6dd3d9737a29202ee63\"]},\"@daostack/infra/contracts/votingMachines/GenesisProtocolLogic.sol\":{\"keccak256\":\"0xfea638b11db020fed40daf661f626ec94f3adba9728f9a9fde40dcc371910dcf\",\"urls\":[\"bzzr://8ee66ecd78ab82cf87a7f9beb15434950ff9752a059731b3b579ab27af97be81\"]},\"@daostack/infra/contracts/votingMachines/IntVoteInterface.sol\":{\"keccak256\":\"0x877991da94b1fe9c2accf69367b32fff474c4e4f7897e9cf5a61fa5d1378908f\",\"urls\":[\"bzzr://a7bb7b3a39a1553cb39378801976c8b192b801f9627098385eca24e62440826b\"]},\"@daostack/infra/contracts/votingMachines/ProposalExecuteInterface.sol\":{\"keccak256\":\"0xb80a153793e1723b35e70ba1c3800975fbc1fae63c989cfb8134a4e58085e181\",\"urls\":[\"bzzr://e5ff7e9f77e596fff366bb31326a7d2ca82d0fdeed1d612c09589eb9fb69d9bf\"]},\"@daostack/infra/contracts/votingMachines/VotingMachineCallbacksInterface.sol\":{\"keccak256\":\"0xec215d305f0aa5a5193b6f0302a1aa6bb84e85460167f80b261faf9d30564563\",\"urls\":[\"bzzr://baae21ef9ee3e315191aece7767d3a9ab62810aff5063ad144cb2120eebdabf0\"]},\"openzeppelin-solidity/contracts/cryptography/ECDSA.sol\":{\"keccak256\":\"0xb48974d92a87053dc1d6c5389f3d1b2ad522dec23afcb508eaa935d98dfdc0b6\",\"urls\":[\"bzzr://e665a84309432c27a26e622665dd97ff29d4d6ad7ad655d6e2c50226a5e99b56\"]},\"openzeppelin-solidity/contracts/math/Math.sol\":{\"keccak256\":\"0x37605dd0606b349cfb1b679892e1bb0ef4ddc16dedb06e229cc4402610a7a848\",\"urls\":[\"bzzr://c2253b0f57a80ee1ab7d90192aec144310e9c9a420d2ca2fcfd5999ae66e8f33\"]},\"openzeppelin-solidity/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x965012d27b4262d7a41f5028cbb30c51ebd9ecd4be8fb30380aaa7a3c64fbc8b\",\"urls\":[\"bzzr://41ca38f6b0fa4b77b0feec43e422cfbec48b7eb38a41edf0b85c77e8d9a296b1\"]},\"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": "0x60806040523480156200001157600080fd5b506040516020806200454b833981018060405260208110156200003357600080fd5b5051806200006373543ff227f64aa17ea132bf9886cab5db55dcaddf64010000000062004392620000b982021704565b15620000955760068054600160a060020a03191673543ff227f64aa17ea132bf9886cab5db55dcaddf179055620000b1565b60068054600160a060020a031916600160a060020a0383161790555b5050620000c1565b6000903b1190565b61447a80620000d16000396000f3fe608060405234801561001057600080fd5b5060043610610265576000357c01000000000000000000000000000000000000000000000000000000009004806372f702f311610158578063b4512913116100d5578063c8f526e811610099578063c8f526e8146108a4578063cc3bf9e9146108f9578063e5af18c514610925578063e751f27114610942578063fb6c0cbb1461095f57610265565b8063b45129131461080d578063ba51b14e14610830578063bb5a05ed1461084d578063beda80151461086a578063c08351061461088757610265565b80639525c0cc1161011c5780639525c0cc146107a35780639bc5689d14610364578063a003651d146107c2578063a05ea6e4146107df578063b2449d651461080557610265565b806372f702f3146106b957806379a1c1f6146106dd57806380f5e0a11461072057806388737b5e1461073d5780638894c41b1461077757610265565b806332ed5b12116101e65780635142bc1e116101aa5780635142bc1e1461061957806351d997b21461062157806361d585da146106295780636359036b1461066a578063707437681461069657610265565b806332ed5b121461046a578063359afa49146105185780633c13381814610550578063404748731461056d578063488c65fc1461058a57610265565b80631702ef0c1161022d5780631702ef0c146103dd57806321b4b3dc146103fa5780632d598e58146104025780632daedd521461042557806330ca0a531461046257610265565b8063025068041461026a57806307b4e1e3146102f55780630d48344214610364578063119ce91b1461036c57806316db5172146103b1575b600080fd5b6102876004803603602081101561028057600080fd5b503561097c565b604080519d8e5260208e019c909c528c8c019a909a5260608c019890985260808b019690965260a08a019490945260c089019290925260e0880152610100870152610120860152610140850152610160840152600160a060020a031661018083015251908190036101a00190f35b610352600480360361018081101561030c57600080fd5b81019080806101600190600b806020026040519081016040528092919082600b60200280828437600092019190915250919450505035600160a060020a031690506109ec565b60408051918252519081900360200190f35b610352610b09565b6103986004803603604081101561038257600080fd5b5080359060200135600160a060020a0316610b0e565b6040805192835260208301919091528051918290030190f35b610398600480360360408110156103c757600080fd5b5080359060200135600160a060020a0316610b71565b610352600480360360208110156103f357600080fd5b5035610ba2565b610352610bb4565b6103526004803603604081101561041857600080fd5b5080359060200135610bba565b61044e6004803603606081101561043b57600080fd5b5080359060208101359060400135610c07565b604080519115158252519081900360200190f35b610352610c1d565b6104876004803603602081101561048057600080fd5b5035610cfd565b604080518e8152600160a060020a038e1660208201529081018c60068111156104ac57fe5b60ff168152602081019b909b5250600160a060020a039098166040808b019190915260608a0197909752608089019590955260a088019390935260c087019190915260e08601526101008501526101208401529015156101408301525190819003610160019350915050f35b61044e6004803603608081101561052e57600080fd5b5080359060208101359060408101359060600135600160a060020a0316610d6b565b6103526004803603602081101561056657600080fd5b5035610e89565b6103526004803603602081101561058357600080fd5b5035610e9e565b61044e600480360360c08110156105a057600080fd5b8135916020810135916040820135916060810135916080820135919081019060c0810160a08201356401000000008111156105da57600080fd5b8201836020820111156105ec57600080fd5b8035906020019184600183028401116401000000008311171561060e57600080fd5b509092509050610f0e565b6103986111fb565b61044e611203565b6106466004803603602081101561063f57600080fd5b5035611209565b6040518082600681111561065657fe5b60ff16815260200191505060405180910390f35b6103986004803603604081101561068057600080fd5b5080359060200135600160a060020a0316611229565b610352600480360360408110156106ac57600080fd5b50803590602001356114d8565b6106c16114f9565b60408051600160a060020a039092168252519081900360200190f35b6106fa600480360360208110156106f357600080fd5b5035611508565b604080519485526020850193909352838301919091526060830152519081900360800190f35b61044e6004803603602081101561073657600080fd5b503561154b565b6103526004803603608081101561075357600080fd5b50803590602081013590600160a060020a0360408201358116916060013516611688565b610352600480360361018081101561078e57600080fd5b50600160a060020a0361016082013516611a9a565b6107c0600480360360208110156107b957600080fd5b5035611ee0565b005b610352600480360360208110156107d857600080fd5b5035611ef9565b610352600480360360208110156107f557600080fd5b5035600160a060020a0316611eff565b610352611f11565b6103526004803603604081101561082357600080fd5b5080359060200135611f16565b6106c16004803603602081101561084657600080fd5b5035611f37565b6103526004803603602081101561086357600080fd5b5035611f52565b6103526004803603602081101561088057600080fd5b5035611f64565b61044e6004803603602081101561089d57600080fd5b50356121d5565b6108c1600480360360208110156108ba57600080fd5b50356121e0565b6040518082606080838360005b838110156108e65781810151838201526020016108ce565b5050505090500191505060405180910390f35b6108c16004803603604081101561090f57600080fd5b5080359060200135600160a060020a031661222f565b6103526004803603602081101561093b57600080fd5b50356129fc565b61044e6004803603602081101561095857600080fd5b5035612a07565b6103526004803603602081101561097557600080fd5b5035612a2e565b600060208190529081526040902080546001820154600283015460038401546004850154600586015460068701546007880154600889015460098a0154600a8b0154600b8c0154600c909c01549a9b999a98999798969795969495939492939192909190600160a060020a03168d565b60008281602002015183600160200201518460026020020151856003602002015186600460200201518760056020020151886006602002015189600760200201518a600860200201518b600960200201518c600a6020020151604051602001808c81526020018b81526020018a81526020018981526020018881526020018781526020018681526020018581526020018481526020018381526020018281526020019b50505050505050505050505060405160208183030381529060405280519060200120826040516020018083815260200182600160a060020a0316600160a060020a03166c01000000000000000000000000028152601401925050506040516020818303038152906040528051906020012090505b92915050565b600281565b600080610b19614204565b5050506000918252600160208181526040808520600160a060020a039490941685526011909301815292829020825160608101845281548082529282015494810185905260029091015460ff16151592019190915291565b6000918252600160208181526040808520600160a060020a0394909416855260139093019052912080549101549091565b60009081526001602052604090205490565b60055481565b6000818152600260209081526040808320548584529183905282206005810154821115610be957806005015491505b6004810154610bfe908363ffffffff612a4016565b95945050505050565b6000610c1584848433612a89565b949350505050565b604080517f616464726573732047656e6573697350726f746f636f6c4164647265737300006020808301919091527f627974657333322050726f706f73616c49640000000000000000000000000000603e8301527f75696e7432353620566f7465000000000000000000000000000000000000000060508301527f75696e7432353620416d6f756e74546f5374616b650000000000000000000000605c8301527f75696e74323536204e6f6e63650000000000000000000000000000000000000060718301528251605e818403018152607e909201909252805191012081565b600160208190526000918252604090912080549181015460028201546003830154600484015460058501546006860154600787015460088801546009890154600a8a0154600e909a0154600160a060020a03808b169b60ff60a060020a909c048c169b99909116989091168d565b600084610d7781612ee3565b1515610d8257600080fd5b6000868152600160205260409020610d98614228565b5060058082015460009081526020818152604080832081516101a0810183528154815260018201549381019390935260028101549183019190915260038101546060830152600481015460808301529283015460a0820152600683015460c0820152600783015460e082015260088301546101008201526009830154610120820152600a830154610140820152600b830154610160820152600c90920154600160a060020a0316610180830181905215610e6d57610180820151600160a060020a03163314610e6657600080fd5b5084610e70565b50335b610e7c89828a8a612f56565b9998505050505050505050565b60009081526001602052604090206002015490565b6000818152600160205260408120600a01546105dc908290610ec790839063ffffffff6135ff16565b600085815260016020818152604080842092845260129092019052902054909150610c1590600a840290610f0290849063ffffffff61361516565b9063ffffffff61364016565b60008084600214156110715750604080517f616464726573732047656e6573697350726f746f636f6c4164647265737300006020808301919091527f627974657333322050726f706f73616c49640000000000000000000000000000603e8301527f75696e7432353620566f7465000000000000000000000000000000000000000060508301527f75696e7432353620416d6f756e74546f5374616b650000000000000000000000605c8301527f75696e74323536204e6f6e63650000000000000000000000000000000000000060718301528251605e818403018152607e830184528051908201206c010000000000000000000000003002609e84015260b283018c905260d283018b905260f283018a90526101128084018a90528451808503909101815261013284018552805190830120610152840191909152610172808401919091528351808403909101815261019290920190925280519101206110ce565b604080516c010000000000000000000000003002602080830191909152603482018c9052605482018b9052607482018a905260948083018a90528351808403909101815260b490920190925280519101206110cb90613664565b90505b600061111885858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250869392505063ffffffff6136b5169050565b9050600160a060020a038116151561117a576040805160e560020a62461bcd02815260206004820152601a60248201527f7374616b657220616464726573732063616e6e6f742062652030000000000000604482015290519081900360640190fd5b600160a060020a038116600090815260076020526040902054871461119e57600080fd5b600160a060020a0381166000908152600760205260409020546111c890600163ffffffff61378b16565b600160a060020a0382166000908152600760205260409020556111ed8a8a8a84612a89565b9a9950505050505050505050565b600160029091565b60005b90565b6000908152600160208190526040909120015460a060020a900460ff1690565b600082815260016020526040812081906002600182015460a060020a900460ff16600681111561125557fe5b1461125f57600080fd5b6002808201546000908152601283016020908152604080832054600160a060020a0389168452601386019092528220928301549092911080156112a6575060028301548154145b80156112b6575060018360020154145b80156112c157508115155b156112df578183600701548260020154028115156112db57fe5b0493505b831580159061138d57506001830154600654604080517f6b8eb403000000000000000000000000000000000000000000000000000000008152600160a060020a039283166004820152602481018b9052905187939290921691636b8eb40391604480820192602092909190829003018186803b15801561135e57600080fd5b505afa158015611372573d6000803e3d6000fd5b505050506040513d602081101561138857600080fd5b505110155b156114ce576000600282015560068301546113ae908563ffffffff61379d16565b60068085019190915560018401549054604080517fbea75f28000000000000000000000000000000000000000000000000000000008152600160a060020a039283166004820152898316602482015260448101889052606481018b90529051919092169163bea75f289160848083019260209291908290030181600087803b15801561143957600080fd5b505af115801561144d573d6000803e3d6000fd5b505050506040513d602081101561146357600080fd5b5051151561147057600080fd5b825460009081526003602090815260409182902054825187815292519697508796600160a060020a03808b16949216928b927fb4a37163ec93e05e09b62e52f7f2ea8cfde431802edede7dfebe53d2ad969dbb929081900390910190a45b5050509250929050565b60009182526001602090815260408084209284526012909201905290205490565b600654600160a060020a031681565b6000908152600160208181526040808420838552601081018352818520546002808752838720549587526012909201909352818520549085529320549093919291565b600061155561429a565b60008381526001602081815260409283902083516101c0810185528154815292810154600160a060020a03811692840192909252919283019060a060020a900460ff1660068111156115a357fe5b60068111156115ae57fe5b815260028201546020820152600380830154600160a060020a0316604080840191909152600484015460608085019190915260058501546080850152600685015460a0850152600785015460c0850152600885015460e08501526009850154610100850152600a8501546101208501528151908101918290526101409093019291600b85019182845b815481526020019060010190808311611637575050509183525050600e919091015460ff16151560209091015260c0810151815191925061167791610bba565b611680846137b2565b119392505050565b6000838152602081905260408120600b015442116116f0576040805160e560020a62461bcd02815260206004820152600e60248201527f6e6f742061637469766520796574000000000000000000000000000000000000604482015290519081900360640190fd5b6000848152602081905260409020546032111561170c57600080fd5b600554604080516c010000000000000000000000003002602080830191909152603480830185905283518084039091018152605490920190925280519101209061175d90600163ffffffff61378b16565b60055561176861429a565b336020828101829052604080516c0100000000000000000000000093840281840152600160a060020a03888116909402603482015281516028818303018152604890910182528051908301208452600381850181905261018085015142905260008a815280845282812060029081015460a08801528a86166080880152606087015260c086018b905285518152925290205416151561187a57600160a060020a03841615156118435780516000908152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff19163317905561187a565b80516000908152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0386161790555b8051600090815260046020908152604080832054898452918390528220600a01546118b191606491610f029163ffffffff61361516565b6000888152602081905260409020600901549091506118d790829063ffffffff61380716565b60e08301526000838152600160208181526040928390208551815590850151918101805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909316929092178083559285015185939192909160a060020a60ff02191660a060020a83600681111561194957fe5b02179055506060820151600282015560808201516003808301805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039093169290921790915560a0830151600483015560c0830151600583015560e08301516006830155610100830151600783015561012083015160088301556101408301516009830155610160830151600a8301556101808301516119ec91600b8401919061431b565b506101a09190910151600e909101805460ff191691151591909117905560e0820151600084815260016020908152604080832060028085526012909101835281842094909455855183526003825291829020548251938452600160a060020a038a8116928501929092528383018b9052915191169185917f75b4ff136cc5de5957574c797de3334eb1c141271922b825eb071e0487ba2c5c916060908290030190a350909695505050505050565b60006064833511801590611ab057506032833510155b1515611af05760405160e560020a62461bcd0281526004018080602001828103825260298152602001806143f36029913960400191505060405180910390fd5b613e80608084013511801590611b0b57506103e86080840135115b1515611b61576040805160e560020a62461bcd02815260206004820152601e60248201527f31303030203c207468726573686f6c64436f6e7374203c3d2031363030300000604482015290519081900360640190fd5b606460e08401351115611bbe576040805160e560020a62461bcd02815260206004820181905260248201527f766f7465727352657075746174696f6e4c6f7373526174696f203c3d20313030604482015290519081900360640190fd5b60a083013560408401351015611c085760405160e560020a62461bcd02815260040180806020018281038252602b8152602001806143c8602b913960400191505060405180910390fd5b600061010084013511611c65576040805160e560020a62461bcd02815260206004820152601e60248201527f6d696e696d756d44616f426f756e74792073686f756c64206265203e20300000604482015290519081900360640190fd5b600061012084013511611cc2576040805160e560020a62461bcd02815260206004820152601c60248201527f64616f426f756e7479436f6e73742073686f756c64206265203e203000000000604482015290519081900360640190fd5b6000611cf884600b806020026040519081016040528092919082600b602002808284376000920191909152508691506109ec9050565b905060ac60026107d05b613e80811015611d4c57608087013581108015611d26575060028102608088013511155b15611d3e578183811515611d3657fe5b049250611d4c565b600190910190600202611d02565b50604080516101a0810182528735815260208089013590820152878201359181019190915260608088013590820152608080820190611dad908901357affffffffffffffffffffffffffffffffffffffffffffffffffffff166103e8613817565b815260208101849052604001876005602090810291909101358252018760066020908102919091013582520187600760209081029190910135825201876008602090810291909101358252018760096020908102919091013582520187600a602090810291909101358252600160a060020a03978816918101919091526000858152808252604090819020835181559183015160018301558201516002820155606082015160038201556080820151600482015560a0820151600582015560c0820151600682015560e0820151600782015561010082015160088201556101208201516009820155610140820151600a820155610160820151600b82015561018090910151600c909101805473ffffffffffffffffffffffffffffffffffffffff19169190961617909455509392505050565b80611eea81612ee3565b1515611ef557600080fd5b5050565b50600290565b60076020526000908152604090205481565b600181565b6000918252600160209081526040808420928452600f909201905290205490565b600360205260009081526040902054600160a060020a031681565b60046020526000908152604090205481565b60008181526001602052604081206005600182015460a060020a900460ff166006811115611f8e57fe5b1480611fb357506006600182015460a060020a900460ff166006811115611fb157fe5b145b1515611ff35760405160e560020a62461bcd02815260040180806020018281038252603381526020018061441c6033913960400191505060405180910390fd5b611ffc8361384e565b1515612052576040805160e560020a62461bcd02815260206004820152601760248201527f70726f706f73616c206e65656420746f20657870697265000000000000000000604482015290519081900360640190fd5b61207e612071600b83016001015460048401549063ffffffff61378b16565b429063ffffffff61379d16565b600a82015561208c83610e9e565b60088201549092506120a4908363ffffffff61379d16565b6008820155600654604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018590529051600160a060020a039092169163a9059cbb916044808201926020929091908290030181600087803b15801561211657600080fd5b505af115801561212a573d6000803e3d6000fd5b505050506040513d602081101561214057600080fd5b50511515612198576040805160e560020a62461bcd02815260206004820152601d60248201527f7472616e7366657220746f206d73672e73656e646572206661696c6564000000604482015290519081900360640190fd5b604080518381529051339185917f7468017f6ff596af88244327e88fe691ac48cc1db88b033d11c335f2c7ccdd039181900360200190a350919050565b6000610b0382612ee3565b6121e8614359565b60008281526001602052604090819020815160608101909252600b0160038282826020028201915b8154815260200190600101908083116122105750505050509050919050565b612237614359565b60008381526001602052604090206002600182015460a060020a900460ff16600681111561226157fe5b1480612285575060018082015460a060020a900460ff16600681111561228357fe5b145b15156122c55760405160e560020a62461bcd02815260040180806020018281038252602d81526020018061439b602d913960400191505060405180910390fd5b6122cd614228565b5060058082015460009081526020818152604080832081516101a081018352815481526001820154818501526002808301548285015260038301546060830152600483015460808301529582015460a0820152600682015460c0820152600782015460e082015260088201546101008201526009820154610120820152600a820154610140820152600b820154610160820152600c90910154600160a060020a0390811661018083015288168452601386018352818420948601548452601286019092528220549092916123d96123a389610e9e565b6001600090815260128801602052604080822054600283529120546123cd9163ffffffff61378b16565b9063ffffffff61379d16565b90506000836001015411156124aa5760018086015460a060020a900460ff16600681111561240357fe5b141561241557600183015486526124a2565b6002850154835414156124a25782546001141561247e57808560070154101561247957600061245186600701548361379d90919063ffffffff16565b90508261246b82866001015461361590919063ffffffff16565b81151561247457fe5b048752505b6124a2565b60018301548290612495908363ffffffff61361516565b81151561249e57fe5b0486525b600060018401555b600e85015460ff161580156124da57508454600090815260036020526040902054600160a060020a038881169116145b80156124ff575060018086015460a060020a900460ff1660068111156124fc57fe5b14155b801561250f575060028560020154145b15612562576007850154612550906123cd84612531838663ffffffff61361516565b81151561253a57fe5b048960005b60200201519063ffffffff61378b16565b8652600e8501805460ff191660011790555b600160a060020a038716600090815260118601602052604090206001810154158015906125935750600281015460ff165b156126da5760018087015460a060020a900460ff1660068111156125b357fe5b14156125eb5760646125d7866101000151836001015461361590919063ffffffff16565b8115156125e057fe5b0460208801526126d2565b8054600287015414156126d2576000600187600201541415612620575060026000908152601087016020526040902054612635565b50600160009081526010870160205260409020545b606461264f8761010001518361361590919063ffffffff16565b81151561265857fe5b6002890154600090815260108a01602052604090205460018501549290910492506126cb9161268d908463ffffffff61361516565b81151561269657fe5b0460646126b5896101000151866001015461361590919063ffffffff16565b8115156126be57fe5b049063ffffffff61378b16565b6020890152505b600060018201555b6003860154600160a060020a0389811691161480156126fd575060018660020154145b801561271557506003860154600160a060020a031615155b156127445760e0850151604088015260038601805473ffffffffffffffffffffffffffffffffffffffff191690555b8651156128af578651600887015461275b9161379d565b60088701556006548751604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a038c8116600483015260248201939093529051919092169163a9059cbb9160448083019260209291908290030181600087803b1580156127d257600080fd5b505af11580156127e6573d6000803e3d6000fd5b505050506040513d60208110156127fc57600080fd5b50511515612854576040805160e560020a62461bcd02815260206004820152601e60248201527f7472616e7366657220746f2062656e6566696369617279206661696c65640000604482015290519081900360640190fd5b855460009081526003602090815260409182902054895183519081529251600160a060020a038c8116949216928d927f6d26871c9f457d104b2122485f659f126f7a0cf6938cf20482c03f49794a2fbf929081900390910190a45b60408701516128c09088600161253f565b156129f0576001860154600160a060020a031663d29b5d2f6128eb89600260200201518a600161253f565b8a8c6040518463ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018084815260200183600160a060020a0316600160a060020a031681526020018281526020019350505050602060405180830381600087803b15801561295f57600080fd5b505af1158015612973573d6000803e3d6000fd5b505050506040513d602081101561298957600080fd5b50508554600090815260036020526040902054600160a060020a03808a1691168a7f7419b736daacf66d5c1645948c956fca2b83be1e2e02d486d65713f289d683b86129de8b600260200201518c600161253f565b60408051918252519081900360200190a45b50505050505092915050565b6000610b03826137b2565b600081612a1381612ee3565b1515612a1e57600080fd5b612a278361384e565b9392505050565b60026020526000908152604090205481565b60008282650100000000005b8115610bfe578160011660011415612a6b57612a688184614170565b90505b6002909104908115612a8457612a818384614170565b92505b612a4c565b600060028411158015612a9c5750600084115b1515612af2576040805160e560020a62461bcd02815260206004820152601060248201527f77726f6e6720766f74652076616c756500000000000000000000000000000000604482015290519081900360640190fd5b60008311612b4a576040805160e560020a62461bcd02815260206004820152601b60248201527f7374616b696e6720616d6f756e742073686f756c64206265203e300000000000604482015290519081900360640190fd5b612b538561384e565b15612b6057506001610c15565b60008581526001602052604090206004600182015460a060020a900460ff166006811115612b8a57fe5b14158015612bb257506003600182015460a060020a900460ff166006811115612baf57fe5b14155b15612bc1576000915050610c15565b600160a060020a0383166000908152601382016020526040812060018101549091108015612bf0575080548614155b15612c0057600092505050610c15565b600654604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a038781166004830152306024830152604482018990529151889392909216916323b872dd916064808201926020929091908290030181600087803b158015612c7857600080fd5b505af1158015612c8c573d6000803e3d6000fd5b505050506040513d6020811015612ca257600080fd5b50511515612cfa576040805160e560020a62461bcd02815260206004820152601960248201527f6661696c207472616e736665722066726f6d207374616b657200000000000000604482015290519081900360640190fd5b6008830154612d0f908263ffffffff61378b16565b60088401556001820154612d29908263ffffffff61378b16565b600183018190557001000000000000000000000000000000001015612d98576040805160e560020a62461bcd02815260206004820152601a60248201527f7374616b696e6720616d6f756e7420697320746f6f2068696768000000000000604482015290519081900360640190fd5b6006830154612dbf907001000000000000000000000000000000009063ffffffff61379d16565b60088401541115612e1a576040805160e560020a62461bcd02815260206004820152601860248201527f746f74616c207374616b657320697320746f6f20686967680000000000000000604482015290519081900360640190fd5b6001871415612e3e576002820154612e38908263ffffffff61378b16565b60028301555b8682556000878152601284016020526040902054612e6390829063ffffffff61378b16565b60008881526012850160209081526040808320939093558554825260038152908290205482518a81529182018990528251600160a060020a03808a16949216928c927fd0239d7d4acf51def4507fa173be466927de5d75d8b10d840cd6994d6e10231092918290030190a4612ed78861384e565b98975050505050505050565b60008181526001602081905260408220015460a060020a900460ff166004816006811115612f0d57fe5b1480612f2457506005816006811115612f2257fe5b145b80612f3a57506006816006811115612f3857fe5b145b80612a2757506003816006811115612f4e57fe5b149392505050565b600060028311158015612f695750600083115b1515612fbf576040805160e560020a62461bcd02815260206004820152600e60248201527f30203c205f766f7465203c3d2032000000000000000000000000000000000000604482015290519081900360640190fd5b612fc88561384e565b15612fd557506001610c15565b612fdd614228565b506000858152600160208181526040808420600580820154865285845282862083516101a0810185528154815281870154818701526002820154818601526003820154606082015260048083015460808301529282015460a0820152600682015460c0820152600782015460e082015260088201546101008201526009820154610120820152600a820154610140820152600b820154610160820152600c90910154600160a060020a039081166101808301528c88528686529583015484517f9588378e0000000000000000000000000000000000000000000000000000000081528c881693810193909352602483018d905293519096929592949390921692639588378e92604480840193829003018186803b1580156130fd57600080fd5b505afa158015613111573d6000803e3d6000fd5b505050506040513d602081101561312757600080fd5b5051905060008111613183576040805160e560020a62461bcd02815260206004820152601b60248201527f5f766f746572206d75737420686176652072657075746174696f6e0000000000604482015290519081900360640190fd5b848110156131db576040805160e560020a62461bcd02815260206004820152601260248201527f72657075746174696f6e203e3d205f7265700000000000000000000000000000604482015290519081900360640190fd5b848015156131e65750805b600160a060020a038816600090815260118401602052604090206001015415613216576000945050505050610c15565b6000878152600f8401602052604090205461323890829063ffffffff61378b16565b6000888152600f850160205260408082208390556002860154825281205490899052108061329057506002808401546000908152600f8501602052604080822054928252902054148015613290575060018360020154145b156133b3576005600184015460a060020a900460ff1660068111156132b157fe5b1480156132d1575060c0840151604085015103600b840160010154420310155b806132f557506006600184015460a060020a900460ff1660068111156132f357fe5b145b156133ab576006600184015460a060020a900460ff16600681111561331657fe5b146133a45760c0840151600484015560018301805460a060020a60ff0219167406000000000000000000000000000000000000000017908190556040518a917f21aca7f0285ccddeca2935074d3e36b5ab8fea0327f84cbbf12cf1b6d1a749f99160a060020a90910460ff16908082600681111561339057fe5b60ff16815260200191505060405180910390a25b42600c8401555b600283018790555b60408051606081018252888152602081018390529081016004600186015460a060020a900460ff1660068111156133e657fe5b148061340b57506003600186015460a060020a900460ff16600681111561340957fe5b145b15159052600160a060020a0389166000908152601185016020908152604091829020835181559083015160018201559101516002909101805460ff19169115159190911790556004600184015460a060020a900460ff16600681111561346d57fe5b148061349257506003600184015460a060020a900460ff16600681111561349057fe5b145b1561359a5760008781526010840160205260409020546134b990829063ffffffff61378b16565b60008881526010850160205260408120919091556101008501516064906134e6908463ffffffff61361516565b8115156134ef57fe5b6001860154604080517ff81f8bf60000000000000000000000000000000000000000000000000000000081529390920460048401819052600160a060020a038d81166024860152604485018f9052925190945091169163f81f8bf69160648083019260209291908290030181600087803b15801561356c57600080fd5b505af1158015613580573d6000803e3d6000fd5b505050506040513d602081101561359657600080fd5b5050505b82546000908152600360209081526040918290205482518a81529182018490528251600160a060020a03808d16949216928d927f066c061a3792cb3eb64a441a928655fcbafb4a54b49725fe9cd2951df5e7189e92918290030190a4610e7c8961384e565b600081831061360e5781612a27565b5090919050565b600082151561362657506000610b03565b82820282848281151561363557fe5b0414612a2757600080fd5b600080821161364e57600080fd5b6000828481151561365b57fe5b04949350505050565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b600080600080845160411415156136d25760009350505050610b03565b50505060208201516040830151606084015160001a601b60ff821610156136f757601b015b8060ff16601b1415801561370f57508060ff16601c14155b156137205760009350505050610b03565b6040805160008152602080820180845289905260ff8416828401526060820186905260808201859052915160019260a0808401939192601f1981019281900390910190855afa158015613777573d6000803e3d6000fd5b505050602060405103519350505050610b03565b600082820183811015612a2757600080fd5b6000828211156137ac57600080fd5b50900390565b60008181526001602081815260408084206002855260128101909252808420549284528320549091612a27917affffffffffffffffffffffffffffffffffffffffffffffffffffff169063ffffffff61381716565b60008183101561360e5781612a27565b6000612a277affffffffffffffffffffffffffffffffffffffffffffffffffffff80851665010000000000908102918516026141e7565b60008161385a81612ee3565b151561386557600080fd5b600083815260016020526040902061387b614228565b506005808201546000908152602081815260409182902082516101a0810184528154815260018201549281019290925260028101549282019290925260038201546060820152600482015460808201529181015460a0830152600681015460c0830152600781015460e083015260088101546101008301526009810154610120830152600a810154610140830152600b810154610160830152600c0154600160a060020a031661018082015261392f61429a565b604080516101c081018252845481526001850154600160a060020a0381166020830152909185919083019060a060020a900460ff16600681111561396f57fe5b600681111561397a57fe5b815260028201546020820152600380830154600160a060020a0316604080840191909152600484015460608085019190915260058501546080850152600685015460a0850152600785015460c0850152600885015460e08501526009850154610100850152600a8501546101208501528151908101918290526101409093019291600b85019182845b815481526020019060010190808311613a03575050509183525050600e919091015460ff1615156020918201526001850154604080517fb551c373000000000000000000000000000000000000000000000000000000008152600481018b90529051939450600093600160a060020a039092169263b551c37392602480840193829003018186803b158015613a9757600080fd5b505afa158015613aab573d6000803e3d6000fd5b505050506040513d6020811015613ac157600080fd5b5051835160028601546000908152600f87016020526040812054929350606484049091029181908190841015613b71576003600189015460a060020a900460ff166006811115613b0d57fe5b1415613b1c5760019250613b4c565b6004600189015460a060020a900460ff166006811115613b3857fe5b1415613b475760039250613b4c565b600592505b6001880180546002919060a060020a60ff02191660a060020a835b0217905550613dfc565b6003600189015460a060020a900460ff166006811115613b8d57fe5b1415613c26576020870151600b890154420310613bcb5760018801805460a060020a60ff02191660a060020a17905560028089018190559250613c26565b613bdd88600501548960000154610bba565b905080613be98c6137b2565b1115613c265760018801805460a060020a60ff0219167404000000000000000000000000000000000000000017905542600d890155600988018190555b6004600189015460a060020a900460ff166006811115613c4257fe5b1415613dfc57613c5a88600501548960000154610bba565b6060880151909150600b890160020154420310613d595780613c7b8c6137b2565b1115613d355787546000908152600260205260409020546110001115613d30576001888101805460a060020a60ff0219167405000000000000000000000000000000000000000017905542600c8a01558854600090815260026020818152604080842080549095019094558b54835260048152838320548282528484205492845260128d01909152929091205491935090839003811515613d1857fe5b89546000908152600460205260409020919005830190555b613d54565b6001880180546003919060a060020a60ff02191660a060020a83613b67565b613dfc565b6000613d648c6137b2565b60098a0154909150613d7c908363ffffffff6135ff16565b8111613db05760018901805460a060020a60ff02191674030000000000000000000000000000000000000000179055613dfa565b8089600901541115613dfa57600989018290556040805183815290518d917fad767d61af51c7895fa3cc0497dde01afb610c74e55ee4d8a71fa5e3ee136d54919081900360200190a25b505b6005600189015460a060020a900460ff166006811115613e1857fe5b1480613e3d57506006600189015460a060020a900460ff166006811115613e3b57fe5b145b15613e81576004880154600c890154420310613e815760018801805460a060020a60ff02191674020000000000000000000000000000000000000000179055600492505b6000836005811115613e8f57fe5b146140ca576004836005811115613ea257fe5b1480613eb957506005836005811115613eb757fe5b145b15613f78578551600090815260026020526040902054613ee090600163ffffffff61379d16565b865160009081526002602052604080822092909255875181522054801515613f18578854600090815260046020526040812055613f76565b88546000908152600460209081526040808320546002845260128d01909252909120549093508190613f57906123cd866001850163ffffffff61361516565b811515613f6057fe5b8a54600090815260046020526040902091900490555b505b87546000908152600360209081526040918290205460028b015483519081529182018890528251600160a060020a03909116928e927f37471b9c9d295ffb1309ad070b8964700bfb7b555e8e8292d0b6cbc7dba35d10929081900390910190a38a7f46a713b994c752c68fbefa9048bec9a0010cc7d933ad95a3c3dbb25931a167e7846040518082600581111561400b57fe5b60ff16815260200191505060405180910390a260018801546002890154604080517f9d4c162d000000000000000000000000000000000000000000000000000000008152600481018f9052602481019290925251600160a060020a0390921691639d4c162d916044808201926020929091908290030181600087803b15801561409357600080fd5b505af11580156140a7573d6000803e3d6000fd5b505050506040513d60208110156140bd57600080fd5b5050600688015460078901555b600188015460a060020a900460ff1660068111156140e457fe5b866040015160068111156140f457fe5b14614151578a7f21aca7f0285ccddeca2935074d3e36b5ab8fea0327f84cbbf12cf1b6d1a749f98960010160149054906101000a900460ff166040518082600681111561413d57fe5b60ff16815260200191505060405180910390a25b600083600581111561415f57fe5b14159b9a5050505050505050505050565b600082820282848281151561418157fe5b04146141d7576040805160e560020a62461bcd02815260206004820152601560248201527f5265616c4d617468206d756c206f766572666c6f770000000000000000000000604482015290519081900360640190fd5b6501000000000090049392505050565b6000816501000000000084028115156141fc57fe5b049392505050565b60606040519081016040528060008152602001600081526020016000151581525090565b6101a0604051908101604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000600160a060020a031681525090565b604080516102008101825260008082526020820181905290918201908152602001600081526020016000600160a060020a031681526020016000815260200160008019168152602001600081526020016000815260200160008152602001600081526020016000815260200161430e614359565b8152600060209091015290565b8260038101928215614349579160200282015b8281111561434957825182559160200191906001019061432e565b50614355929150614378565b5090565b6060604051908101604052806003906020820280388339509192915050565b61120691905b80821115614355576000815560010161437e565b6000903b119056fe50726f706f73616c2073686f756c64206265204578656375746564206f722045787069726564496e5175657565626f6f73746564566f7465506572696f644c696d6974203e3d207175696574456e64696e67506572696f643530203c3d20717565756564566f7465526571756972656450657263656e74616765203c3d2031303070726f706f73616c20737461746520696e206e6f7420426f6f73746564206e6f72205175696574456e64696e67506572696f64a165627a7a72305820b245ca9a6f2d7b8aabb67d17c023f7cb514e1c60360315fc0729c044b776d3be0029",
  "deployedBytecode": "0x608060405234801561001057600080fd5b5060043610610265576000357c01000000000000000000000000000000000000000000000000000000009004806372f702f311610158578063b4512913116100d5578063c8f526e811610099578063c8f526e8146108a4578063cc3bf9e9146108f9578063e5af18c514610925578063e751f27114610942578063fb6c0cbb1461095f57610265565b8063b45129131461080d578063ba51b14e14610830578063bb5a05ed1461084d578063beda80151461086a578063c08351061461088757610265565b80639525c0cc1161011c5780639525c0cc146107a35780639bc5689d14610364578063a003651d146107c2578063a05ea6e4146107df578063b2449d651461080557610265565b806372f702f3146106b957806379a1c1f6146106dd57806380f5e0a11461072057806388737b5e1461073d5780638894c41b1461077757610265565b806332ed5b12116101e65780635142bc1e116101aa5780635142bc1e1461061957806351d997b21461062157806361d585da146106295780636359036b1461066a578063707437681461069657610265565b806332ed5b121461046a578063359afa49146105185780633c13381814610550578063404748731461056d578063488c65fc1461058a57610265565b80631702ef0c1161022d5780631702ef0c146103dd57806321b4b3dc146103fa5780632d598e58146104025780632daedd521461042557806330ca0a531461046257610265565b8063025068041461026a57806307b4e1e3146102f55780630d48344214610364578063119ce91b1461036c57806316db5172146103b1575b600080fd5b6102876004803603602081101561028057600080fd5b503561097c565b604080519d8e5260208e019c909c528c8c019a909a5260608c019890985260808b019690965260a08a019490945260c089019290925260e0880152610100870152610120860152610140850152610160840152600160a060020a031661018083015251908190036101a00190f35b610352600480360361018081101561030c57600080fd5b81019080806101600190600b806020026040519081016040528092919082600b60200280828437600092019190915250919450505035600160a060020a031690506109ec565b60408051918252519081900360200190f35b610352610b09565b6103986004803603604081101561038257600080fd5b5080359060200135600160a060020a0316610b0e565b6040805192835260208301919091528051918290030190f35b610398600480360360408110156103c757600080fd5b5080359060200135600160a060020a0316610b71565b610352600480360360208110156103f357600080fd5b5035610ba2565b610352610bb4565b6103526004803603604081101561041857600080fd5b5080359060200135610bba565b61044e6004803603606081101561043b57600080fd5b5080359060208101359060400135610c07565b604080519115158252519081900360200190f35b610352610c1d565b6104876004803603602081101561048057600080fd5b5035610cfd565b604080518e8152600160a060020a038e1660208201529081018c60068111156104ac57fe5b60ff168152602081019b909b5250600160a060020a039098166040808b019190915260608a0197909752608089019590955260a088019390935260c087019190915260e08601526101008501526101208401529015156101408301525190819003610160019350915050f35b61044e6004803603608081101561052e57600080fd5b5080359060208101359060408101359060600135600160a060020a0316610d6b565b6103526004803603602081101561056657600080fd5b5035610e89565b6103526004803603602081101561058357600080fd5b5035610e9e565b61044e600480360360c08110156105a057600080fd5b8135916020810135916040820135916060810135916080820135919081019060c0810160a08201356401000000008111156105da57600080fd5b8201836020820111156105ec57600080fd5b8035906020019184600183028401116401000000008311171561060e57600080fd5b509092509050610f0e565b6103986111fb565b61044e611203565b6106466004803603602081101561063f57600080fd5b5035611209565b6040518082600681111561065657fe5b60ff16815260200191505060405180910390f35b6103986004803603604081101561068057600080fd5b5080359060200135600160a060020a0316611229565b610352600480360360408110156106ac57600080fd5b50803590602001356114d8565b6106c16114f9565b60408051600160a060020a039092168252519081900360200190f35b6106fa600480360360208110156106f357600080fd5b5035611508565b604080519485526020850193909352838301919091526060830152519081900360800190f35b61044e6004803603602081101561073657600080fd5b503561154b565b6103526004803603608081101561075357600080fd5b50803590602081013590600160a060020a0360408201358116916060013516611688565b610352600480360361018081101561078e57600080fd5b50600160a060020a0361016082013516611a9a565b6107c0600480360360208110156107b957600080fd5b5035611ee0565b005b610352600480360360208110156107d857600080fd5b5035611ef9565b610352600480360360208110156107f557600080fd5b5035600160a060020a0316611eff565b610352611f11565b6103526004803603604081101561082357600080fd5b5080359060200135611f16565b6106c16004803603602081101561084657600080fd5b5035611f37565b6103526004803603602081101561086357600080fd5b5035611f52565b6103526004803603602081101561088057600080fd5b5035611f64565b61044e6004803603602081101561089d57600080fd5b50356121d5565b6108c1600480360360208110156108ba57600080fd5b50356121e0565b6040518082606080838360005b838110156108e65781810151838201526020016108ce565b5050505090500191505060405180910390f35b6108c16004803603604081101561090f57600080fd5b5080359060200135600160a060020a031661222f565b6103526004803603602081101561093b57600080fd5b50356129fc565b61044e6004803603602081101561095857600080fd5b5035612a07565b6103526004803603602081101561097557600080fd5b5035612a2e565b600060208190529081526040902080546001820154600283015460038401546004850154600586015460068701546007880154600889015460098a0154600a8b0154600b8c0154600c909c01549a9b999a98999798969795969495939492939192909190600160a060020a03168d565b60008281602002015183600160200201518460026020020151856003602002015186600460200201518760056020020151886006602002015189600760200201518a600860200201518b600960200201518c600a6020020151604051602001808c81526020018b81526020018a81526020018981526020018881526020018781526020018681526020018581526020018481526020018381526020018281526020019b50505050505050505050505060405160208183030381529060405280519060200120826040516020018083815260200182600160a060020a0316600160a060020a03166c01000000000000000000000000028152601401925050506040516020818303038152906040528051906020012090505b92915050565b600281565b600080610b19614204565b5050506000918252600160208181526040808520600160a060020a039490941685526011909301815292829020825160608101845281548082529282015494810185905260029091015460ff16151592019190915291565b6000918252600160208181526040808520600160a060020a0394909416855260139093019052912080549101549091565b60009081526001602052604090205490565b60055481565b6000818152600260209081526040808320548584529183905282206005810154821115610be957806005015491505b6004810154610bfe908363ffffffff612a4016565b95945050505050565b6000610c1584848433612a89565b949350505050565b604080517f616464726573732047656e6573697350726f746f636f6c4164647265737300006020808301919091527f627974657333322050726f706f73616c49640000000000000000000000000000603e8301527f75696e7432353620566f7465000000000000000000000000000000000000000060508301527f75696e7432353620416d6f756e74546f5374616b650000000000000000000000605c8301527f75696e74323536204e6f6e63650000000000000000000000000000000000000060718301528251605e818403018152607e909201909252805191012081565b600160208190526000918252604090912080549181015460028201546003830154600484015460058501546006860154600787015460088801546009890154600a8a0154600e909a0154600160a060020a03808b169b60ff60a060020a909c048c169b99909116989091168d565b600084610d7781612ee3565b1515610d8257600080fd5b6000868152600160205260409020610d98614228565b5060058082015460009081526020818152604080832081516101a0810183528154815260018201549381019390935260028101549183019190915260038101546060830152600481015460808301529283015460a0820152600683015460c0820152600783015460e082015260088301546101008201526009830154610120820152600a830154610140820152600b830154610160820152600c90920154600160a060020a0316610180830181905215610e6d57610180820151600160a060020a03163314610e6657600080fd5b5084610e70565b50335b610e7c89828a8a612f56565b9998505050505050505050565b60009081526001602052604090206002015490565b6000818152600160205260408120600a01546105dc908290610ec790839063ffffffff6135ff16565b600085815260016020818152604080842092845260129092019052902054909150610c1590600a840290610f0290849063ffffffff61361516565b9063ffffffff61364016565b60008084600214156110715750604080517f616464726573732047656e6573697350726f746f636f6c4164647265737300006020808301919091527f627974657333322050726f706f73616c49640000000000000000000000000000603e8301527f75696e7432353620566f7465000000000000000000000000000000000000000060508301527f75696e7432353620416d6f756e74546f5374616b650000000000000000000000605c8301527f75696e74323536204e6f6e63650000000000000000000000000000000000000060718301528251605e818403018152607e830184528051908201206c010000000000000000000000003002609e84015260b283018c905260d283018b905260f283018a90526101128084018a90528451808503909101815261013284018552805190830120610152840191909152610172808401919091528351808403909101815261019290920190925280519101206110ce565b604080516c010000000000000000000000003002602080830191909152603482018c9052605482018b9052607482018a905260948083018a90528351808403909101815260b490920190925280519101206110cb90613664565b90505b600061111885858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250869392505063ffffffff6136b5169050565b9050600160a060020a038116151561117a576040805160e560020a62461bcd02815260206004820152601a60248201527f7374616b657220616464726573732063616e6e6f742062652030000000000000604482015290519081900360640190fd5b600160a060020a038116600090815260076020526040902054871461119e57600080fd5b600160a060020a0381166000908152600760205260409020546111c890600163ffffffff61378b16565b600160a060020a0382166000908152600760205260409020556111ed8a8a8a84612a89565b9a9950505050505050505050565b600160029091565b60005b90565b6000908152600160208190526040909120015460a060020a900460ff1690565b600082815260016020526040812081906002600182015460a060020a900460ff16600681111561125557fe5b1461125f57600080fd5b6002808201546000908152601283016020908152604080832054600160a060020a0389168452601386019092528220928301549092911080156112a6575060028301548154145b80156112b6575060018360020154145b80156112c157508115155b156112df578183600701548260020154028115156112db57fe5b0493505b831580159061138d57506001830154600654604080517f6b8eb403000000000000000000000000000000000000000000000000000000008152600160a060020a039283166004820152602481018b9052905187939290921691636b8eb40391604480820192602092909190829003018186803b15801561135e57600080fd5b505afa158015611372573d6000803e3d6000fd5b505050506040513d602081101561138857600080fd5b505110155b156114ce576000600282015560068301546113ae908563ffffffff61379d16565b60068085019190915560018401549054604080517fbea75f28000000000000000000000000000000000000000000000000000000008152600160a060020a039283166004820152898316602482015260448101889052606481018b90529051919092169163bea75f289160848083019260209291908290030181600087803b15801561143957600080fd5b505af115801561144d573d6000803e3d6000fd5b505050506040513d602081101561146357600080fd5b5051151561147057600080fd5b825460009081526003602090815260409182902054825187815292519697508796600160a060020a03808b16949216928b927fb4a37163ec93e05e09b62e52f7f2ea8cfde431802edede7dfebe53d2ad969dbb929081900390910190a45b5050509250929050565b60009182526001602090815260408084209284526012909201905290205490565b600654600160a060020a031681565b6000908152600160208181526040808420838552601081018352818520546002808752838720549587526012909201909352818520549085529320549093919291565b600061155561429a565b60008381526001602081815260409283902083516101c0810185528154815292810154600160a060020a03811692840192909252919283019060a060020a900460ff1660068111156115a357fe5b60068111156115ae57fe5b815260028201546020820152600380830154600160a060020a0316604080840191909152600484015460608085019190915260058501546080850152600685015460a0850152600785015460c0850152600885015460e08501526009850154610100850152600a8501546101208501528151908101918290526101409093019291600b85019182845b815481526020019060010190808311611637575050509183525050600e919091015460ff16151560209091015260c0810151815191925061167791610bba565b611680846137b2565b119392505050565b6000838152602081905260408120600b015442116116f0576040805160e560020a62461bcd02815260206004820152600e60248201527f6e6f742061637469766520796574000000000000000000000000000000000000604482015290519081900360640190fd5b6000848152602081905260409020546032111561170c57600080fd5b600554604080516c010000000000000000000000003002602080830191909152603480830185905283518084039091018152605490920190925280519101209061175d90600163ffffffff61378b16565b60055561176861429a565b336020828101829052604080516c0100000000000000000000000093840281840152600160a060020a03888116909402603482015281516028818303018152604890910182528051908301208452600381850181905261018085015142905260008a815280845282812060029081015460a08801528a86166080880152606087015260c086018b905285518152925290205416151561187a57600160a060020a03841615156118435780516000908152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff19163317905561187a565b80516000908152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0386161790555b8051600090815260046020908152604080832054898452918390528220600a01546118b191606491610f029163ffffffff61361516565b6000888152602081905260409020600901549091506118d790829063ffffffff61380716565b60e08301526000838152600160208181526040928390208551815590850151918101805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909316929092178083559285015185939192909160a060020a60ff02191660a060020a83600681111561194957fe5b02179055506060820151600282015560808201516003808301805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039093169290921790915560a0830151600483015560c0830151600583015560e08301516006830155610100830151600783015561012083015160088301556101408301516009830155610160830151600a8301556101808301516119ec91600b8401919061431b565b506101a09190910151600e909101805460ff191691151591909117905560e0820151600084815260016020908152604080832060028085526012909101835281842094909455855183526003825291829020548251938452600160a060020a038a8116928501929092528383018b9052915191169185917f75b4ff136cc5de5957574c797de3334eb1c141271922b825eb071e0487ba2c5c916060908290030190a350909695505050505050565b60006064833511801590611ab057506032833510155b1515611af05760405160e560020a62461bcd0281526004018080602001828103825260298152602001806143f36029913960400191505060405180910390fd5b613e80608084013511801590611b0b57506103e86080840135115b1515611b61576040805160e560020a62461bcd02815260206004820152601e60248201527f31303030203c207468726573686f6c64436f6e7374203c3d2031363030300000604482015290519081900360640190fd5b606460e08401351115611bbe576040805160e560020a62461bcd02815260206004820181905260248201527f766f7465727352657075746174696f6e4c6f7373526174696f203c3d20313030604482015290519081900360640190fd5b60a083013560408401351015611c085760405160e560020a62461bcd02815260040180806020018281038252602b8152602001806143c8602b913960400191505060405180910390fd5b600061010084013511611c65576040805160e560020a62461bcd02815260206004820152601e60248201527f6d696e696d756d44616f426f756e74792073686f756c64206265203e20300000604482015290519081900360640190fd5b600061012084013511611cc2576040805160e560020a62461bcd02815260206004820152601c60248201527f64616f426f756e7479436f6e73742073686f756c64206265203e203000000000604482015290519081900360640190fd5b6000611cf884600b806020026040519081016040528092919082600b602002808284376000920191909152508691506109ec9050565b905060ac60026107d05b613e80811015611d4c57608087013581108015611d26575060028102608088013511155b15611d3e578183811515611d3657fe5b049250611d4c565b600190910190600202611d02565b50604080516101a0810182528735815260208089013590820152878201359181019190915260608088013590820152608080820190611dad908901357affffffffffffffffffffffffffffffffffffffffffffffffffffff166103e8613817565b815260208101849052604001876005602090810291909101358252018760066020908102919091013582520187600760209081029190910135825201876008602090810291909101358252018760096020908102919091013582520187600a602090810291909101358252600160a060020a03978816918101919091526000858152808252604090819020835181559183015160018301558201516002820155606082015160038201556080820151600482015560a0820151600582015560c0820151600682015560e0820151600782015561010082015160088201556101208201516009820155610140820151600a820155610160820151600b82015561018090910151600c909101805473ffffffffffffffffffffffffffffffffffffffff19169190961617909455509392505050565b80611eea81612ee3565b1515611ef557600080fd5b5050565b50600290565b60076020526000908152604090205481565b600181565b6000918252600160209081526040808420928452600f909201905290205490565b600360205260009081526040902054600160a060020a031681565b60046020526000908152604090205481565b60008181526001602052604081206005600182015460a060020a900460ff166006811115611f8e57fe5b1480611fb357506006600182015460a060020a900460ff166006811115611fb157fe5b145b1515611ff35760405160e560020a62461bcd02815260040180806020018281038252603381526020018061441c6033913960400191505060405180910390fd5b611ffc8361384e565b1515612052576040805160e560020a62461bcd02815260206004820152601760248201527f70726f706f73616c206e65656420746f20657870697265000000000000000000604482015290519081900360640190fd5b61207e612071600b83016001015460048401549063ffffffff61378b16565b429063ffffffff61379d16565b600a82015561208c83610e9e565b60088201549092506120a4908363ffffffff61379d16565b6008820155600654604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018590529051600160a060020a039092169163a9059cbb916044808201926020929091908290030181600087803b15801561211657600080fd5b505af115801561212a573d6000803e3d6000fd5b505050506040513d602081101561214057600080fd5b50511515612198576040805160e560020a62461bcd02815260206004820152601d60248201527f7472616e7366657220746f206d73672e73656e646572206661696c6564000000604482015290519081900360640190fd5b604080518381529051339185917f7468017f6ff596af88244327e88fe691ac48cc1db88b033d11c335f2c7ccdd039181900360200190a350919050565b6000610b0382612ee3565b6121e8614359565b60008281526001602052604090819020815160608101909252600b0160038282826020028201915b8154815260200190600101908083116122105750505050509050919050565b612237614359565b60008381526001602052604090206002600182015460a060020a900460ff16600681111561226157fe5b1480612285575060018082015460a060020a900460ff16600681111561228357fe5b145b15156122c55760405160e560020a62461bcd02815260040180806020018281038252602d81526020018061439b602d913960400191505060405180910390fd5b6122cd614228565b5060058082015460009081526020818152604080832081516101a081018352815481526001820154818501526002808301548285015260038301546060830152600483015460808301529582015460a0820152600682015460c0820152600782015460e082015260088201546101008201526009820154610120820152600a820154610140820152600b820154610160820152600c90910154600160a060020a0390811661018083015288168452601386018352818420948601548452601286019092528220549092916123d96123a389610e9e565b6001600090815260128801602052604080822054600283529120546123cd9163ffffffff61378b16565b9063ffffffff61379d16565b90506000836001015411156124aa5760018086015460a060020a900460ff16600681111561240357fe5b141561241557600183015486526124a2565b6002850154835414156124a25782546001141561247e57808560070154101561247957600061245186600701548361379d90919063ffffffff16565b90508261246b82866001015461361590919063ffffffff16565b81151561247457fe5b048752505b6124a2565b60018301548290612495908363ffffffff61361516565b81151561249e57fe5b0486525b600060018401555b600e85015460ff161580156124da57508454600090815260036020526040902054600160a060020a038881169116145b80156124ff575060018086015460a060020a900460ff1660068111156124fc57fe5b14155b801561250f575060028560020154145b15612562576007850154612550906123cd84612531838663ffffffff61361516565b81151561253a57fe5b048960005b60200201519063ffffffff61378b16565b8652600e8501805460ff191660011790555b600160a060020a038716600090815260118601602052604090206001810154158015906125935750600281015460ff165b156126da5760018087015460a060020a900460ff1660068111156125b357fe5b14156125eb5760646125d7866101000151836001015461361590919063ffffffff16565b8115156125e057fe5b0460208801526126d2565b8054600287015414156126d2576000600187600201541415612620575060026000908152601087016020526040902054612635565b50600160009081526010870160205260409020545b606461264f8761010001518361361590919063ffffffff16565b81151561265857fe5b6002890154600090815260108a01602052604090205460018501549290910492506126cb9161268d908463ffffffff61361516565b81151561269657fe5b0460646126b5896101000151866001015461361590919063ffffffff16565b8115156126be57fe5b049063ffffffff61378b16565b6020890152505b600060018201555b6003860154600160a060020a0389811691161480156126fd575060018660020154145b801561271557506003860154600160a060020a031615155b156127445760e0850151604088015260038601805473ffffffffffffffffffffffffffffffffffffffff191690555b8651156128af578651600887015461275b9161379d565b60088701556006548751604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a038c8116600483015260248201939093529051919092169163a9059cbb9160448083019260209291908290030181600087803b1580156127d257600080fd5b505af11580156127e6573d6000803e3d6000fd5b505050506040513d60208110156127fc57600080fd5b50511515612854576040805160e560020a62461bcd02815260206004820152601e60248201527f7472616e7366657220746f2062656e6566696369617279206661696c65640000604482015290519081900360640190fd5b855460009081526003602090815260409182902054895183519081529251600160a060020a038c8116949216928d927f6d26871c9f457d104b2122485f659f126f7a0cf6938cf20482c03f49794a2fbf929081900390910190a45b60408701516128c09088600161253f565b156129f0576001860154600160a060020a031663d29b5d2f6128eb89600260200201518a600161253f565b8a8c6040518463ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018084815260200183600160a060020a0316600160a060020a031681526020018281526020019350505050602060405180830381600087803b15801561295f57600080fd5b505af1158015612973573d6000803e3d6000fd5b505050506040513d602081101561298957600080fd5b50508554600090815260036020526040902054600160a060020a03808a1691168a7f7419b736daacf66d5c1645948c956fca2b83be1e2e02d486d65713f289d683b86129de8b600260200201518c600161253f565b60408051918252519081900360200190a45b50505050505092915050565b6000610b03826137b2565b600081612a1381612ee3565b1515612a1e57600080fd5b612a278361384e565b9392505050565b60026020526000908152604090205481565b60008282650100000000005b8115610bfe578160011660011415612a6b57612a688184614170565b90505b6002909104908115612a8457612a818384614170565b92505b612a4c565b600060028411158015612a9c5750600084115b1515612af2576040805160e560020a62461bcd02815260206004820152601060248201527f77726f6e6720766f74652076616c756500000000000000000000000000000000604482015290519081900360640190fd5b60008311612b4a576040805160e560020a62461bcd02815260206004820152601b60248201527f7374616b696e6720616d6f756e742073686f756c64206265203e300000000000604482015290519081900360640190fd5b612b538561384e565b15612b6057506001610c15565b60008581526001602052604090206004600182015460a060020a900460ff166006811115612b8a57fe5b14158015612bb257506003600182015460a060020a900460ff166006811115612baf57fe5b14155b15612bc1576000915050610c15565b600160a060020a0383166000908152601382016020526040812060018101549091108015612bf0575080548614155b15612c0057600092505050610c15565b600654604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a038781166004830152306024830152604482018990529151889392909216916323b872dd916064808201926020929091908290030181600087803b158015612c7857600080fd5b505af1158015612c8c573d6000803e3d6000fd5b505050506040513d6020811015612ca257600080fd5b50511515612cfa576040805160e560020a62461bcd02815260206004820152601960248201527f6661696c207472616e736665722066726f6d207374616b657200000000000000604482015290519081900360640190fd5b6008830154612d0f908263ffffffff61378b16565b60088401556001820154612d29908263ffffffff61378b16565b600183018190557001000000000000000000000000000000001015612d98576040805160e560020a62461bcd02815260206004820152601a60248201527f7374616b696e6720616d6f756e7420697320746f6f2068696768000000000000604482015290519081900360640190fd5b6006830154612dbf907001000000000000000000000000000000009063ffffffff61379d16565b60088401541115612e1a576040805160e560020a62461bcd02815260206004820152601860248201527f746f74616c207374616b657320697320746f6f20686967680000000000000000604482015290519081900360640190fd5b6001871415612e3e576002820154612e38908263ffffffff61378b16565b60028301555b8682556000878152601284016020526040902054612e6390829063ffffffff61378b16565b60008881526012850160209081526040808320939093558554825260038152908290205482518a81529182018990528251600160a060020a03808a16949216928c927fd0239d7d4acf51def4507fa173be466927de5d75d8b10d840cd6994d6e10231092918290030190a4612ed78861384e565b98975050505050505050565b60008181526001602081905260408220015460a060020a900460ff166004816006811115612f0d57fe5b1480612f2457506005816006811115612f2257fe5b145b80612f3a57506006816006811115612f3857fe5b145b80612a2757506003816006811115612f4e57fe5b149392505050565b600060028311158015612f695750600083115b1515612fbf576040805160e560020a62461bcd02815260206004820152600e60248201527f30203c205f766f7465203c3d2032000000000000000000000000000000000000604482015290519081900360640190fd5b612fc88561384e565b15612fd557506001610c15565b612fdd614228565b506000858152600160208181526040808420600580820154865285845282862083516101a0810185528154815281870154818701526002820154818601526003820154606082015260048083015460808301529282015460a0820152600682015460c0820152600782015460e082015260088201546101008201526009820154610120820152600a820154610140820152600b820154610160820152600c90910154600160a060020a039081166101808301528c88528686529583015484517f9588378e0000000000000000000000000000000000000000000000000000000081528c881693810193909352602483018d905293519096929592949390921692639588378e92604480840193829003018186803b1580156130fd57600080fd5b505afa158015613111573d6000803e3d6000fd5b505050506040513d602081101561312757600080fd5b5051905060008111613183576040805160e560020a62461bcd02815260206004820152601b60248201527f5f766f746572206d75737420686176652072657075746174696f6e0000000000604482015290519081900360640190fd5b848110156131db576040805160e560020a62461bcd02815260206004820152601260248201527f72657075746174696f6e203e3d205f7265700000000000000000000000000000604482015290519081900360640190fd5b848015156131e65750805b600160a060020a038816600090815260118401602052604090206001015415613216576000945050505050610c15565b6000878152600f8401602052604090205461323890829063ffffffff61378b16565b6000888152600f850160205260408082208390556002860154825281205490899052108061329057506002808401546000908152600f8501602052604080822054928252902054148015613290575060018360020154145b156133b3576005600184015460a060020a900460ff1660068111156132b157fe5b1480156132d1575060c0840151604085015103600b840160010154420310155b806132f557506006600184015460a060020a900460ff1660068111156132f357fe5b145b156133ab576006600184015460a060020a900460ff16600681111561331657fe5b146133a45760c0840151600484015560018301805460a060020a60ff0219167406000000000000000000000000000000000000000017908190556040518a917f21aca7f0285ccddeca2935074d3e36b5ab8fea0327f84cbbf12cf1b6d1a749f99160a060020a90910460ff16908082600681111561339057fe5b60ff16815260200191505060405180910390a25b42600c8401555b600283018790555b60408051606081018252888152602081018390529081016004600186015460a060020a900460ff1660068111156133e657fe5b148061340b57506003600186015460a060020a900460ff16600681111561340957fe5b145b15159052600160a060020a0389166000908152601185016020908152604091829020835181559083015160018201559101516002909101805460ff19169115159190911790556004600184015460a060020a900460ff16600681111561346d57fe5b148061349257506003600184015460a060020a900460ff16600681111561349057fe5b145b1561359a5760008781526010840160205260409020546134b990829063ffffffff61378b16565b60008881526010850160205260408120919091556101008501516064906134e6908463ffffffff61361516565b8115156134ef57fe5b6001860154604080517ff81f8bf60000000000000000000000000000000000000000000000000000000081529390920460048401819052600160a060020a038d81166024860152604485018f9052925190945091169163f81f8bf69160648083019260209291908290030181600087803b15801561356c57600080fd5b505af1158015613580573d6000803e3d6000fd5b505050506040513d602081101561359657600080fd5b5050505b82546000908152600360209081526040918290205482518a81529182018490528251600160a060020a03808d16949216928d927f066c061a3792cb3eb64a441a928655fcbafb4a54b49725fe9cd2951df5e7189e92918290030190a4610e7c8961384e565b600081831061360e5781612a27565b5090919050565b600082151561362657506000610b03565b82820282848281151561363557fe5b0414612a2757600080fd5b600080821161364e57600080fd5b6000828481151561365b57fe5b04949350505050565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b600080600080845160411415156136d25760009350505050610b03565b50505060208201516040830151606084015160001a601b60ff821610156136f757601b015b8060ff16601b1415801561370f57508060ff16601c14155b156137205760009350505050610b03565b6040805160008152602080820180845289905260ff8416828401526060820186905260808201859052915160019260a0808401939192601f1981019281900390910190855afa158015613777573d6000803e3d6000fd5b505050602060405103519350505050610b03565b600082820183811015612a2757600080fd5b6000828211156137ac57600080fd5b50900390565b60008181526001602081815260408084206002855260128101909252808420549284528320549091612a27917affffffffffffffffffffffffffffffffffffffffffffffffffffff169063ffffffff61381716565b60008183101561360e5781612a27565b6000612a277affffffffffffffffffffffffffffffffffffffffffffffffffffff80851665010000000000908102918516026141e7565b60008161385a81612ee3565b151561386557600080fd5b600083815260016020526040902061387b614228565b506005808201546000908152602081815260409182902082516101a0810184528154815260018201549281019290925260028101549282019290925260038201546060820152600482015460808201529181015460a0830152600681015460c0830152600781015460e083015260088101546101008301526009810154610120830152600a810154610140830152600b810154610160830152600c0154600160a060020a031661018082015261392f61429a565b604080516101c081018252845481526001850154600160a060020a0381166020830152909185919083019060a060020a900460ff16600681111561396f57fe5b600681111561397a57fe5b815260028201546020820152600380830154600160a060020a0316604080840191909152600484015460608085019190915260058501546080850152600685015460a0850152600785015460c0850152600885015460e08501526009850154610100850152600a8501546101208501528151908101918290526101409093019291600b85019182845b815481526020019060010190808311613a03575050509183525050600e919091015460ff1615156020918201526001850154604080517fb551c373000000000000000000000000000000000000000000000000000000008152600481018b90529051939450600093600160a060020a039092169263b551c37392602480840193829003018186803b158015613a9757600080fd5b505afa158015613aab573d6000803e3d6000fd5b505050506040513d6020811015613ac157600080fd5b5051835160028601546000908152600f87016020526040812054929350606484049091029181908190841015613b71576003600189015460a060020a900460ff166006811115613b0d57fe5b1415613b1c5760019250613b4c565b6004600189015460a060020a900460ff166006811115613b3857fe5b1415613b475760039250613b4c565b600592505b6001880180546002919060a060020a60ff02191660a060020a835b0217905550613dfc565b6003600189015460a060020a900460ff166006811115613b8d57fe5b1415613c26576020870151600b890154420310613bcb5760018801805460a060020a60ff02191660a060020a17905560028089018190559250613c26565b613bdd88600501548960000154610bba565b905080613be98c6137b2565b1115613c265760018801805460a060020a60ff0219167404000000000000000000000000000000000000000017905542600d890155600988018190555b6004600189015460a060020a900460ff166006811115613c4257fe5b1415613dfc57613c5a88600501548960000154610bba565b6060880151909150600b890160020154420310613d595780613c7b8c6137b2565b1115613d355787546000908152600260205260409020546110001115613d30576001888101805460a060020a60ff0219167405000000000000000000000000000000000000000017905542600c8a01558854600090815260026020818152604080842080549095019094558b54835260048152838320548282528484205492845260128d01909152929091205491935090839003811515613d1857fe5b89546000908152600460205260409020919005830190555b613d54565b6001880180546003919060a060020a60ff02191660a060020a83613b67565b613dfc565b6000613d648c6137b2565b60098a0154909150613d7c908363ffffffff6135ff16565b8111613db05760018901805460a060020a60ff02191674030000000000000000000000000000000000000000179055613dfa565b8089600901541115613dfa57600989018290556040805183815290518d917fad767d61af51c7895fa3cc0497dde01afb610c74e55ee4d8a71fa5e3ee136d54919081900360200190a25b505b6005600189015460a060020a900460ff166006811115613e1857fe5b1480613e3d57506006600189015460a060020a900460ff166006811115613e3b57fe5b145b15613e81576004880154600c890154420310613e815760018801805460a060020a60ff02191674020000000000000000000000000000000000000000179055600492505b6000836005811115613e8f57fe5b146140ca576004836005811115613ea257fe5b1480613eb957506005836005811115613eb757fe5b145b15613f78578551600090815260026020526040902054613ee090600163ffffffff61379d16565b865160009081526002602052604080822092909255875181522054801515613f18578854600090815260046020526040812055613f76565b88546000908152600460209081526040808320546002845260128d01909252909120549093508190613f57906123cd866001850163ffffffff61361516565b811515613f6057fe5b8a54600090815260046020526040902091900490555b505b87546000908152600360209081526040918290205460028b015483519081529182018890528251600160a060020a03909116928e927f37471b9c9d295ffb1309ad070b8964700bfb7b555e8e8292d0b6cbc7dba35d10929081900390910190a38a7f46a713b994c752c68fbefa9048bec9a0010cc7d933ad95a3c3dbb25931a167e7846040518082600581111561400b57fe5b60ff16815260200191505060405180910390a260018801546002890154604080517f9d4c162d000000000000000000000000000000000000000000000000000000008152600481018f9052602481019290925251600160a060020a0390921691639d4c162d916044808201926020929091908290030181600087803b15801561409357600080fd5b505af11580156140a7573d6000803e3d6000fd5b505050506040513d60208110156140bd57600080fd5b5050600688015460078901555b600188015460a060020a900460ff1660068111156140e457fe5b866040015160068111156140f457fe5b14614151578a7f21aca7f0285ccddeca2935074d3e36b5ab8fea0327f84cbbf12cf1b6d1a749f98960010160149054906101000a900460ff166040518082600681111561413d57fe5b60ff16815260200191505060405180910390a25b600083600581111561415f57fe5b14159b9a5050505050505050505050565b600082820282848281151561418157fe5b04146141d7576040805160e560020a62461bcd02815260206004820152601560248201527f5265616c4d617468206d756c206f766572666c6f770000000000000000000000604482015290519081900360640190fd5b6501000000000090049392505050565b6000816501000000000084028115156141fc57fe5b049392505050565b60606040519081016040528060008152602001600081526020016000151581525090565b6101a0604051908101604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000600160a060020a031681525090565b604080516102008101825260008082526020820181905290918201908152602001600081526020016000600160a060020a031681526020016000815260200160008019168152602001600081526020016000815260200160008152602001600081526020016000815260200161430e614359565b8152600060209091015290565b8260038101928215614349579160200282015b8281111561434957825182559160200191906001019061432e565b50614355929150614378565b5090565b6060604051908101604052806003906020820280388339509192915050565b61120691905b80821115614355576000815560010161437e565b6000903b119056fe50726f706f73616c2073686f756c64206265204578656375746564206f722045787069726564496e5175657565626f6f73746564566f7465506572696f644c696d6974203e3d207175696574456e64696e67506572696f643530203c3d20717565756564566f7465526571756972656450657263656e74616765203c3d2031303070726f706f73616c20737461746520696e206e6f7420426f6f73746564206e6f72205175696574456e64696e67506572696f64a165627a7a72305820b245ca9a6f2d7b8aabb67d17c023f7cb514e1c60360315fc0729c044b776d3be0029",
  "sourceMap": "220:9987:46:-;;;774:141;8:9:-1;5:2;;;30:1;27;20:12;5:2;774:141:46;;;;;;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;774:141:46;;6719:39:47;6145:42;6719:37;;;;;;:39;:::i;:::-;6715:169;;;6774:12;:40;;-1:-1:-1;;;;;;6774:40:47;6145:42;6774:40;;;6715:169;;;6845:12;:28;;-1:-1:-1;;;;;;6845:28:47;-1:-1:-1;;;;;6845:28:47;;;;;6715:169;6293:597;774:141:46;220:9987;;463:616:93;523:4;1026:20;;1064:8;;463:616::o;220:9987:46:-;;;;;;;",
  "deployedSourceMap": "220:9987:46:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;220:9987:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5368:46:47;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5368:46:47;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5368:46:47;;;;;;;;;;;;;;21967:774;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;21967:774:47;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;21967:774:47;;-1:-1:-1;;;21967:774:47;-1:-1:-1;;;;;21967:774:47;;-1:-1:-1;21967:774:47;:::i;:::-;;;;;;;;;;;;;;;;5933:30;;;:::i;6066:211:46:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;6066:211:46;;;;;;-1:-1:-1;;;;;6066:211:46;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;8224:215;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8224:215:46;;;;;;-1:-1:-1;;;;;8224:215:46;;:::i;7819:148::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;7819:148:46;;:::i;6006:27:47:-;;;:::i;21501:384::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21501:384:47;;;;;;;:::i;1187:162:46:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1187:162:46;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;441:220;;;:::i;5460:43:47:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5460:43:47;;:::i;:::-;;;;;;;-1:-1:-1;;;;;5460:43:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;5460:43:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5460:43:47;-1:-1:-1;;5460:43:47;3842:554:46;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;3842:554:46;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3842:554:46;;:::i;8970:131::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8970:131:46;;:::i;20309:350:47:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20309:350:47;;:::i;1959:1510:46:-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;1959:1510:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;1959:1510:46;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;1959:1510:46;;;;;;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;-1:-1;1959:1510:46;;-1:-1:-1;1959:1510:46;-1:-1:-1;1959:1510:46;:::i;9825:117::-;;;:::i;9530:83::-;;;:::i;9278:125::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;9278:125:46;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18723:1396:47;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18723:1396:47;;;;;;-1:-1:-1;;;;;18723:1396:47;;:::i;8658:146:46:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8658:146:46;;;;;;;:::i;6068:26:47:-;;;:::i;:::-;;;;-1:-1:-1;;;;;6068:26:47;;;;;;;;;;;;;;7263:361:46;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;7263:361:46;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20845:230:47;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20845:230:47;;:::i;7481:1952::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;7481:1952:47;;;;;;;;-1:-1:-1;;;;;7481:1952:47;;;;;;;;;;;;:::i;11796:1829::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;11796:1829:47;;;;;;:::i;4612:123:46:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4612:123:46;;:::i;:::-;;5285:106;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5285:106:46;;:::i;668:44::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;668:44:46;-1:-1:-1;;;;;668:44:46;;:::i;5969:31:47:-;;;:::i;6532:150:46:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;6532:150:46;;;;;;;:::i;5674:60:47:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5674:60:47;;:::i;5793:86::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5793:86:47;;:::i;9924:927::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;9924:927:47;;:::i;6838:115:46:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;6838:115:46;;:::i;5563:143::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5563:143:46;;:::i;:::-;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;5563:143:46;;;;;;;;;;;;;;;;14184:4042:47;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;14184:4042:47;;;;;;-1:-1:-1;;;;;14184:4042:47;;:::i;10096:109:46:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;10096:109:46;;:::i;4999:127::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4999:127:46;;:::i;5572:52:47:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5572:52:47;;:::i;5368:46::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5368:46:47;;:::o;21967:774::-;22153:7;22390;22153;22390:10;;;;22418:7;22426:1;22418:10;;;;22446:7;22454:1;22446:10;;;;22474:7;22482:1;22474:10;;;;22502:7;22510:1;22502:10;;;;22530:7;22538:1;22530:10;;;;22558:7;22566:1;22558:10;;;;22586:7;22594:1;22586:10;;;;22614:7;22622:1;22614:10;;;;22642:7;22650:1;22642:10;;;;22670:7;22678:2;22670:11;;;;22356:326;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;22356:326:47;;;22333:363;;;;;;22710:13;22303:430;;;;;;;;;;;-1:-1:-1;;;;;22303:430:47;-1:-1:-1;;;;;22303:430:47;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;22303:430:47;;;22280:454;;;;;;22273:461;;21967:774;;;;;:::o;5933:30::-;5962:1;5933:30;:::o;6066:211:46:-;6143:4;6149;6165:18;;:::i;:::-;-1:-1:-1;;;6186:22:46;;;;:9;:22;;;;;;;;-1:-1:-1;;;;;6186:37:46;;;;;;:29;;;;:37;;;;;;6165:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6066:211::o;8224:215::-;8303:7;8339:22;;;:9;:22;;;;;;;;-1:-1:-1;;;;;8339:39:46;;;;;;:30;;;;:39;;;;:44;;8385:46;;;8339:44;;8224:215::o;7819:148::-;7895:7;7922:22;;;:9;:22;;;;;:37;;7819:148::o;6006:27:47:-;;;;:::o;21501:384::-;21586:7;21621:39;;;:22;:39;;;;;;;;;21698:23;;;;;;;;;21744:25;;;;21736:33;;21732:97;;;21793:6;:25;;;21785:33;;21732:97;21846:21;;;;:32;;21872:5;21846:32;:25;:32;:::i;:::-;21839:39;21501:384;-1:-1:-1;;;;;21501:384:47:o;1187:162:46:-;1272:4;1295:47;1302:11;1315:5;1322:7;1331:10;1295:6;:47::i;:::-;1288:54;1187:162;-1:-1:-1;;;;1187:162:46:o;441:220::-;504:156;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22:32:-1;26:21;;;22:32;6:49;;504:156:46;;;;;;;494:167;;;;;441:220;:::o;5460:43:47:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5460:43:47;;;;;-1:-1:-1;;;5460:43:47;;;;;;;;;;;;;;;:::o;3842:554:46:-;3975:4;3950:11;7130:23:47;7141:11;7130:10;:23::i;:::-;7122:32;;;;;;;;3991:25:46;4019:22;;;:9;:22;;;;;4051:24;;:::i;:::-;-1:-1:-1;4089:19:46;;;;;4078:10;:31;;;;;;;;;;;4051:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4051:58:46;;;;;;;4146:33;4142:183;;4217:19;;;;-1:-1:-1;;;;;4203:33:46;:10;:33;4195:42;;;;;;-1:-1:-1;4259:6:46;4142:183;;;-1:-1:-1;4304:10:46;4142:183;4341:48;4354:11;4367:5;4374;4381:7;4341:12;:48::i;:::-;4334:55;3842:554;-1:-1:-1;;;;;;;;;3842:554:46:o;8970:131::-;9034:7;9060:22;;;:9;:22;;;;;:34;;;;8970:131::o;20309:350:47:-;20381:7;20497:22;;;:9;:22;;;;;:59;;;20424:4;;20381:7;;20467:90;;20424:4;;20467:90;:29;:90;:::i;:::-;20592:22;;;;:9;:22;;;;;;;;:34;;;:29;;;;:34;;;;;20438:119;;-1:-1:-1;20574:78:47;;20649:2;20632:19;;;20574:53;;20438:119;;20574:53;:17;:53;:::i;:::-;:57;:78;:57;:78;:::i;1959:1510:46:-;2198:4;2269:24;2307:14;2325:1;2307:19;2303:757;;;-1:-1:-1;504:156:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22:32:-1;26:21;;;22:32;6:49;;504:156:46;;;;;494:167;;;;;;2485:189;2535:4;2485:189;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;2485:189:46;;;;;2450:246;;;;;;2388:326;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;2388:326:46;;;;;;;2361:367;;;;;2303:757;;;2813:189;;;;2863:4;2813:189;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;2813:189:46;;;;;;;2778:246;;;;;:271;;:269;:271::i;:::-;2759:290;;2303:757;3069:14;3086:36;3111:10;;3086:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;3086:16:46;;:36;-1:-1:-1;;3086:36:46;:24;:36;;-1:-1:-1;3086:36:46:i;:::-;3069:53;-1:-1:-1;;;;;;3245:20:46;;;;3237:59;;;;;-1:-1:-1;;;;;3237:59:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3314:19:46;;;;;;:11;:19;;;;;;:29;;3306:38;;;;;;-1:-1:-1;;;;;3376:19:46;;;;;;:11;:19;;;;;;:26;;3400:1;3376:26;:23;:26;:::i;:::-;-1:-1:-1;;;;;3354:19:46;;;;;;:11;:19;;;;;:48;3419:43;3426:11;3439:5;3446:7;3366:6;3419;:43::i;:::-;3412:50;1959:1510;-1:-1:-1;;;;;;;;;;1959:1510:46:o;9825:117::-;5999:1:47;5962;9825:117:46;;:::o;9530:83::-;9578:4;9530:83;;:::o;9278:125::-;9336:13;9368:22;;;:9;:22;;;;;;;;:28;;-1:-1:-1;;;9368:28:46;;;;;9278:125::o;18723:1396:47:-;18814:22;18901;;;:9;:22;;;;;18814;;18959;18941:14;;;;-1:-1:-1;;;18941:14:47;;;;:40;;;;;;;;;18933:49;;;;;;19037:20;;;;;18992:26;19021:37;;;:15;;;:37;;;;;;;;;-1:-1:-1;;;;;19092:30:47;;;;:16;;;:30;;;;;19150:20;;;;19021:37;;19092:30;-1:-1:-1;19149:78:47;;;;-1:-1:-1;19206:20:47;;;;19191:11;;:35;19149:78;:122;;;;;5999:1;19243:8;:20;;;:27;19149:122;:162;;;;-1:-1:-1;19287:23:47;;;19149:162;19132:318;;;19417:18;19397:8;:18;;;19374:6;:20;;;:41;19373:62;;;;;;;;19355:80;;19132:318;19464:20;;;;;19463:171;;-1:-1:-1;19533:18:47;;;;19588:12;;19501:113;;;;;;-1:-1:-1;;;;;19588:12:47;;;19501:113;;;;;;;;;;;;19618:15;;19533:18;;;;;19501:86;;:113;;;;;;;;;;;;;;;19533:18;19501:113;;;5:2:-1;;;;30:1;27;20:12;5:2;19501:113:47;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;19501:113:47;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19501:113:47;:132;;19463:171;19459:654;;;19673:1;19650:20;;;:24;19715;;;;:45;;19744:15;19715:45;:28;:45;:::i;:::-;19688:24;;;;:72;;;;19827:18;;;;19881:12;;19795:143;;;;;;-1:-1:-1;;;;;19881:12:47;;;19795:143;;;;;;;;;;;;;;;;;;;;;;;;;19827:18;;;;;19795:85;;:143;;;;;;;;;;;;;;19827:18;;19795:143;;;5:2:-1;;;;30:1;27;20:12;5:2;19795:143:47;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;19795:143:47;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19795:143:47;19774:165;;;;;;;;20047:23;;20033:38;;;;:13;:38;;;;;;;;;;20004:98;;;;;;;19970:15;;-1:-1:-1;19970:15:47;;-1:-1:-1;;;;;20004:98:47;;;;20033:38;;;20020:11;;20004:98;;;;;;;;;;;19459:654;18723:1396;;;;;;;;:::o;8658:146:46:-;8735:7;8761:22;;;:9;:22;;;;;;;;:36;;;:29;;;;:36;;;;;;8658:146::o;6068:26:47:-;;;-1:-1:-1;;;;;6068:26:47;;:::o;7263:361:46:-;7330:7;7401:22;;;:9;:22;;;;;;;;:43;;;:38;;;:43;;;;;;5962:1:47;7462:42:46;;;;;;;7522:34;;;:29;;;;:34;;;;;;;7574:33;;;;;;7401:43;;7462:42;;7522:34;7263:361::o;20845:230:47:-;20907:4;20923:24;;:::i;:::-;20950:22;;;;:9;:22;;;;;;;;;20923:49;;;;;;;;;;;;;;;-1:-1:-1;;;;;20923:49:47;;;;;;;;;;;;;;-1:-1:-1;;;20923:49:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20923:49:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;20923:49:47;;;-1:-1:-1;;20923:49:47;;;;;;;;;;;;;;;21022:19;;;;21043:23;;20923:49;;-1:-1:-1;21012:55:47;;:9;:55::i;:::-;20990:19;20997:11;20990:6;:19::i;:::-;:77;;20845:230;-1:-1:-1;;;20845:230:47:o;7481:1952::-;7603:7;7692:23;;;;;;;;;;:38;;;7686:3;:44;7678:71;;;;;-1:-1:-1;;;;;7678:71:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;7805:10;:23;;;;;;;;;;:52;7861:2;-1:-1:-1;7805:58:47;7797:67;;;;;;7961:12;;7938:36;;;;7955:4;7938:36;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;7938:36:47;;;;;;;7928:47;;;;;;8000:19;;8017:1;8000:19;:16;:19;:::i;:::-;7985:12;:34;8056:24;;:::i;:::-;8111:10;8090:18;;;;:31;;;8167:43;;;;;;;;;;;-1:-1:-1;;;;;8167:43:47;;;;;;;;;;;;22:32:-1;26:21;;;22:32;6:49;;8167:43:47;;;;;;8157:54;;;;;;8131:80;;8239:20;8222:14;;;:37;;;8323:14;;;;8343:3;8323:23;;-1:-1:-1;8413:23:47;;;;;;;;;:46;;;;;8372:38;;;:87;8469:29;;;:17;;;:29;8508:20;;;:25;8543:19;;;:33;;;8604:23;;8590:38;;;;;;;;:52;8586:292;;;-1:-1:-1;;;;;8662:27:47;;;8658:210;;;8723:23;;8709:38;;;;:13;:38;;;;;:51;;-1:-1:-1;;8709:51:47;8750:10;8709:51;;;8658:210;;;8813:23;;8799:38;;;;:13;:38;;;;;:54;;-1:-1:-1;;8799:54:47;-1:-1:-1;;;;;8799:54:47;;;;;8658:210;9012:23;;8913:17;8984:52;;;:27;:52;;;;;;;;;8941:23;;;;;;;;;:38;;;:105;;9042:3;;8941:96;;;:42;:96;:::i;:105::-;9097:10;:23;;;;;;;;;;:40;;;8913:133;;-1:-1:-1;9083:55:47;;8913:133;;9083:55;:13;:55;:::i;:::-;9056:24;;;:82;9148:21;;;;:9;:21;;;;;;;;;:32;;;;;;;;;;;;;-1:-1:-1;;9148:32:47;-1:-1:-1;;;;;9148:32:47;;;;;;;;;;;;;;9056:24;;9148:21;;:32;;-1:-1:-1;;;;;;9148:32:47;-1:-1:-1;;;9148:32:47;;;;;;;;;;;;;-1:-1:-1;9148:32:47;;;;;;;;;;;;;;;;;;-1:-1:-1;;9148:32:47;-1:-1:-1;;;;;9148:32:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;9148:32:47;;;;;;;;;;;;-1:-1:-1;;9148:32:47;;;;;;;;;;9225:24;;;;-1:-1:-1;9190:21:47;;;-1:-1:-1;9190:21:47;;;;;;;;5962:1;9190:32;;;:28;;;;:32;;;;;:59;;;;9334:23;;9320:38;;:13;:38;;;;;;;9296:103;;;;;-1:-1:-1;;;;;9296:103:47;;;;;;;;;;;;;;;;;;9320:38;;;9190:21;;9296:103;;;;;;;;;;-1:-1:-1;9416:10:47;;7481:1952;-1:-1:-1;;;;;;7481:1952:47:o;11796:1829::-;11962:7;12007:3;11993:10;;:17;;;;:37;;-1:-1:-1;12028:2:47;12014:10;;:16;;11993:37;11985:91;;;;;;-1:-1:-1;;;;;11985:91:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12108:5;12094:10;;;;:19;;;;:40;;-1:-1:-1;12130:4:47;12117:10;;;;:17;12094:40;12086:83;;;;;;;-1:-1:-1;;;;;12086:83:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;12201:3;12187:10;;;;:17;;12179:62;;;;;-1:-1:-1;;;;;12179:62:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12273:10;;;;12259;;;;:24;;12251:80;;;;-1:-1:-1;;;;;12251:80:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12362:1;12349:10;;;;:14;12341:57;;;;;-1:-1:-1;;;;;12341:57:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;12429:1;12416:10;;;;:14;12408:55;;;;;-1:-1:-1;;;;;12408:55:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;12474:18;12495:41;12513:7;12495:41;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;12522:13:47;;-1:-1:-1;12495:17:47;;-1:-1:-1;12495:41:47:i;:::-;12474:62;-1:-1:-1;12640:3:47;12692:1;12720:4;12703:216;12730:5;12726:1;:9;12703:216;;;12765:10;;;;:14;-1:-1:-1;12764:39:47;;;;-1:-1:-1;12801:1:47;12799:3;;12785:10;;;;:17;;12764:39;12760:132;;;12853:1;12839:13;:15;;;;;;;;12823:31;;12872:5;;12760:132;12905:3;;;;;12743:1;12741:3;12703:216;;;-1:-1:-1;12954:637:47;;;;;;;;13009:10;;12954:637;;13009:10;13056;;;;12954:637;;;;13104:10;;;;12954:637;;;;;;;;13155:10;;;;12954:637;;;;;;;;;13194:43;;13202:10;;;13194:28;;13231:4;13194:28;:43::i;:::-;12954:637;;;;;;;;;;13316:7;13324:1;13316:10;;;;;;;;;12954:637;;;13360:7;13368:1;13360:10;;;;;;;;;12954:637;;;13410:7;13418:1;13410:10;;;;;;;;;12954:637;;;13451:7;13459:1;13451:10;;;;;;;;;12954:637;;;13490:7;13498:1;13490:10;;;;;;;;;12954:637;;;13529:7;13537:2;13529:11;;;;;;;;;12954:637;;-1:-1:-1;;;;;12954:637:47;;;;;;;;;;-1:-1:-1;12929:22:47;;;;;;;;;;;:662;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;12929:662:47;;;;;;;;;-1:-1:-1;12929:22:47;11796:1829;-1:-1:-1;;;11796:1829:47:o;4612:123:46:-;4670:11;7130:23:47;7141:11;7130:10;:23::i;:::-;7122:32;;;;;;;;4612:123:46;;:::o;5285:106::-;-1:-1:-1;5926:1:47;;5285:106:46:o;668:44::-;;;;;;;;;;;;;:::o;5969:31:47:-;5999:1;5969:31;:::o;6532:150:46:-;6612:7;6638:22;;;:9;:22;;;;;;;;:37;;;:28;;;;:37;;;;;;6532:150::o;5674:60:47:-;;;;;;;;;;;;-1:-1:-1;;;;;5674:60:47;;:::o;5793:86::-;;;;;;;;;;;;;:::o;9924:927::-;9986:28;10054:22;;;:9;:22;;;;;10112:21;10094:14;;;;-1:-1:-1;;;10094:14:47;;;;:39;;;;;;;;;:92;;;-1:-1:-1;10155:31:47;10137:14;;;;-1:-1:-1;;;10137:14:47;;;;:49;;;;;;;;;10094:92;10086:164;;;;;;-1:-1:-1;;;;;10086:164:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10268:21;10277:11;10268:8;:21::i;:::-;10260:57;;;;;;;-1:-1:-1;;;;;10260:57:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;10438:70;10446:61;10489:14;;;10504:1;10489:17;;10446:38;;;;;:61;:42;:61;:::i;:::-;10438:3;;:70;:7;:70;:::i;:::-;10328:45;;;:180;10542:34;10564:11;10542:21;:34::i;:::-;10609:20;;;;10519:57;;-1:-1:-1;10609:46:47;;10519:57;10609:46;:24;:46;:::i;:::-;10586:20;;;:69;10673:12;;:55;;;;;;10695:10;10673:55;;;;;;;;;;;;-1:-1:-1;;;;;10673:12:47;;;;:21;;:55;;;;;;;;;;;;;;;:12;;:55;;;5:2:-1;;;;30:1;27;20:12;5:2;10673:55:47;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;10673:55:47;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;10673:55:47;10665:97;;;;;;;-1:-1:-1;;;;;10665:97:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;10777:67;;;;;;;;10811:10;;10798:11;;10777:67;;;;;;;;;9924:927;;;;:::o;6838:115:46:-;6900:4;6923:23;6934:11;6923:10;:23::i;5563:143::-;5632:20;;:::i;:::-;5671:22;;;;:9;:22;;;;;;;5664:35;;;;;;;;5671:28;;5664:35;;5671:28;5664:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5563:143;;;:::o;14184:4042:47:-;14259:22;;:::i;:::-;14293:25;14321:22;;;:9;:22;;;;;14380;14362:14;;;;-1:-1:-1;;;14362:14:47;;;;:40;;;;;;;;;14361:92;;;-1:-1:-1;14424:28:47;14406:14;;;;-1:-1:-1;;;14406:14:47;;;;:46;;;;;;;;;14361:92;14353:158;;;;;;-1:-1:-1;;;;;14353:158:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14521:24;;:::i;:::-;-1:-1:-1;14559:19:47;;;;;14548:10;:31;;;;;;;;;;;14521:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;14521:58:47;;;;;;;14633:30;;;;:16;;;:30;;;;;14718:20;;;;14702:37;;:15;;;:37;;;;;;14521:58;;14633:30;14798:85;14848:34;14870:11;14848:21;:34::i;:::-;5999:1;14822:20;;;;:15;;;:20;;;;;;;5962:1;14798:19;;;;;:45;;;:23;:45;:::i;:::-;:49;:85;:49;:85;:::i;:::-;14749:134;;14913:1;14897:6;:13;;;:17;14893:823;;;14953:28;14935:14;;;;-1:-1:-1;;;14935:14:47;;;;:46;;;;;;;;;14931:744;;;15100:13;;;;15087:26;;14931:744;;;15153:20;;;;15138:11;;:35;15134:541;;;15197:11;;5999:1;15197:18;15193:468;;;15264:30;15243:8;:18;;;:51;15239:274;;;15322:20;15345:54;15380:8;:18;;;15345:30;:34;;:54;;;;:::i;:::-;15322:77;;15472:18;15439:31;15457:12;15439:6;:13;;;:17;;:31;;;;:::i;:::-;15438:52;;;;;;;;15425:65;;-1:-1:-1;15239:274:47;15193:468;;;15573:13;;;;15624:18;;15573:49;;15591:30;15573:49;:17;:49;:::i;:::-;15572:70;;;;;;;;15559:83;;15193:468;15704:1;15688:13;;;:17;14893:823;15767:29;;;;;;:38;;;:108;;-1:-1:-1;15851:23:47;;15837:38;;;;:13;:38;;;;;;-1:-1:-1;;;;;15821:54:47;;;15837:38;;15821:54;15767:108;:170;;;;-1:-1:-1;15909:28:47;15891:14;;;;-1:-1:-1;;;15891:14:47;;;;:46;;;;;;;;;;15767:170;:212;;;;;5962:1;15953:8;:20;;;:26;15767:212;15763:459;;;16142:18;;;;16020:141;;:104;16105:18;16049:54;16142:18;16072:30;16049:54;:22;:54;:::i;:::-;16048:75;;;;;;;;16020:7;16028:1;16020:10;;;;;;:104;:27;:104;:::i;:141::-;15995:166;;16175:29;;;:36;;-1:-1:-1;;16175:36:47;16207:4;16175:36;;;15763:459;-1:-1:-1;;;;;16273:29:47;;16251:19;16273:29;;;:15;;;:29;;;;;16317:16;;;;:21;;;;16316:45;;-1:-1:-1;16344:16:47;;;;;;16316:45;16312:944;;;16399:28;16381:14;;;;-1:-1:-1;;;16381:14:47;;;;:46;;;;;;;;;16377:835;;;16569:3;16513:54;16534:6;:32;;;16513:5;:16;;;:20;;:54;;;;:::i;:::-;16512:60;;;;;;;;16498:10;;;:75;16377:835;;;16622:10;;16598:20;;;;:34;16594:618;;;16652:22;5999:1;16696:8;:20;;;:27;16692:212;;;-1:-1:-1;5962:1:47;16764:28;;;;:24;;;:28;;;;;;16692:212;;;-1:-1:-1;5999:1:47;16856:29;;;;:24;;;:29;;;;;;16692:212;16993:3;16939:52;16958:6;:32;;;16939:14;:18;;:52;;;;:::i;:::-;16938:58;;;;;;;17175:20;;;;17150:46;;;;:24;;;:46;;;;;;17112:16;;;;16938:58;;;;;-1:-1:-1;17027:170:47;;17112:36;;16938:58;17112:36;:20;:36;:::i;:::-;17111:85;;;;;;;;17085:3;17029:54;17050:6;:32;;;17029:5;:16;;;:20;;:54;;;;:::i;:::-;17028:60;;;;;;;;;17027:170;:83;:170;:::i;:::-;17014:10;;;:183;-1:-1:-1;16594:618:47;17244:1;17225:16;;;:20;16312:944;17292:17;;;;-1:-1:-1;;;;;17292:33:47;;;:17;;:33;17291:66;;;;;5999:1;17329:8;:20;;;:27;17291:66;:101;;;;-1:-1:-1;17360:17:47;;;;-1:-1:-1;;;;;17360:17:47;:31;;17291:101;17287:214;;;17421:25;;;;17408:10;;;:38;17460:17;;;:30;;-1:-1:-1;;17460:30:47;;;17287:214;17514:10;;:15;17510:313;;17593:10;;17568:20;;;;:36;;:24;:36::i;:::-;17545:20;;;:59;17626:12;;17662:10;;17626:47;;;;;;-1:-1:-1;;;;;17626:47:47;;;;;;;;;;;;;;;;:12;;;;;:21;;:47;;;;;17662:10;;17626:47;;;;;;;:12;;:47;;;5:2:-1;;;;30:1;27;20:12;5:2;17626:47:47;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;17626:47:47;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;17626:47:47;17618:90;;;;;;;-1:-1:-1;;;;;17618:90:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;17761:23;;17747:38;;;;:13;:38;;;;;;;;;;17801:10;;17727:85;;;;;;;-1:-1:-1;;;;;17727:85:47;;;;17747:38;;;17734:11;;17727:85;;;;;;;;;;;17510:313;17851:10;;;;17836:26;;17851:7;17844:1;17836:10;;:26;:31;17832:388;;17915:18;;;;-1:-1:-1;;;;;17915:18:47;17883:79;17963:26;17978:7;17986:1;17978:10;;;;17963:7;17971:1;17963:10;;:26;17991:12;18005:11;17883:134;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17883:134:47;-1:-1:-1;;;;;17883:134:47;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;17883:134:47;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;17883:134:47;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;18105:23:47;;18091:38;;;;:13;17883:134;18091:38;;;;;-1:-1:-1;;;;;18036:173:47;;;;18091:38;18066:11;18036:173;18169:26;18184:7;18192:1;18184:10;;;;18169:7;18177:1;18169:10;;:26;18036:173;;;;;;;;;;;;;;;17832:388;14184:4042;;;;;;;;;;:::o;10096:109:46:-;10152:7;10179:19;10186:11;10179:6;:19::i;4999:127::-;5075:4;5054:11;7130:23:47;7141:11;7130:10;:23::i;:::-;7122:32;;;;;;;;5098:21:46;5107:11;5098:8;:21::i;:::-;5091:28;4999:127;-1:-1:-1;;;4999:127:46:o;5572:52:47:-;;;;;;;;;;;;;:::o;820:845:45:-;892:7;935:8;976;716:24;1070:525;1077:17;;1070:525;;1161:12;1176:3;1161:18;1184:3;1160:27;1156:192;;;1304:29;1308:10;1320:12;1304:3;:29::i;:::-;1291:42;;1156:192;49:1:-1;25:41;;;;1452:17:45;;1448:137;;1539:31;1543:12;1557;1539:3;:31::i;:::-;1524:46;;1448:137;1070:525;;29758:1814:47;29861:4;5926:1;29919:5;:23;;:36;;;;;29954:1;29946:5;:9;29919:36;29911:65;;;;;;;-1:-1:-1;;;;;29911:65:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;30004:1;29994:11;;29986:51;;;;;-1:-1:-1;;;;;29986:51:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;30052:21;30061:11;30052:8;:21::i;:::-;30048:63;;;-1:-1:-1;30096:4:47;30089:11;;30048:63;30120:25;30148:22;;;:9;:22;;;;;30204:24;30186:14;;;;-1:-1:-1;;;30186:14:47;;;;:42;;;;;;;;;;30185:100;;;;-1:-1:-1;30264:20:47;30246:14;;;;-1:-1:-1;;;30246:14:47;;;;:38;;;;;;;;;;30185:100;30181:143;;;30308:5;30301:12;;;;;30181:143;-1:-1:-1;;;;;30426:25:47;;30402:21;30426:25;;;:16;;;:25;;;;;30466:13;;;;30426:25;;-1:-1:-1;30465:45:47;;;;-1:-1:-1;30489:11:47;;:20;;;30465:45;30461:88;;;30533:5;30526:12;;;;;;30461:88;30601:12;;:57;;;;;;-1:-1:-1;;;;;30601:57:47;;;;;;;30644:4;30601:57;;;;;;;;;;;;30576:7;;30601:12;;;;;:25;;:57;;;;;;;;;;;;;;;30559:14;30601:12;:57;;;5:2:-1;;;;30:1;27;20:12;5:2;30601:57:47;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;30601:57:47;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;30601:57:47;30593:95;;;;;;;-1:-1:-1;;;;;30593:95:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;30721:20;;;;:32;;30746:6;30721:32;:24;:32;:::i;:::-;30698:20;;;:55;30810:13;;;;:25;;30828:6;30810:25;:17;:25;:::i;:::-;30794:13;;;:41;;;30995:35;-1:-1:-1;30978:52:47;30970:91;;;;;-1:-1:-1;;;;;30970:91:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;31152:24;;;;31103:74;;31111:35;;31103:74;:48;:74;:::i;:::-;31079:20;;;;:98;;31071:151;;;;;-1:-1:-1;;;;;31071:151:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;5999:1;31237:5;:12;31233:98;;;31288:20;;;;:32;;31313:6;31288:32;:24;:32;:::i;:::-;31265:20;;;:55;31233:98;31340:19;;;:11;31406:22;;;:15;;;:22;;;;;;31395:34;;:6;;:34;:10;:34;:::i;:::-;31370:22;;;;:15;;;:22;;;;;;;;:59;;;;31477:23;;31463:38;;:13;:38;;;;;;;31444:83;;;;;;;;;;;;;-1:-1:-1;;;;;31444:83:47;;;;31463:38;;;31450:11;;31444:83;;;;;;;;;31544:21;31553:11;31544:8;:21::i;:::-;31537:28;29758:1814;-1:-1:-1;;;;;;;;29758:1814:47:o;35972:366::-;36035:4;36074:22;;;:9;:22;;;;;;;:28;;-1:-1:-1;;;36074:28:47;;;;36131:24;36121:6;:34;;;;;;;;;36120:88;;;-1:-1:-1;36186:21:47;36176:6;:31;;;;;;;;;36120:88;:150;;;-1:-1:-1;36238:31:47;36228:6;:41;;;;;;;;;36120:150;:201;;;-1:-1:-1;36300:20:47;36290:6;:30;;;;;;;;;;35972:366;-1:-1:-1;;;35972:366:47:o;32311:2954::-;32416:4;5926:1;32440:5;:23;;:36;;;;;32475:1;32467:5;:9;32440:36;32432:63;;;;;;;-1:-1:-1;;;;;32432:63:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;32509:21;32518:11;32509:8;:21::i;:::-;32505:63;;;-1:-1:-1;32553:4:47;32546:11;;32505:63;32578:24;;:::i;:::-;-1:-1:-1;32605:10:47;32616:22;;;:9;:22;;;;;;;;:33;;;;;32605:45;;;;;;;;32578:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;32578:72:47;;;;;;;32688:22;;;;;;32820:18;;;;32788:85;;;;;;;;;;;;;;;;;;;;;;;32578:72;;32616:22;;32605:10;;32820:18;;;;;32788:64;;:85;;;;;;;;;;32820:18;32788:85;;;5:2:-1;;;;30:1;27;20:12;5:2;32788:85:47;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32788:85:47;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32788:85:47;;-1:-1:-1;32904:1:47;32891:14;;32883:54;;;;;-1:-1:-1;;;;;32883:54:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;32955:18;;;;32947:49;;;;;-1:-1:-1;;;;;32947:49:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;33020:4;33038:8;;33034:55;;;-1:-1:-1;33068:10:47;33034:55;-1:-1:-1;;;;;33160:23:47;;;;;;:15;;;:23;;;;;:34;;;:39;33156:82;;33222:5;33215:12;;;;;;;;33156:82;33309:21;;;;:14;;;:21;;;;;;33301:30;;:3;;:30;:7;:30;:::i;:::-;33277:21;;;;:14;;;:21;;;;;;:54;;;33528:20;;;;33513:36;;;;;33489:21;;;;-1:-1:-1;33489:60:47;33488:183;;-1:-1:-1;33605:20:47;;;;;33590:36;;;;:14;;;:36;;;;;;;33568:18;;;;;;:58;33567:103;;;;;5999:1;33643:8;:20;;;:27;33567:103;33484:1004;;;33709:21;33691:14;;;;-1:-1:-1;;;33691:14:47;;;;:39;;;;;;;;;:206;;;;-1:-1:-1;33871:24:47;;;;33839:29;;;;:56;33816:14;;;33831:1;33816:17;;33810:3;:23;33809:87;;33691:206;:274;;;-1:-1:-1;33934:31:47;33916:14;;;;-1:-1:-1;;;33916:14:47;;;;:49;;;;;;;;;33691:274;33687:749;;;34043:31;34025:14;;;;-1:-1:-1;;;34025:14:47;;;;:49;;;;;;;;;34021:298;;34139:24;;;;34098:38;;;:65;34185:14;;;:48;;-1:-1:-1;;;;;;34185:48:47;;;;;;;34260:40;;34272:11;;34260:40;;-1:-1:-1;;;34285:14:47;;;;;;34260:40;34285:14;34202:31;34260:40;;;;;;;;;;;;;;;;;;;;;;;34021:298;34418:3;34398:17;;;:23;33687:749;34449:20;;;:28;;;33484:1004;34523:186;;;;;;;;;;;;;;;;;;;;34628:24;34610:14;;;;-1:-1:-1;;;34610:14:47;;;;:42;;;;;;;;;34609:88;;;-1:-1:-1;34676:20:47;34658:14;;;;-1:-1:-1;;;34658:14:47;;;;:38;;;;;;;;;34609:88;34523:186;;;;-1:-1:-1;;;;;34497:23:47;;;;;;:15;;;:23;;;;;;;;;:212;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;34497:212:47;;;;;;;;;;34742:24;34724:14;;;;-1:-1:-1;;;34724:14:47;;;;:42;;;;;;;;;34723:88;;;-1:-1:-1;34790:20:47;34772:14;;;;-1:-1:-1;;;34772:14:47;;;;:38;;;;;;;;;34723:88;34719:402;;;34869:31;;;;:24;;;:31;;;;;;34861:40;;:3;;:40;:7;:40;:::i;:::-;34827:31;;;;:24;;;:31;;;;;:74;;;;34944:32;;;;34987:3;;34944:41;;34981:3;34944:41;:36;:41;:::i;:::-;34943:47;;;;;;;35036:18;;;;35004:106;;;;;;34943:47;;;;35004:106;;;;;;-1:-1:-1;;;;;35004:106:47;;;;;;;;;;;;;;;34943:47;;-1:-1:-1;35036:18:47;;;35004:66;;:106;;;;;;;;;;;;;;35036:18;;35004:106;;;5:2:-1;;;;30:1;27;20:12;5:2;35004:106:47;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;35004:106:47;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;34719:402:47;35175:23;;35161:38;;;;:13;:38;;;;;;;;;;35135:85;;;;;;;;;;;;;-1:-1:-1;;;;;35135:85:47;;;;35161:38;;;35148:11;;35135:85;;;;;;;;;35237:21;35246:11;35237:8;:21::i;336:104:86:-;394:7;424:1;420;:5;:13;;432:1;420:13;;;-1:-1:-1;428:1:86;;413:20;-1:-1:-1;336:104:86: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;;;;;778:296;836:7;929:5;;;921:14;;;;;;945:9;961:1;957;:5;;;;;;;;;778:296;-1:-1:-1;;;;778:296:87:o;1785:265:85:-;1984:58;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;1984:58:85;;;;;;;1974:69;;;;;;1785:265::o;609:1026::-;687:7;706:9;725;744:7;804:9;:16;824:2;804:22;;800:72;;;858:1;842:19;;;;;;;800:72;-1:-1:-1;;;1166:4:85;1151:20;;1145:27;1211:4;1196:20;;1190:27;1264:4;1249:20;;1243:27;1240:1;1235:36;1390:2;1386:6;;;;1382:44;;;1413:2;1408:7;1382:44;1503:1;:7;;1508:2;1503:7;;:18;;;;;1514:1;:7;;1519:2;1514:7;;1503:18;1499:130;;;1553:1;1537:19;;;;;;;1499:130;1594:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1594:24:85;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1594:24:85;;;;;;;;1587:31;;;;;;;1431:145:87;1489:7;1520:5;;;1543:6;;;;1535:15;;;;;1205:145;1263:7;1290:6;;;;1282:15;;;;;;-1:-1:-1;1319:5:87;;;1205:145::o;35500:309:47:-;35559:7;35606:22;;;:9;:22;;;;;;;;5962:1;35781:19;;:15;;;:19;;;;;;;35742:20;;;;;;35606:22;;35734:68;;:38;;;:68;:38;:68;:::i;162:105:86:-;220:7;251:1;246;:6;;:14;;259:1;246:14;;1734:181:45;1815:7;1841:67;1845:18;;;;716:24;1845:29;;;;1876:20;;:31;1841:3;:67::i;23074:6412:47:-;23151:4;23130:11;7130:23;7141:11;7130:10;:23::i;:::-;7122:32;;;;;;;;23167:25;23195:22;;;:9;:22;;;;;23227:24;;:::i;:::-;-1:-1:-1;23265:19:47;;;;;23254:10;:31;;;;;;;;;;;;23227:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23227:58:47;;;;;23295:27;;:::i;:::-;:38;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23295:38:47;;;;;;;;;;;;;;-1:-1:-1;;;23295:38:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23295:38:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;23295:38:47;;;-1:-1:-1;;23295:38:47;;;;;;;;;;;;;;;;23409:18;;;23377:89;;;;;;;;;;;;;;23295:38;;-1:-1:-1;23295:38:47;;-1:-1:-1;;;;;23409:18:47;;;;23377:76;;:89;;;;;;;;;;23409:18;23377:89;;;5:2:-1;;;;30:1;27;20:12;5:2;23377:89:47;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;23377:89:47;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23377:89:47;23573:35;;23780:20;;;;23526;23765:36;;;:14;;;:36;;;;;;23377:89;;-1:-1:-1;23566:3:47;23550:19;;23549:59;;;;23526:20;;;;23765:51;-1:-1:-1;23761:3687:47;;;23915:20;23897:14;;;;-1:-1:-1;;;23897:14:47;;;;:38;;;;;;;;;23893:351;;;23972:30;23955:47;;23893:351;;;24045:24;24027:14;;;;-1:-1:-1;;;24027:14:47;;;;:42;;;;;;;;;24023:221;;;24106:35;24089:52;;24023:221;;;24197:32;24180:49;;24023:221;24257:14;;;:39;;24274:22;;24257:14;-1:-1:-1;;;;;;24257:39:47;-1:-1:-1;;;24274:22:47;24257:39;;;;;;23761:3687;;;24349:20;24331:14;;;;-1:-1:-1;;;24331:14:47;;;;:38;;;;;;;;;24327:944;;;24484:28;;;;24462:14;;;:17;24456:3;:23;24455:57;24451:806;;24553:28;24536:14;;:45;;-1:-1:-1;;;;;;24536:45:47;-1:-1:-1;;;24536:45:47;;;5962:1;24603:20;;;:25;;;5962:1;-1:-1:-1;24451:806:47;;;24763:55;24773:8;:19;;;24794:8;:23;;;24763:9;:55::i;:::-;24741:77;;24866:19;24844;24851:11;24844:6;:19::i;:::-;:41;24840:399;;;24980:14;;;:41;;-1:-1:-1;;;;;;24980:41:47;;;;;25137:3;25117:17;;;:23;25166:28;;;:50;;;24840:399;25307:24;25289:14;;;;-1:-1:-1;;;25289:14:47;;;;:42;;;;;;;;;25285:2153;;;25373:55;25383:8;:19;;;25404:8;:23;;;25373:9;:55::i;:::-;25539:32;;;;25351:77;;-1:-1:-1;25517:14:47;;;25532:1;25517:17;;25511:3;:23;25510:61;25506:1918;;25621:19;25599;25606:11;25599:6;:19::i;:::-;:41;25595:1258;;;25695:23;;25672:47;;;;:22;:47;;;;;;6242:4;-1:-1:-1;25668:1071:47;;;25840:14;;;;:38;;-1:-1:-1;;;;;;25840:38:47;;;;;25999:3;25979:17;;;:23;26055;;-1:-1:-1;26032:47:47;;;:22;:47;;;;;;;;:49;;;;;;;;26272:23;;26244:52;;:27;:52;;;;;;26662:47;;;;;;;26565:19;;;:15;;;:19;;;;;;;;26244:52;;-1:-1:-1;26662:47:47;26558:62;;;26557:153;;;;;;;26420:23;;26392:52;;;;:27;:52;;;;;26557:153;;;26487:224;;26392:320;;25668:1071;25595:1258;;;26793:14;;;:37;;26810:20;;26793:14;-1:-1:-1;;;;;;26793:37:47;-1:-1:-1;;;26810:20:47;26793:37;;25595:1258;25506:1918;;;26938:21;26962:19;26969:11;26962:6;:19::i;:::-;27024:28;;;;26938:43;;-1:-1:-1;27024:53:47;;27057:19;27024:53;:32;:53;:::i;:::-;27007:70;;27003:403;;27105:14;;;:37;;-1:-1:-1;;;;;;27105:37:47;;;;;27003:403;;;27206:13;27175:8;:28;;;:44;27171:235;;;27247:28;;;:50;;;27328:55;;;;;;;;27350:11;;27328:55;;;;;;;;;;27171:235;25506:1918;;27481:21;27463:14;;;;-1:-1:-1;;;27463:14:47;;;;:39;;;;;;;;;27462:108;;;-1:-1:-1;27538:31:47;27520:14;;;;-1:-1:-1;;;27520:14:47;;;;:49;;;;;;;;;27462:108;27458:405;;;27677:38;;;;27655:17;;;;27649:3;:23;27648:67;27644:209;;27735:14;;;:39;;-1:-1:-1;;;;;;27735:39:47;;;;;27809:29;;-1:-1:-1;27644:209:47;27895:19;27877:14;:37;;;;;;;;;27873:1431;;27953:29;27935:14;:47;;;;;;;;;27934:121;;;-1:-1:-1;28022:32:47;28004:14;:50;;;;;;;;;27934:121;27930:938;;;28167:26;;28144:50;;;;:22;:50;;;;;;:57;;28199:1;28144:57;:54;:57;:::i;:::-;28098:26;;28075:50;;;;:22;:50;;;;;;:126;;;;28366:26;;28343:50;;;;28415:21;;28411:443;;;28488:23;;28515:1;28460:52;;;:27;:52;;;;;:56;28411:443;;;28620:23;;28592:52;;;;:27;:52;;;;;;;;;5962:1;28797:19;;:15;;;:19;;;;;;;28592:52;;-1:-1:-1;28819:16:47;;28742:75;;:50;28592:52;28790:1;28773:18;;28742:50;:30;:50;:::i;:75::-;28741:94;;;;;;;28694:23;;28666:52;;;;:27;:52;;;;;28741:94;;;28666:169;;28411:443;27930:938;;28954:23;;28940:38;;;;:13;:38;;;;;;;;;;28992:20;;;;28886:169;;;;;;;;;;;;;-1:-1:-1;;;;;28940:38:47;;;;28915:11;;28886:169;;;;;;;;;;;29092:11;29074:46;29105:14;29074:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;29159:18;;;;29212:20;;;;29134:100;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29159:18:47;;;;29134:60;;:100;;;;;;;;;;;;;;;29159:18;;29134:100;;;5:2:-1;;;;30:1;27;20:12;5:2;29134:100:47;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;29134:100:47;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;29269:24:47;;;;29248:18;;;:45;27873:1431;29338:14;;;;-1:-1:-1;;;29338:14:47;;;;29317:35;;;;;;;;:11;:17;;;:35;;;;;;;;;29313:111;;29385:11;29373:40;29398:8;:14;;;;;;;;;;;;29373:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;29313:111;29459:19;29441:14;:37;;;;;;;;;;;23074:6412;-1:-1:-1;;;;;;;;;;;23074:6412:47:o;1995:383:45:-;2060:7;2260:13;;;2268:5;2260;:13;2291:9;;;;;;;;:18;2283:52;;;;;-1:-1:-1;;;;;2283:52:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;45:20:-1;25:41;;;1995:383:45;-1:-1:-1;;;1995:383:45:o;2461:353::-;2544:7;2790:15;716:24;2745:33;;2744:62;;;;;;;;;2461:353;-1:-1:-1;;;2461:353:45:o;220:9987:46:-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;220:9987:46;;;;;:::o;:::-;;;;;;;;;-1:-1:-1;220:9987:46;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;220:9987:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;220:9987:46;;;-1:-1:-1;220:9987:46;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;-1:-1;220:9987:46;;;-1:-1:-1;;220:9987:46:o;:::-;;;;;;;;;;;;;;;;;;463:616:93;523:4;1026:20;;1064:8;;463:616::o",
  "source": "pragma solidity ^0.5.4;\n\nimport \"openzeppelin-solidity/contracts/cryptography/ECDSA.sol\";\nimport \"./GenesisProtocolLogic.sol\";\n\n\n/**\n * @title GenesisProtocol implementation -an organization's voting machine scheme.\n */\ncontract GenesisProtocol is IntVoteInterface, GenesisProtocolLogic {\n    using ECDSA for bytes32;\n\n    // Digest describing the data the user signs according EIP 712.\n    // Needs to match what is passed to Metamask.\n    bytes32 public constant DELEGATION_HASH_EIP712 =\n    keccak256(abi.encodePacked(\n    \"address GenesisProtocolAddress\",\n    \"bytes32 ProposalId\",\n    \"uint256 Vote\",\n    \"uint256 AmountToStake\",\n    \"uint256 Nonce\"\n    ));\n\n    mapping(address=>uint256) public stakesNonce; //stakes Nonce\n\n    /**\n     * @dev Constructor\n     */\n    constructor(IERC20 _stakingToken)\n    public\n    // solhint-disable-next-line no-empty-blocks\n    GenesisProtocolLogic(_stakingToken) {\n    }\n\n    /**\n     * @dev staking function\n     * @param _proposalId id of the proposal\n     * @param _vote  NO(2) or YES(1).\n     * @param _amount the betting amount\n     * @return bool true - the proposal has been executed\n     *              false - otherwise.\n     */\n    function stake(bytes32 _proposalId, uint256 _vote, uint256 _amount) external returns(bool) {\n        return _stake(_proposalId, _vote, _amount, msg.sender);\n    }\n\n    /**\n     * @dev stakeWithSignature function\n     * @param _proposalId id of the proposal\n     * @param _vote  NO(2) or YES(1).\n     * @param _amount the betting amount\n     * @param _nonce nonce value ,it is part of the signature to ensure that\n              a signature can be received only once.\n     * @param _signatureType signature type\n              1 - for web3.eth.sign\n              2 - for eth_signTypedData according to EIP #712.\n     * @param _signature  - signed data by the staker\n     * @return bool true - the proposal has been executed\n     *              false - otherwise.\n     */\n    function stakeWithSignature(\n        bytes32 _proposalId,\n        uint256 _vote,\n        uint256 _amount,\n        uint256 _nonce,\n        uint256 _signatureType,\n        bytes calldata _signature\n        )\n        external\n        returns(bool)\n        {\n        // Recreate the digest the user signed\n        bytes32 delegationDigest;\n        if (_signatureType == 2) {\n            delegationDigest = keccak256(\n                abi.encodePacked(\n                    DELEGATION_HASH_EIP712, keccak256(\n                        abi.encodePacked(\n                        address(this),\n                        _proposalId,\n                        _vote,\n                        _amount,\n                        _nonce)\n                    )\n                )\n            );\n        } else {\n            delegationDigest = keccak256(\n                        abi.encodePacked(\n                        address(this),\n                        _proposalId,\n                        _vote,\n                        _amount,\n                        _nonce)\n                    ).toEthSignedMessageHash();\n        }\n        address staker = delegationDigest.recover(_signature);\n        //a garbage staker address due to wrong signature will revert due to lack of approval and funds.\n        require(staker != address(0), \"staker address cannot be 0\");\n        require(stakesNonce[staker] == _nonce);\n        stakesNonce[staker] = stakesNonce[staker].add(1);\n        return _stake(_proposalId, _vote, _amount, staker);\n    }\n\n    /**\n     * @dev voting function\n     * @param _proposalId id of the proposal\n     * @param _vote NO(2) or YES(1).\n     * @param _amount the reputation amount to vote with . if _amount == 0 it will use all voter reputation.\n     * @param _voter voter address\n     * @return bool true - the proposal has been executed\n     *              false - otherwise.\n     */\n    function vote(bytes32 _proposalId, uint256 _vote, uint256 _amount, address _voter)\n    external\n    votable(_proposalId)\n    returns(bool) {\n        Proposal storage proposal = proposals[_proposalId];\n        Parameters memory params = parameters[proposal.paramsHash];\n        address voter;\n        if (params.voteOnBehalf != address(0)) {\n            require(msg.sender == params.voteOnBehalf);\n            voter = _voter;\n        } else {\n            voter = msg.sender;\n        }\n        return internalVote(_proposalId, voter, _vote, _amount);\n    }\n\n  /**\n   * @dev Cancel the vote of the msg.sender.\n   * cancel vote is not allow in genesisProtocol so this function doing nothing.\n   * This function is here in order to comply to the IntVoteInterface .\n   */\n    function cancelVote(bytes32 _proposalId) external votable(_proposalId) {\n       //this is not allowed\n        return;\n    }\n\n    /**\n      * @dev execute check if the proposal has been decided, and if so, execute the proposal\n      * @param _proposalId the id of the proposal\n      * @return bool true - the proposal has been executed\n      *              false - otherwise.\n     */\n    function execute(bytes32 _proposalId) external votable(_proposalId) returns(bool) {\n        return _execute(_proposalId);\n    }\n\n  /**\n    * @dev getNumberOfChoices returns the number of choices possible in this proposal\n    * @return uint256 that contains number of choices\n    */\n    function getNumberOfChoices(bytes32) external view returns(uint256) {\n        return NUM_OF_CHOICES;\n    }\n\n    /**\n      * @dev getProposalTimes returns proposals times variables.\n      * @param _proposalId id of the proposal\n      * @return proposals times array\n      */\n    function getProposalTimes(bytes32 _proposalId) external view returns(uint[3] memory times) {\n        return proposals[_proposalId].times;\n    }\n\n    /**\n     * @dev voteInfo returns the vote and the amount of reputation of the user committed to this proposal\n     * @param _proposalId the ID of the proposal\n     * @param _voter the address of the voter\n     * @return uint256 vote - the voters vote\n     *        uint256 reputation - amount of reputation committed by _voter to _proposalId\n     */\n    function voteInfo(bytes32 _proposalId, address _voter) external view returns(uint, uint) {\n        Voter memory voter = proposals[_proposalId].voters[_voter];\n        return (voter.vote, voter.reputation);\n    }\n\n    /**\n    * @dev voteStatus returns the reputation voted for a proposal for a specific voting choice.\n    * @param _proposalId the ID of the proposal\n    * @param _choice the index in the\n    * @return voted reputation for the given choice\n    */\n    function voteStatus(bytes32 _proposalId, uint256 _choice) external view returns(uint256) {\n        return proposals[_proposalId].votes[_choice];\n    }\n\n    /**\n    * @dev isVotable check if the proposal is votable\n    * @param _proposalId the ID of the proposal\n    * @return bool true or false\n    */\n    function isVotable(bytes32 _proposalId) external view returns(bool) {\n        return _isVotable(_proposalId);\n    }\n\n    /**\n    * @dev proposalStatus return the total votes and stakes for a given proposal\n    * @param _proposalId the ID of the proposal\n    * @return uint256 preBoostedVotes YES\n    * @return uint256 preBoostedVotes NO\n    * @return uint256 total stakes YES\n    * @return uint256 total stakes NO\n    */\n    function proposalStatus(bytes32 _proposalId) external view returns(uint256, uint256, uint256, uint256) {\n        return (\n                proposals[_proposalId].preBoostedVotes[YES],\n                proposals[_proposalId].preBoostedVotes[NO],\n                proposals[_proposalId].stakes[YES],\n                proposals[_proposalId].stakes[NO]\n        );\n    }\n\n  /**\n    * @dev getProposalOrganization return the organizationId for a given proposal\n    * @param _proposalId the ID of the proposal\n    * @return bytes32 organization identifier\n    */\n    function getProposalOrganization(bytes32 _proposalId) external view returns(bytes32) {\n        return (proposals[_proposalId].organizationId);\n    }\n\n    /**\n      * @dev getStaker return the vote and stake amount for a given proposal and staker\n      * @param _proposalId the ID of the proposal\n      * @param _staker staker address\n      * @return uint256 vote\n      * @return uint256 amount\n    */\n    function getStaker(bytes32 _proposalId, address _staker) external view returns(uint256, uint256) {\n        return (proposals[_proposalId].stakers[_staker].vote, proposals[_proposalId].stakers[_staker].amount);\n    }\n\n    /**\n      * @dev voteStake return the amount stakes for a given proposal and vote\n      * @param _proposalId the ID of the proposal\n      * @param _vote vote number\n      * @return uint256 stake amount\n    */\n    function voteStake(bytes32 _proposalId, uint256 _vote) external view returns(uint256) {\n        return proposals[_proposalId].stakes[_vote];\n    }\n\n  /**\n    * @dev voteStake return the winningVote for a given proposal\n    * @param _proposalId the ID of the proposal\n    * @return uint256 winningVote\n    */\n    function winningVote(bytes32 _proposalId) external view returns(uint256) {\n        return proposals[_proposalId].winningVote;\n    }\n\n    /**\n      * @dev voteStake return the state for a given proposal\n      * @param _proposalId the ID of the proposal\n      * @return ProposalState proposal state\n    */\n    function state(bytes32 _proposalId) external view returns(ProposalState) {\n        return proposals[_proposalId].state;\n    }\n\n   /**\n    * @dev isAbstainAllow returns if the voting machine allow abstain (0)\n    * @return bool true or false\n    */\n    function isAbstainAllow() external pure returns(bool) {\n        return false;\n    }\n\n    /**\n     * @dev getAllowedRangeOfChoices returns the allowed range of choices for a voting machine.\n     * @return min - minimum number of choices\n               max - maximum number of choices\n     */\n    function getAllowedRangeOfChoices() external pure returns(uint256 min, uint256 max) {\n        return (YES, NO);\n    }\n\n    /**\n     * @dev score return the proposal score\n     * @param _proposalId the ID of the proposal\n     * @return uint256 proposal score.\n     */\n    function score(bytes32 _proposalId) public view returns(uint256) {\n        return  _score(_proposalId);\n    }\n}\n",
  "sourcePath": "@daostack/infra/contracts/votingMachines/GenesisProtocol.sol",
  "ast": {
    "absolutePath": "@daostack/infra/contracts/votingMachines/GenesisProtocol.sol",
    "exportedSymbols": {
      "GenesisProtocol": [
        10204
      ]
    },
    "id": 10205,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 9713,
        "literals": [
          "solidity",
          "^",
          "0.5",
          ".4"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:46"
      },
      {
        "absolutePath": "openzeppelin-solidity/contracts/cryptography/ECDSA.sol",
        "file": "openzeppelin-solidity/contracts/cryptography/ECDSA.sol",
        "id": 9714,
        "nodeType": "ImportDirective",
        "scope": 10205,
        "sourceUnit": 22791,
        "src": "25:64:46",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@daostack/infra/contracts/votingMachines/GenesisProtocolLogic.sol",
        "file": "./GenesisProtocolLogic.sol",
        "id": 9715,
        "nodeType": "ImportDirective",
        "scope": 10205,
        "sourceUnit": 12775,
        "src": "90:36:46",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 9716,
              "name": "IntVoteInterface",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 12909,
              "src": "248:16:46",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_IntVoteInterface_$12909",
                "typeString": "contract IntVoteInterface"
              }
            },
            "id": 9717,
            "nodeType": "InheritanceSpecifier",
            "src": "248:16:46"
          },
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 9718,
              "name": "GenesisProtocolLogic",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 12774,
              "src": "266:20:46",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_GenesisProtocolLogic_$12774",
                "typeString": "contract GenesisProtocolLogic"
              }
            },
            "id": 9719,
            "nodeType": "InheritanceSpecifier",
            "src": "266:20:46"
          }
        ],
        "contractDependencies": [
          12774,
          12909
        ],
        "contractKind": "contract",
        "documentation": "@title GenesisProtocol implementation -an organization's voting machine scheme.",
        "fullyImplemented": true,
        "id": 10204,
        "linearizedBaseContracts": [
          10204,
          12774,
          12909
        ],
        "name": "GenesisProtocol",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "id": 9722,
            "libraryName": {
              "contractScope": null,
              "id": 9720,
              "name": "ECDSA",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 22790,
              "src": "299:5:46",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_ECDSA_$22790",
                "typeString": "library ECDSA"
              }
            },
            "nodeType": "UsingForDirective",
            "src": "293:24:46",
            "typeName": {
              "id": 9721,
              "name": "bytes32",
              "nodeType": "ElementaryTypeName",
              "src": "309:7:46",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes32",
                "typeString": "bytes32"
              }
            }
          },
          {
            "constant": true,
            "id": 9734,
            "name": "DELEGATION_HASH_EIP712",
            "nodeType": "VariableDeclaration",
            "scope": 10204,
            "src": "441:220:46",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_bytes32",
              "typeString": "bytes32"
            },
            "typeName": {
              "id": 9723,
              "name": "bytes32",
              "nodeType": "ElementaryTypeName",
              "src": "441:7:46",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes32",
                "typeString": "bytes32"
              }
            },
            "value": {
              "argumentTypes": null,
              "arguments": [
                {
                  "argumentTypes": null,
                  "arguments": [
                    {
                      "argumentTypes": null,
                      "hexValue": "616464726573732047656e6573697350726f746f636f6c41646472657373",
                      "id": 9727,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "string",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "526:32:46",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_stringliteral_f6f81c79222251f266116add8ba75554a893ee5a90e2827df720a8738b6852ea",
                        "typeString": "literal_string \"address GenesisProtocolAddress\""
                      },
                      "value": "address GenesisProtocolAddress"
                    },
                    {
                      "argumentTypes": null,
                      "hexValue": "627974657333322050726f706f73616c4964",
                      "id": 9728,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "string",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "564:20:46",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_stringliteral_c82636388059bdf5f5ea03cfec7d8e327d93cc6aaa4cd8e5544d7950722aea62",
                        "typeString": "literal_string \"bytes32 ProposalId\""
                      },
                      "value": "bytes32 ProposalId"
                    },
                    {
                      "argumentTypes": null,
                      "hexValue": "75696e7432353620566f7465",
                      "id": 9729,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "string",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "590:14:46",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_stringliteral_5b7c3f5ffe3403c4b459a64b441be5b523982a2df65457e729fee531305984ff",
                        "typeString": "literal_string \"uint256 Vote\""
                      },
                      "value": "uint256 Vote"
                    },
                    {
                      "argumentTypes": null,
                      "hexValue": "75696e7432353620416d6f756e74546f5374616b65",
                      "id": 9730,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "string",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "610:23:46",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_stringliteral_eaeb9db97e42ac65bdd1048a940a8f71fc1af8b56d16e6cd3de10e163148977c",
                        "typeString": "literal_string \"uint256 AmountToStake\""
                      },
                      "value": "uint256 AmountToStake"
                    },
                    {
                      "argumentTypes": null,
                      "hexValue": "75696e74323536204e6f6e6365",
                      "id": 9731,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "string",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "639:15:46",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_stringliteral_f461d9cb6c7bbc73c9b53173ca291dd54af24fcc1e3e4e673a2da79ed63c9b73",
                        "typeString": "literal_string \"uint256 Nonce\""
                      },
                      "value": "uint256 Nonce"
                    }
                  ],
                  "expression": {
                    "argumentTypes": [
                      {
                        "typeIdentifier": "t_stringliteral_f6f81c79222251f266116add8ba75554a893ee5a90e2827df720a8738b6852ea",
                        "typeString": "literal_string \"address GenesisProtocolAddress\""
                      },
                      {
                        "typeIdentifier": "t_stringliteral_c82636388059bdf5f5ea03cfec7d8e327d93cc6aaa4cd8e5544d7950722aea62",
                        "typeString": "literal_string \"bytes32 ProposalId\""
                      },
                      {
                        "typeIdentifier": "t_stringliteral_5b7c3f5ffe3403c4b459a64b441be5b523982a2df65457e729fee531305984ff",
                        "typeString": "literal_string \"uint256 Vote\""
                      },
                      {
                        "typeIdentifier": "t_stringliteral_eaeb9db97e42ac65bdd1048a940a8f71fc1af8b56d16e6cd3de10e163148977c",
                        "typeString": "literal_string \"uint256 AmountToStake\""
                      },
                      {
                        "typeIdentifier": "t_stringliteral_f461d9cb6c7bbc73c9b53173ca291dd54af24fcc1e3e4e673a2da79ed63c9b73",
                        "typeString": "literal_string \"uint256 Nonce\""
                      }
                    ],
                    "expression": {
                      "argumentTypes": null,
                      "id": 9725,
                      "name": "abi",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 23677,
                      "src": "504:3:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_magic_abi",
                        "typeString": "abi"
                      }
                    },
                    "id": 9726,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "lValueRequested": false,
                    "memberName": "encodePacked",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": null,
                    "src": "504:16:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
                      "typeString": "function () pure returns (bytes memory)"
                    }
                  },
                  "id": 9732,
                  "isConstant": false,
                  "isLValue": false,
                  "isPure": true,
                  "kind": "functionCall",
                  "lValueRequested": false,
                  "names": [],
                  "nodeType": "FunctionCall",
                  "src": "504:156:46",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes memory"
                  }
                }
              ],
              "expression": {
                "argumentTypes": [
                  {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes memory"
                  }
                ],
                "id": 9724,
                "name": "keccak256",
                "nodeType": "Identifier",
                "overloadedDeclarations": [],
                "referencedDeclaration": 23684,
                "src": "494:9:46",
                "typeDescriptions": {
                  "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
                  "typeString": "function (bytes memory) pure returns (bytes32)"
                }
              },
              "id": 9733,
              "isConstant": false,
              "isLValue": false,
              "isPure": true,
              "kind": "functionCall",
              "lValueRequested": false,
              "names": [],
              "nodeType": "FunctionCall",
              "src": "494:167:46",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes32",
                "typeString": "bytes32"
              }
            },
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 9738,
            "name": "stakesNonce",
            "nodeType": "VariableDeclaration",
            "scope": 10204,
            "src": "668:44:46",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
              "typeString": "mapping(address => uint256)"
            },
            "typeName": {
              "id": 9737,
              "keyType": {
                "id": 9735,
                "name": "address",
                "nodeType": "ElementaryTypeName",
                "src": "676:7:46",
                "typeDescriptions": {
                  "typeIdentifier": "t_address",
                  "typeString": "address"
                }
              },
              "nodeType": "Mapping",
              "src": "668:25:46",
              "typeDescriptions": {
                "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
                "typeString": "mapping(address => uint256)"
              },
              "valueType": {
                "id": 9736,
                "name": "uint256",
                "nodeType": "ElementaryTypeName",
                "src": "685:7:46",
                "typeDescriptions": {
                  "typeIdentifier": "t_uint256",
                  "typeString": "uint256"
                }
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 9746,
              "nodeType": "Block",
              "src": "908:7:46",
              "statements": []
            },
            "documentation": "@dev Constructor",
            "id": 9747,
            "implemented": true,
            "kind": "constructor",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 9743,
                    "name": "_stakingToken",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 9740,
                    "src": "893:13:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IERC20_$23656",
                      "typeString": "contract IERC20"
                    }
                  }
                ],
                "id": 9744,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 9742,
                  "name": "GenesisProtocolLogic",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 12774,
                  "src": "872:20:46",
                  "typeDescriptions": {
                    "typeIdentifier": "t_type$_t_contract$_GenesisProtocolLogic_$12774_$",
                    "typeString": "type(contract GenesisProtocolLogic)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "872:35:46"
              }
            ],
            "name": "",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9741,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9740,
                  "name": "_stakingToken",
                  "nodeType": "VariableDeclaration",
                  "scope": 9747,
                  "src": "786:20:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IERC20_$23656",
                    "typeString": "contract IERC20"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 9739,
                    "name": "IERC20",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 23656,
                    "src": "786:6:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IERC20_$23656",
                      "typeString": "contract IERC20"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "785:22:46"
            },
            "returnParameters": {
              "id": 9745,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "908:0:46"
            },
            "scope": 10204,
            "src": "774:141:46",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 9766,
              "nodeType": "Block",
              "src": "1278:71:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 9759,
                        "name": "_proposalId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9749,
                        "src": "1302:11:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 9760,
                        "name": "_vote",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9751,
                        "src": "1315:5:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 9761,
                        "name": "_amount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9753,
                        "src": "1322:7:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 9762,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "1331:3:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 9763,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "1331:10:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      ],
                      "id": 9758,
                      "name": "_stake",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 12403,
                      "src": "1295:6:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_uint256_$_t_uint256_$_t_address_$returns$_t_bool_$",
                        "typeString": "function (bytes32,uint256,uint256,address) returns (bool)"
                      }
                    },
                    "id": 9764,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1295:47:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 9757,
                  "id": 9765,
                  "nodeType": "Return",
                  "src": "1288:54:46"
                }
              ]
            },
            "documentation": "@dev staking function\n@param _proposalId id of the proposal\n@param _vote  NO(2) or YES(1).\n@param _amount the betting amount\n@return bool true - the proposal has been executed\n             false - otherwise.",
            "id": 9767,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "stake",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9754,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9749,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 9767,
                  "src": "1202:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 9748,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1202:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9751,
                  "name": "_vote",
                  "nodeType": "VariableDeclaration",
                  "scope": 9767,
                  "src": "1223:13:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9750,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1223:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9753,
                  "name": "_amount",
                  "nodeType": "VariableDeclaration",
                  "scope": 9767,
                  "src": "1238:15:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9752,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1238:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1201:53:46"
            },
            "returnParameters": {
              "id": 9757,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9756,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 9767,
                  "src": "1272:4:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 9755,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "1272:4:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1271:6:46"
            },
            "scope": 10204,
            "src": "1187:162:46",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 9873,
              "nodeType": "Block",
              "src": "2212:1257:46",
              "statements": [
                {
                  "assignments": [
                    9785
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 9785,
                      "name": "delegationDigest",
                      "nodeType": "VariableDeclaration",
                      "scope": 9873,
                      "src": "2269:24:46",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      },
                      "typeName": {
                        "id": 9784,
                        "name": "bytes32",
                        "nodeType": "ElementaryTypeName",
                        "src": "2269:7:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 9786,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "2269:24:46"
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 9789,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "id": 9787,
                      "name": "_signatureType",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 9777,
                      "src": "2307:14:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "==",
                    "rightExpression": {
                      "argumentTypes": null,
                      "hexValue": "32",
                      "id": 9788,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "number",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "2325:1:46",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_rational_2_by_1",
                        "typeString": "int_const 2"
                      },
                      "value": "2"
                    },
                    "src": "2307:19:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": {
                    "id": 9829,
                    "nodeType": "Block",
                    "src": "2745:315:46",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "id": 9827,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "argumentTypes": null,
                            "id": 9812,
                            "name": "delegationDigest",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 9785,
                            "src": "2759:16:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "argumentTypes": null,
                            "arguments": [],
                            "expression": {
                              "argumentTypes": [],
                              "expression": {
                                "argumentTypes": null,
                                "arguments": [
                                  {
                                    "argumentTypes": null,
                                    "arguments": [
                                      {
                                        "argumentTypes": null,
                                        "arguments": [
                                          {
                                            "argumentTypes": null,
                                            "id": 9817,
                                            "name": "this",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 23832,
                                            "src": "2863:4:46",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_contract$_GenesisProtocol_$10204",
                                              "typeString": "contract GenesisProtocol"
                                            }
                                          }
                                        ],
                                        "expression": {
                                          "argumentTypes": [
                                            {
                                              "typeIdentifier": "t_contract$_GenesisProtocol_$10204",
                                              "typeString": "contract GenesisProtocol"
                                            }
                                          ],
                                          "id": 9816,
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": true,
                                          "lValueRequested": false,
                                          "nodeType": "ElementaryTypeNameExpression",
                                          "src": "2855:7:46",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_type$_t_address_$",
                                            "typeString": "type(address)"
                                          },
                                          "typeName": "address"
                                        },
                                        "id": 9818,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "kind": "typeConversion",
                                        "lValueRequested": false,
                                        "names": [],
                                        "nodeType": "FunctionCall",
                                        "src": "2855:13:46",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_address",
                                          "typeString": "address"
                                        }
                                      },
                                      {
                                        "argumentTypes": null,
                                        "id": 9819,
                                        "name": "_proposalId",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 9769,
                                        "src": "2894:11:46",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_bytes32",
                                          "typeString": "bytes32"
                                        }
                                      },
                                      {
                                        "argumentTypes": null,
                                        "id": 9820,
                                        "name": "_vote",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 9771,
                                        "src": "2931:5:46",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        }
                                      },
                                      {
                                        "argumentTypes": null,
                                        "id": 9821,
                                        "name": "_amount",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 9773,
                                        "src": "2962:7:46",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        }
                                      },
                                      {
                                        "argumentTypes": null,
                                        "id": 9822,
                                        "name": "_nonce",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 9775,
                                        "src": "2995:6:46",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        }
                                      }
                                    ],
                                    "expression": {
                                      "argumentTypes": [
                                        {
                                          "typeIdentifier": "t_address",
                                          "typeString": "address"
                                        },
                                        {
                                          "typeIdentifier": "t_bytes32",
                                          "typeString": "bytes32"
                                        },
                                        {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        },
                                        {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        },
                                        {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        }
                                      ],
                                      "expression": {
                                        "argumentTypes": null,
                                        "id": 9814,
                                        "name": "abi",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 23677,
                                        "src": "2813:3:46",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_magic_abi",
                                          "typeString": "abi"
                                        }
                                      },
                                      "id": 9815,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": true,
                                      "lValueRequested": false,
                                      "memberName": "encodePacked",
                                      "nodeType": "MemberAccess",
                                      "referencedDeclaration": null,
                                      "src": "2813:16:46",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
                                        "typeString": "function () pure returns (bytes memory)"
                                      }
                                    },
                                    "id": 9823,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": false,
                                    "kind": "functionCall",
                                    "lValueRequested": false,
                                    "names": [],
                                    "nodeType": "FunctionCall",
                                    "src": "2813:189:46",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_bytes_memory_ptr",
                                      "typeString": "bytes memory"
                                    }
                                  }
                                ],
                                "expression": {
                                  "argumentTypes": [
                                    {
                                      "typeIdentifier": "t_bytes_memory_ptr",
                                      "typeString": "bytes memory"
                                    }
                                  ],
                                  "id": 9813,
                                  "name": "keccak256",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 23684,
                                  "src": "2778:9:46",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
                                    "typeString": "function (bytes memory) pure returns (bytes32)"
                                  }
                                },
                                "id": 9824,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "kind": "functionCall",
                                "lValueRequested": false,
                                "names": [],
                                "nodeType": "FunctionCall",
                                "src": "2778:246:46",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                }
                              },
                              "id": 9825,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "toEthSignedMessageHash",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 22789,
                              "src": "2778:269:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_internal_pure$_t_bytes32_$returns$_t_bytes32_$bound_to$_t_bytes32_$",
                                "typeString": "function (bytes32) pure returns (bytes32)"
                              }
                            },
                            "id": 9826,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "2778:271:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          },
                          "src": "2759:290:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        "id": 9828,
                        "nodeType": "ExpressionStatement",
                        "src": "2759:290:46"
                      }
                    ]
                  },
                  "id": 9830,
                  "nodeType": "IfStatement",
                  "src": "2303:757:46",
                  "trueBody": {
                    "id": 9811,
                    "nodeType": "Block",
                    "src": "2328:411:46",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "id": 9809,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "argumentTypes": null,
                            "id": 9790,
                            "name": "delegationDigest",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 9785,
                            "src": "2342:16:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "arguments": [
                                  {
                                    "argumentTypes": null,
                                    "id": 9794,
                                    "name": "DELEGATION_HASH_EIP712",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 9734,
                                    "src": "2426:22:46",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_bytes32",
                                      "typeString": "bytes32"
                                    }
                                  },
                                  {
                                    "argumentTypes": null,
                                    "arguments": [
                                      {
                                        "argumentTypes": null,
                                        "arguments": [
                                          {
                                            "argumentTypes": null,
                                            "arguments": [
                                              {
                                                "argumentTypes": null,
                                                "id": 9799,
                                                "name": "this",
                                                "nodeType": "Identifier",
                                                "overloadedDeclarations": [],
                                                "referencedDeclaration": 23832,
                                                "src": "2535:4:46",
                                                "typeDescriptions": {
                                                  "typeIdentifier": "t_contract$_GenesisProtocol_$10204",
                                                  "typeString": "contract GenesisProtocol"
                                                }
                                              }
                                            ],
                                            "expression": {
                                              "argumentTypes": [
                                                {
                                                  "typeIdentifier": "t_contract$_GenesisProtocol_$10204",
                                                  "typeString": "contract GenesisProtocol"
                                                }
                                              ],
                                              "id": 9798,
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": true,
                                              "lValueRequested": false,
                                              "nodeType": "ElementaryTypeNameExpression",
                                              "src": "2527:7:46",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_type$_t_address_$",
                                                "typeString": "type(address)"
                                              },
                                              "typeName": "address"
                                            },
                                            "id": 9800,
                                            "isConstant": false,
                                            "isLValue": false,
                                            "isPure": false,
                                            "kind": "typeConversion",
                                            "lValueRequested": false,
                                            "names": [],
                                            "nodeType": "FunctionCall",
                                            "src": "2527:13:46",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_address",
                                              "typeString": "address"
                                            }
                                          },
                                          {
                                            "argumentTypes": null,
                                            "id": 9801,
                                            "name": "_proposalId",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 9769,
                                            "src": "2566:11:46",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_bytes32",
                                              "typeString": "bytes32"
                                            }
                                          },
                                          {
                                            "argumentTypes": null,
                                            "id": 9802,
                                            "name": "_vote",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 9771,
                                            "src": "2603:5:46",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_uint256",
                                              "typeString": "uint256"
                                            }
                                          },
                                          {
                                            "argumentTypes": null,
                                            "id": 9803,
                                            "name": "_amount",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 9773,
                                            "src": "2634:7:46",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_uint256",
                                              "typeString": "uint256"
                                            }
                                          },
                                          {
                                            "argumentTypes": null,
                                            "id": 9804,
                                            "name": "_nonce",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 9775,
                                            "src": "2667:6:46",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_uint256",
                                              "typeString": "uint256"
                                            }
                                          }
                                        ],
                                        "expression": {
                                          "argumentTypes": [
                                            {
                                              "typeIdentifier": "t_address",
                                              "typeString": "address"
                                            },
                                            {
                                              "typeIdentifier": "t_bytes32",
                                              "typeString": "bytes32"
                                            },
                                            {
                                              "typeIdentifier": "t_uint256",
                                              "typeString": "uint256"
                                            },
                                            {
                                              "typeIdentifier": "t_uint256",
                                              "typeString": "uint256"
                                            },
                                            {
                                              "typeIdentifier": "t_uint256",
                                              "typeString": "uint256"
                                            }
                                          ],
                                          "expression": {
                                            "argumentTypes": null,
                                            "id": 9796,
                                            "name": "abi",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 23677,
                                            "src": "2485:3:46",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_magic_abi",
                                              "typeString": "abi"
                                            }
                                          },
                                          "id": 9797,
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": true,
                                          "lValueRequested": false,
                                          "memberName": "encodePacked",
                                          "nodeType": "MemberAccess",
                                          "referencedDeclaration": null,
                                          "src": "2485:16:46",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
                                            "typeString": "function () pure returns (bytes memory)"
                                          }
                                        },
                                        "id": 9805,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "kind": "functionCall",
                                        "lValueRequested": false,
                                        "names": [],
                                        "nodeType": "FunctionCall",
                                        "src": "2485:189:46",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_bytes_memory_ptr",
                                          "typeString": "bytes memory"
                                        }
                                      }
                                    ],
                                    "expression": {
                                      "argumentTypes": [
                                        {
                                          "typeIdentifier": "t_bytes_memory_ptr",
                                          "typeString": "bytes memory"
                                        }
                                      ],
                                      "id": 9795,
                                      "name": "keccak256",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 23684,
                                      "src": "2450:9:46",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
                                        "typeString": "function (bytes memory) pure returns (bytes32)"
                                      }
                                    },
                                    "id": 9806,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": false,
                                    "kind": "functionCall",
                                    "lValueRequested": false,
                                    "names": [],
                                    "nodeType": "FunctionCall",
                                    "src": "2450:246:46",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_bytes32",
                                      "typeString": "bytes32"
                                    }
                                  }
                                ],
                                "expression": {
                                  "argumentTypes": [
                                    {
                                      "typeIdentifier": "t_bytes32",
                                      "typeString": "bytes32"
                                    },
                                    {
                                      "typeIdentifier": "t_bytes32",
                                      "typeString": "bytes32"
                                    }
                                  ],
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 9792,
                                    "name": "abi",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 23677,
                                    "src": "2388:3:46",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_magic_abi",
                                      "typeString": "abi"
                                    }
                                  },
                                  "id": 9793,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "lValueRequested": false,
                                  "memberName": "encodePacked",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": null,
                                  "src": "2388:16:46",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
                                    "typeString": "function () pure returns (bytes memory)"
                                  }
                                },
                                "id": 9807,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "kind": "functionCall",
                                "lValueRequested": false,
                                "names": [],
                                "nodeType": "FunctionCall",
                                "src": "2388:326:46",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes_memory_ptr",
                                  "typeString": "bytes memory"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_bytes_memory_ptr",
                                  "typeString": "bytes memory"
                                }
                              ],
                              "id": 9791,
                              "name": "keccak256",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 23684,
                              "src": "2361:9:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
                                "typeString": "function (bytes memory) pure returns (bytes32)"
                              }
                            },
                            "id": 9808,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "2361:367:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          },
                          "src": "2342:386:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        "id": 9810,
                        "nodeType": "ExpressionStatement",
                        "src": "2342:386:46"
                      }
                    ]
                  }
                },
                {
                  "assignments": [
                    9832
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 9832,
                      "name": "staker",
                      "nodeType": "VariableDeclaration",
                      "scope": 9873,
                      "src": "3069:14:46",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      },
                      "typeName": {
                        "id": 9831,
                        "name": "address",
                        "nodeType": "ElementaryTypeName",
                        "src": "3069:7:46",
                        "stateMutability": "nonpayable",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 9837,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 9835,
                        "name": "_signature",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9779,
                        "src": "3111:10:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_calldata_ptr",
                          "typeString": "bytes calldata"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes_calldata_ptr",
                          "typeString": "bytes calldata"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 9833,
                        "name": "delegationDigest",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9785,
                        "src": "3086:16:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "id": 9834,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "recover",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 22773,
                      "src": "3086:24:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_bytes_memory_ptr_$returns$_t_address_$bound_to$_t_bytes32_$",
                        "typeString": "function (bytes32,bytes memory) pure returns (address)"
                      }
                    },
                    "id": 9836,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3086:36:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "3069:53:46"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 9843,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "id": 9839,
                          "name": "staker",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 9832,
                          "src": "3245:6:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "!=",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30",
                              "id": 9841,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "3263:1:46",
                              "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": 9840,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "3255:7:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_address_$",
                              "typeString": "type(address)"
                            },
                            "typeName": "address"
                          },
                          "id": 9842,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "3255:10:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        },
                        "src": "3245:20:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "7374616b657220616464726573732063616e6e6f742062652030",
                        "id": 9844,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "3267:28:46",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_3430815440156fda2758a526d662027048e6496bf994b390c4dc85badccdf423",
                          "typeString": "literal_string \"staker address cannot be 0\""
                        },
                        "value": "staker address cannot be 0"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_3430815440156fda2758a526d662027048e6496bf994b390c4dc85badccdf423",
                          "typeString": "literal_string \"staker address cannot be 0\""
                        }
                      ],
                      "id": 9838,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23694,
                      "src": "3237:7:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 9845,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3237:59:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 9846,
                  "nodeType": "ExpressionStatement",
                  "src": "3237:59:46"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 9852,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "baseExpression": {
                            "argumentTypes": null,
                            "id": 9848,
                            "name": "stakesNonce",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 9738,
                            "src": "3314:11:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
                              "typeString": "mapping(address => uint256)"
                            }
                          },
                          "id": 9850,
                          "indexExpression": {
                            "argumentTypes": null,
                            "id": 9849,
                            "name": "staker",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 9832,
                            "src": "3326:6:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "IndexAccess",
                          "src": "3314:19:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "id": 9851,
                          "name": "_nonce",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 9775,
                          "src": "3337:6:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "src": "3314:29:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 9847,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "3306:7:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 9853,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3306:38:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 9854,
                  "nodeType": "ExpressionStatement",
                  "src": "3306:38:46"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 9864,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 9855,
                        "name": "stakesNonce",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9738,
                        "src": "3354:11:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
                          "typeString": "mapping(address => uint256)"
                        }
                      },
                      "id": 9857,
                      "indexExpression": {
                        "argumentTypes": null,
                        "id": 9856,
                        "name": "staker",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9832,
                        "src": "3366:6:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "IndexAccess",
                      "src": "3354:19:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "hexValue": "31",
                          "id": 9862,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "number",
                          "lValueRequested": false,
                          "nodeType": "Literal",
                          "src": "3400:1:46",
                          "subdenomination": null,
                          "typeDescriptions": {
                            "typeIdentifier": "t_rational_1_by_1",
                            "typeString": "int_const 1"
                          },
                          "value": "1"
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_rational_1_by_1",
                            "typeString": "int_const 1"
                          }
                        ],
                        "expression": {
                          "argumentTypes": null,
                          "baseExpression": {
                            "argumentTypes": null,
                            "id": 9858,
                            "name": "stakesNonce",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 9738,
                            "src": "3376:11:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
                              "typeString": "mapping(address => uint256)"
                            }
                          },
                          "id": 9860,
                          "indexExpression": {
                            "argumentTypes": null,
                            "id": 9859,
                            "name": "staker",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 9832,
                            "src": "3388:6:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "IndexAccess",
                          "src": "3376:19:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "id": 9861,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "add",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 22966,
                        "src": "3376:23:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
                          "typeString": "function (uint256,uint256) pure returns (uint256)"
                        }
                      },
                      "id": 9863,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "3376:26:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "3354:48:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "id": 9865,
                  "nodeType": "ExpressionStatement",
                  "src": "3354:48:46"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 9867,
                        "name": "_proposalId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9769,
                        "src": "3426:11:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 9868,
                        "name": "_vote",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9771,
                        "src": "3439:5:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 9869,
                        "name": "_amount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9773,
                        "src": "3446:7:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 9870,
                        "name": "staker",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9832,
                        "src": "3455:6:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 9866,
                      "name": "_stake",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 12403,
                      "src": "3419:6:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_uint256_$_t_uint256_$_t_address_$returns$_t_bool_$",
                        "typeString": "function (bytes32,uint256,uint256,address) returns (bool)"
                      }
                    },
                    "id": 9871,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3419:43:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 9783,
                  "id": 9872,
                  "nodeType": "Return",
                  "src": "3412:50:46"
                }
              ]
            },
            "documentation": "@dev stakeWithSignature function\n@param _proposalId id of the proposal\n@param _vote  NO(2) or YES(1).\n@param _amount the betting amount\n@param _nonce nonce value ,it is part of the signature to ensure that\na signature can be received only once.\n@param _signatureType signature type\n1 - for web3.eth.sign\n2 - for eth_signTypedData according to EIP #712.\n@param _signature  - signed data by the staker\n@return bool true - the proposal has been executed\n             false - otherwise.",
            "id": 9874,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "stakeWithSignature",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9780,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9769,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 9874,
                  "src": "1996:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 9768,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1996:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9771,
                  "name": "_vote",
                  "nodeType": "VariableDeclaration",
                  "scope": 9874,
                  "src": "2025:13:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9770,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2025:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9773,
                  "name": "_amount",
                  "nodeType": "VariableDeclaration",
                  "scope": 9874,
                  "src": "2048:15:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9772,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2048:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9775,
                  "name": "_nonce",
                  "nodeType": "VariableDeclaration",
                  "scope": 9874,
                  "src": "2073:14:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9774,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2073:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9777,
                  "name": "_signatureType",
                  "nodeType": "VariableDeclaration",
                  "scope": 9874,
                  "src": "2097:22:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9776,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2097:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9779,
                  "name": "_signature",
                  "nodeType": "VariableDeclaration",
                  "scope": 9874,
                  "src": "2129:25:46",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_calldata_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 9778,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "2129:5:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1986:178:46"
            },
            "returnParameters": {
              "id": 9783,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9782,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 9874,
                  "src": "2198:4:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 9781,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "2198:4:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2197:6:46"
            },
            "scope": 10204,
            "src": "1959:1510:46",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 9939,
              "nodeType": "Block",
              "src": "3981:415:46",
              "statements": [
                {
                  "assignments": [
                    9891
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 9891,
                      "name": "proposal",
                      "nodeType": "VariableDeclaration",
                      "scope": 9939,
                      "src": "3991:25:46",
                      "stateVariable": false,
                      "storageLocation": "storage",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Proposal_$10339_storage_ptr",
                        "typeString": "struct GenesisProtocolLogic.Proposal"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 9890,
                        "name": "Proposal",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 10339,
                        "src": "3991:8:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Proposal_$10339_storage_ptr",
                          "typeString": "struct GenesisProtocolLogic.Proposal"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 9895,
                  "initialValue": {
                    "argumentTypes": null,
                    "baseExpression": {
                      "argumentTypes": null,
                      "id": 9892,
                      "name": "proposals",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10415,
                      "src": "4019:9:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                        "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                      }
                    },
                    "id": 9894,
                    "indexExpression": {
                      "argumentTypes": null,
                      "id": 9893,
                      "name": "_proposalId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 9876,
                      "src": "4029:11:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      }
                    },
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "IndexAccess",
                    "src": "4019:22:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                      "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "3991:50:46"
                },
                {
                  "assignments": [
                    9897
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 9897,
                      "name": "params",
                      "nodeType": "VariableDeclaration",
                      "scope": 9939,
                      "src": "4051:24:46",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Parameters_$10274_memory_ptr",
                        "typeString": "struct GenesisProtocolLogic.Parameters"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 9896,
                        "name": "Parameters",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 10274,
                        "src": "4051:10:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Parameters_$10274_storage_ptr",
                          "typeString": "struct GenesisProtocolLogic.Parameters"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 9902,
                  "initialValue": {
                    "argumentTypes": null,
                    "baseExpression": {
                      "argumentTypes": null,
                      "id": 9898,
                      "name": "parameters",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10411,
                      "src": "4078:10:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Parameters_$10274_storage_$",
                        "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Parameters storage ref)"
                      }
                    },
                    "id": 9901,
                    "indexExpression": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "id": 9899,
                        "name": "proposal",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9891,
                        "src": "4089:8:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Proposal_$10339_storage_ptr",
                          "typeString": "struct GenesisProtocolLogic.Proposal storage pointer"
                        }
                      },
                      "id": 9900,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "paramsHash",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 10302,
                      "src": "4089:19:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      }
                    },
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "IndexAccess",
                    "src": "4078:31:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Parameters_$10274_storage",
                      "typeString": "struct GenesisProtocolLogic.Parameters storage ref"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "4051:58:46"
                },
                {
                  "assignments": [
                    9904
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 9904,
                      "name": "voter",
                      "nodeType": "VariableDeclaration",
                      "scope": 9939,
                      "src": "4119:13:46",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      },
                      "typeName": {
                        "id": 9903,
                        "name": "address",
                        "nodeType": "ElementaryTypeName",
                        "src": "4119:7:46",
                        "stateMutability": "nonpayable",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 9905,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "4119:13:46"
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    },
                    "id": 9911,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "id": 9906,
                        "name": "params",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9897,
                        "src": "4146:6:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Parameters_$10274_memory_ptr",
                          "typeString": "struct GenesisProtocolLogic.Parameters memory"
                        }
                      },
                      "id": 9907,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "voteOnBehalf",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 10273,
                      "src": "4146:19:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "!=",
                    "rightExpression": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "hexValue": "30",
                          "id": 9909,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "number",
                          "lValueRequested": false,
                          "nodeType": "Literal",
                          "src": "4177:1:46",
                          "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": 9908,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "4169:7:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_address_$",
                          "typeString": "type(address)"
                        },
                        "typeName": "address"
                      },
                      "id": 9910,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "4169:10:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address_payable",
                        "typeString": "address payable"
                      }
                    },
                    "src": "4146:33:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": {
                    "id": 9930,
                    "nodeType": "Block",
                    "src": "4282:43:46",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "id": 9928,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "argumentTypes": null,
                            "id": 9925,
                            "name": "voter",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 9904,
                            "src": "4296:5:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "id": 9926,
                              "name": "msg",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 23690,
                              "src": "4304:3:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_magic_message",
                                "typeString": "msg"
                              }
                            },
                            "id": 9927,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "sender",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "4304:10:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address_payable",
                              "typeString": "address payable"
                            }
                          },
                          "src": "4296:18:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "id": 9929,
                        "nodeType": "ExpressionStatement",
                        "src": "4296:18:46"
                      }
                    ]
                  },
                  "id": 9931,
                  "nodeType": "IfStatement",
                  "src": "4142:183:46",
                  "trueBody": {
                    "id": 9924,
                    "nodeType": "Block",
                    "src": "4181:95:46",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "commonType": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              },
                              "id": 9917,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "leftExpression": {
                                "argumentTypes": null,
                                "expression": {
                                  "argumentTypes": null,
                                  "id": 9913,
                                  "name": "msg",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 23690,
                                  "src": "4203:3:46",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_magic_message",
                                    "typeString": "msg"
                                  }
                                },
                                "id": 9914,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "sender",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": null,
                                "src": "4203:10:46",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address_payable",
                                  "typeString": "address payable"
                                }
                              },
                              "nodeType": "BinaryOperation",
                              "operator": "==",
                              "rightExpression": {
                                "argumentTypes": null,
                                "expression": {
                                  "argumentTypes": null,
                                  "id": 9915,
                                  "name": "params",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 9897,
                                  "src": "4217:6:46",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_struct$_Parameters_$10274_memory_ptr",
                                    "typeString": "struct GenesisProtocolLogic.Parameters memory"
                                  }
                                },
                                "id": 9916,
                                "isConstant": false,
                                "isLValue": true,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "voteOnBehalf",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": 10273,
                                "src": "4217:19:46",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              },
                              "src": "4203:33:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            ],
                            "id": 9912,
                            "name": "require",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [
                              23693,
                              23694
                            ],
                            "referencedDeclaration": 23693,
                            "src": "4195:7:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                              "typeString": "function (bool) pure"
                            }
                          },
                          "id": 9918,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "4195:42:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 9919,
                        "nodeType": "ExpressionStatement",
                        "src": "4195:42:46"
                      },
                      {
                        "expression": {
                          "argumentTypes": null,
                          "id": 9922,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "argumentTypes": null,
                            "id": 9920,
                            "name": "voter",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 9904,
                            "src": "4251:5:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "argumentTypes": null,
                            "id": 9921,
                            "name": "_voter",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 9882,
                            "src": "4259:6:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "src": "4251:14:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "id": 9923,
                        "nodeType": "ExpressionStatement",
                        "src": "4251:14:46"
                      }
                    ]
                  }
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 9933,
                        "name": "_proposalId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9876,
                        "src": "4354:11:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 9934,
                        "name": "voter",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9904,
                        "src": "4367:5:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 9935,
                        "name": "_vote",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9878,
                        "src": "4374:5:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 9936,
                        "name": "_amount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9880,
                        "src": "4381:7:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 9932,
                      "name": "internalVote",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 12704,
                      "src": "4341:12:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_address_$_t_uint256_$_t_uint256_$returns$_t_bool_$",
                        "typeString": "function (bytes32,address,uint256,uint256) returns (bool)"
                      }
                    },
                    "id": 9937,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4341:48:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 9889,
                  "id": 9938,
                  "nodeType": "Return",
                  "src": "4334:55:46"
                }
              ]
            },
            "documentation": "@dev voting function\n@param _proposalId id of the proposal\n@param _vote NO(2) or YES(1).\n@param _amount the reputation amount to vote with . if _amount == 0 it will use all voter reputation.\n@param _voter voter address\n@return bool true - the proposal has been executed\n             false - otherwise.",
            "id": 9940,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 9885,
                    "name": "_proposalId",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 9876,
                    "src": "3950:11:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  }
                ],
                "id": 9886,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 9884,
                  "name": "votable",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 10482,
                  "src": "3942:7:46",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "3942:20:46"
              }
            ],
            "name": "vote",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9883,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9876,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 9940,
                  "src": "3856:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 9875,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "3856:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9878,
                  "name": "_vote",
                  "nodeType": "VariableDeclaration",
                  "scope": 9940,
                  "src": "3877:13:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9877,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3877:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9880,
                  "name": "_amount",
                  "nodeType": "VariableDeclaration",
                  "scope": 9940,
                  "src": "3892:15:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9879,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3892:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9882,
                  "name": "_voter",
                  "nodeType": "VariableDeclaration",
                  "scope": 9940,
                  "src": "3909:14:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 9881,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "3909:7:46",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "3855:69:46"
            },
            "returnParameters": {
              "id": 9889,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9888,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 9940,
                  "src": "3975:4:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 9887,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "3975:4:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "3974:6:46"
            },
            "scope": 10204,
            "src": "3842:554:46",
            "stateMutability": "nonpayable",
            "superFunction": 12868,
            "visibility": "external"
          },
          {
            "body": {
              "id": 9949,
              "nodeType": "Block",
              "src": "4683:52:46",
              "statements": [
                {
                  "expression": null,
                  "functionReturnParameters": 9947,
                  "id": 9948,
                  "nodeType": "Return",
                  "src": "4722:7:46"
                }
              ]
            },
            "documentation": "@dev Cancel the vote of the msg.sender.\ncancel vote is not allow in genesisProtocol so this function doing nothing.\nThis function is here in order to comply to the IntVoteInterface .",
            "id": 9950,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 9945,
                    "name": "_proposalId",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 9942,
                    "src": "4670:11:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  }
                ],
                "id": 9946,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 9944,
                  "name": "votable",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 10482,
                  "src": "4662:7:46",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "4662:20:46"
              }
            ],
            "name": "cancelVote",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9943,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9942,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 9950,
                  "src": "4632:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 9941,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4632:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "4631:21:46"
            },
            "returnParameters": {
              "id": 9947,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "4683:0:46"
            },
            "scope": 10204,
            "src": "4612:123:46",
            "stateMutability": "nonpayable",
            "superFunction": 12873,
            "visibility": "external"
          },
          {
            "body": {
              "id": 9964,
              "nodeType": "Block",
              "src": "5081:45:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 9961,
                        "name": "_proposalId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9952,
                        "src": "5107:11:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "id": 9960,
                      "name": "_execute",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 12211,
                      "src": "5098:8:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$returns$_t_bool_$",
                        "typeString": "function (bytes32) returns (bool)"
                      }
                    },
                    "id": 9962,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "5098:21:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 9959,
                  "id": 9963,
                  "nodeType": "Return",
                  "src": "5091:28:46"
                }
              ]
            },
            "documentation": "@dev execute check if the proposal has been decided, and if so, execute the proposal\n@param _proposalId the id of the proposal\n@return bool true - the proposal has been executed\n             false - otherwise.",
            "id": 9965,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 9955,
                    "name": "_proposalId",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 9952,
                    "src": "5054:11:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  }
                ],
                "id": 9956,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 9954,
                  "name": "votable",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 10482,
                  "src": "5046:7:46",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "5046:20:46"
              }
            ],
            "name": "execute",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9953,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9952,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 9965,
                  "src": "5016:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 9951,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "5016:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "5015:21:46"
            },
            "returnParameters": {
              "id": 9959,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9958,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 9965,
                  "src": "5075:4:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 9957,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "5075:4:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "5074:6:46"
            },
            "scope": 10204,
            "src": "4999:127:46",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 9974,
              "nodeType": "Block",
              "src": "5353:38:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 9972,
                    "name": "NUM_OF_CHOICES",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 10430,
                    "src": "5370:14:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "functionReturnParameters": 9971,
                  "id": 9973,
                  "nodeType": "Return",
                  "src": "5363:21:46"
                }
              ]
            },
            "documentation": "@dev getNumberOfChoices returns the number of choices possible in this proposal\n@return uint256 that contains number of choices",
            "id": 9975,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getNumberOfChoices",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9968,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9967,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 9975,
                  "src": "5313:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 9966,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "5313:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "5312:9:46"
            },
            "returnParameters": {
              "id": 9971,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9970,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 9975,
                  "src": "5344:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9969,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5344:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "5343:9:46"
            },
            "scope": 10204,
            "src": "5285:106:46",
            "stateMutability": "view",
            "superFunction": 12880,
            "visibility": "external"
          },
          {
            "body": {
              "id": 9989,
              "nodeType": "Block",
              "src": "5654:52:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "expression": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 9984,
                        "name": "proposals",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 10415,
                        "src": "5671:9:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                          "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                        }
                      },
                      "id": 9986,
                      "indexExpression": {
                        "argumentTypes": null,
                        "id": 9985,
                        "name": "_proposalId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9977,
                        "src": "5681:11:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "IndexAccess",
                      "src": "5671:22:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                        "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                      }
                    },
                    "id": 9987,
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "memberName": "times",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 10316,
                    "src": "5671:28:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_uint256_$3_storage",
                      "typeString": "uint256[3] storage ref"
                    }
                  },
                  "functionReturnParameters": 9983,
                  "id": 9988,
                  "nodeType": "Return",
                  "src": "5664:35:46"
                }
              ]
            },
            "documentation": "@dev getProposalTimes returns proposals times variables.\n@param _proposalId id of the proposal\n@return proposals times array",
            "id": 9990,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getProposalTimes",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9978,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9977,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 9990,
                  "src": "5589:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 9976,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "5589:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "5588:21:46"
            },
            "returnParameters": {
              "id": 9983,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9982,
                  "name": "times",
                  "nodeType": "VariableDeclaration",
                  "scope": 9990,
                  "src": "5632:20:46",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_uint256_$3_memory_ptr",
                    "typeString": "uint256[3]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 9979,
                      "name": "uint",
                      "nodeType": "ElementaryTypeName",
                      "src": "5632:4:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 9981,
                    "length": {
                      "argumentTypes": null,
                      "hexValue": "33",
                      "id": 9980,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "number",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "5637:1:46",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": null,
                        "typeString": null
                      },
                      "value": "3"
                    },
                    "nodeType": "ArrayTypeName",
                    "src": "5632:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_uint256_$3_storage_ptr",
                      "typeString": "uint256[3]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "5631:22:46"
            },
            "scope": 10204,
            "src": "5563:143:46",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10016,
              "nodeType": "Block",
              "src": "6155:122:46",
              "statements": [
                {
                  "assignments": [
                    10002
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 10002,
                      "name": "voter",
                      "nodeType": "VariableDeclaration",
                      "scope": 10016,
                      "src": "6165:18:46",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Voter_$10281_memory_ptr",
                        "typeString": "struct GenesisProtocolLogic.Voter"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 10001,
                        "name": "Voter",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 10281,
                        "src": "6165:5:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Voter_$10281_storage_ptr",
                          "typeString": "struct GenesisProtocolLogic.Voter"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 10009,
                  "initialValue": {
                    "argumentTypes": null,
                    "baseExpression": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "baseExpression": {
                          "argumentTypes": null,
                          "id": 10003,
                          "name": "proposals",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10415,
                          "src": "6186:9:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                            "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                          }
                        },
                        "id": 10005,
                        "indexExpression": {
                          "argumentTypes": null,
                          "id": 10004,
                          "name": "_proposalId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 9992,
                          "src": "6196:11:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "6186:22:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                          "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                        }
                      },
                      "id": 10006,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "voters",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 10330,
                      "src": "6186:29:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Voter_$10281_storage_$",
                        "typeString": "mapping(address => struct GenesisProtocolLogic.Voter storage ref)"
                      }
                    },
                    "id": 10008,
                    "indexExpression": {
                      "argumentTypes": null,
                      "id": 10007,
                      "name": "_voter",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 9994,
                      "src": "6216:6:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "IndexAccess",
                    "src": "6186:37:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Voter_$10281_storage",
                      "typeString": "struct GenesisProtocolLogic.Voter storage ref"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "6165:58:46"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "components": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 10010,
                          "name": "voter",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10002,
                          "src": "6241:5:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_struct$_Voter_$10281_memory_ptr",
                            "typeString": "struct GenesisProtocolLogic.Voter memory"
                          }
                        },
                        "id": 10011,
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "vote",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 10276,
                        "src": "6241:10:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 10012,
                          "name": "voter",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10002,
                          "src": "6253:5:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_struct$_Voter_$10281_memory_ptr",
                            "typeString": "struct GenesisProtocolLogic.Voter memory"
                          }
                        },
                        "id": 10013,
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "reputation",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 10278,
                        "src": "6253:16:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "id": 10014,
                    "isConstant": false,
                    "isInlineArray": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "TupleExpression",
                    "src": "6240:30:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
                      "typeString": "tuple(uint256,uint256)"
                    }
                  },
                  "functionReturnParameters": 10000,
                  "id": 10015,
                  "nodeType": "Return",
                  "src": "6233:37:46"
                }
              ]
            },
            "documentation": "@dev voteInfo returns the vote and the amount of reputation of the user committed to this proposal\n@param _proposalId the ID of the proposal\n@param _voter the address of the voter\n@return uint256 vote - the voters vote\n       uint256 reputation - amount of reputation committed by _voter to _proposalId",
            "id": 10017,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "voteInfo",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9995,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9992,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 10017,
                  "src": "6084:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 9991,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "6084:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9994,
                  "name": "_voter",
                  "nodeType": "VariableDeclaration",
                  "scope": 10017,
                  "src": "6105:14:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 9993,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "6105:7:46",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "6083:37:46"
            },
            "returnParameters": {
              "id": 10000,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9997,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10017,
                  "src": "6143:4:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9996,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "6143:4:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9999,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10017,
                  "src": "6149:4:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9998,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "6149:4:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "6142:12:46"
            },
            "scope": 10204,
            "src": "6066:211:46",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10033,
              "nodeType": "Block",
              "src": "6621:61:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "baseExpression": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "baseExpression": {
                          "argumentTypes": null,
                          "id": 10026,
                          "name": "proposals",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10415,
                          "src": "6638:9:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                            "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                          }
                        },
                        "id": 10028,
                        "indexExpression": {
                          "argumentTypes": null,
                          "id": 10027,
                          "name": "_proposalId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10019,
                          "src": "6648:11:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "6638:22:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                          "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                        }
                      },
                      "id": 10029,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "votes",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 10322,
                      "src": "6638:28:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$",
                        "typeString": "mapping(uint256 => uint256)"
                      }
                    },
                    "id": 10031,
                    "indexExpression": {
                      "argumentTypes": null,
                      "id": 10030,
                      "name": "_choice",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10021,
                      "src": "6667:7:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "IndexAccess",
                    "src": "6638:37:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "functionReturnParameters": 10025,
                  "id": 10032,
                  "nodeType": "Return",
                  "src": "6631:44:46"
                }
              ]
            },
            "documentation": "@dev voteStatus returns the reputation voted for a proposal for a specific voting choice.\n@param _proposalId the ID of the proposal\n@param _choice the index in the\n@return voted reputation for the given choice",
            "id": 10034,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "voteStatus",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10022,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10019,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 10034,
                  "src": "6552:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 10018,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "6552:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 10021,
                  "name": "_choice",
                  "nodeType": "VariableDeclaration",
                  "scope": 10034,
                  "src": "6573:15:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10020,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "6573:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "6551:38:46"
            },
            "returnParameters": {
              "id": 10025,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10024,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10034,
                  "src": "6612:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10023,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "6612:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "6611:9:46"
            },
            "scope": 10204,
            "src": "6532:150:46",
            "stateMutability": "view",
            "superFunction": 12896,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10045,
              "nodeType": "Block",
              "src": "6906:47:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 10042,
                        "name": "_proposalId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 10036,
                        "src": "6934:11:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "id": 10041,
                      "name": "_isVotable",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 12773,
                      "src": "6923:10:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bool_$",
                        "typeString": "function (bytes32) view returns (bool)"
                      }
                    },
                    "id": 10043,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6923:23:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 10040,
                  "id": 10044,
                  "nodeType": "Return",
                  "src": "6916:30:46"
                }
              ]
            },
            "documentation": "@dev isVotable check if the proposal is votable\n@param _proposalId the ID of the proposal\n@return bool true or false",
            "id": 10046,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "isVotable",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10037,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10036,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 10046,
                  "src": "6857:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 10035,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "6857:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "6856:21:46"
            },
            "returnParameters": {
              "id": 10040,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10039,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10046,
                  "src": "6900:4:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 10038,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "6900:4:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "6899:6:46"
            },
            "scope": 10204,
            "src": "6838:115:46",
            "stateMutability": "view",
            "superFunction": 12887,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10085,
              "nodeType": "Block",
              "src": "7366:258:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "components": [
                      {
                        "argumentTypes": null,
                        "baseExpression": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "baseExpression": {
                              "argumentTypes": null,
                              "id": 10059,
                              "name": "proposals",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 10415,
                              "src": "7401:9:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                                "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                              }
                            },
                            "id": 10061,
                            "indexExpression": {
                              "argumentTypes": null,
                              "id": 10060,
                              "name": "_proposalId",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 10048,
                              "src": "7411:11:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bytes32",
                                "typeString": "bytes32"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "7401:22:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                              "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                            }
                          },
                          "id": 10062,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "preBoostedVotes",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 10326,
                          "src": "7401:38:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$",
                            "typeString": "mapping(uint256 => uint256)"
                          }
                        },
                        "id": 10064,
                        "indexExpression": {
                          "argumentTypes": null,
                          "id": 10063,
                          "name": "YES",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10436,
                          "src": "7440:3:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "7401:43:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "baseExpression": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "baseExpression": {
                              "argumentTypes": null,
                              "id": 10065,
                              "name": "proposals",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 10415,
                              "src": "7462:9:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                                "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                              }
                            },
                            "id": 10067,
                            "indexExpression": {
                              "argumentTypes": null,
                              "id": 10066,
                              "name": "_proposalId",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 10048,
                              "src": "7472:11:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bytes32",
                                "typeString": "bytes32"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "7462:22:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                              "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                            }
                          },
                          "id": 10068,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "preBoostedVotes",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 10326,
                          "src": "7462:38:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$",
                            "typeString": "mapping(uint256 => uint256)"
                          }
                        },
                        "id": 10070,
                        "indexExpression": {
                          "argumentTypes": null,
                          "id": 10069,
                          "name": "NO",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10433,
                          "src": "7501:2:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "7462:42:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "baseExpression": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "baseExpression": {
                              "argumentTypes": null,
                              "id": 10071,
                              "name": "proposals",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 10415,
                              "src": "7522:9:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                                "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                              }
                            },
                            "id": 10073,
                            "indexExpression": {
                              "argumentTypes": null,
                              "id": 10072,
                              "name": "_proposalId",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 10048,
                              "src": "7532:11:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bytes32",
                                "typeString": "bytes32"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "7522:22:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                              "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                            }
                          },
                          "id": 10074,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "stakes",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 10334,
                          "src": "7522:29:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$",
                            "typeString": "mapping(uint256 => uint256)"
                          }
                        },
                        "id": 10076,
                        "indexExpression": {
                          "argumentTypes": null,
                          "id": 10075,
                          "name": "YES",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10436,
                          "src": "7552:3:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "7522:34:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "baseExpression": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "baseExpression": {
                              "argumentTypes": null,
                              "id": 10077,
                              "name": "proposals",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 10415,
                              "src": "7574:9:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                                "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                              }
                            },
                            "id": 10079,
                            "indexExpression": {
                              "argumentTypes": null,
                              "id": 10078,
                              "name": "_proposalId",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 10048,
                              "src": "7584:11:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bytes32",
                                "typeString": "bytes32"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "7574:22:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                              "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                            }
                          },
                          "id": 10080,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "stakes",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 10334,
                          "src": "7574:29:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$",
                            "typeString": "mapping(uint256 => uint256)"
                          }
                        },
                        "id": 10082,
                        "indexExpression": {
                          "argumentTypes": null,
                          "id": 10081,
                          "name": "NO",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10433,
                          "src": "7604:2:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "7574:33:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "id": 10083,
                    "isConstant": false,
                    "isInlineArray": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "TupleExpression",
                    "src": "7383:234:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$",
                      "typeString": "tuple(uint256,uint256,uint256,uint256)"
                    }
                  },
                  "functionReturnParameters": 10058,
                  "id": 10084,
                  "nodeType": "Return",
                  "src": "7376:241:46"
                }
              ]
            },
            "documentation": "@dev proposalStatus return the total votes and stakes for a given proposal\n@param _proposalId the ID of the proposal\n@return uint256 preBoostedVotes YES\n@return uint256 preBoostedVotes NO\n@return uint256 total stakes YES\n@return uint256 total stakes NO",
            "id": 10086,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "proposalStatus",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10049,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10048,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 10086,
                  "src": "7287:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 10047,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "7287:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "7286:21:46"
            },
            "returnParameters": {
              "id": 10058,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10051,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10086,
                  "src": "7330:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10050,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "7330:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 10053,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10086,
                  "src": "7339:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10052,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "7339:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 10055,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10086,
                  "src": "7348:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10054,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "7348:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 10057,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10086,
                  "src": "7357:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10056,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "7357:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "7329:36:46"
            },
            "scope": 10204,
            "src": "7263:361:46",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10099,
              "nodeType": "Block",
              "src": "7904:63:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "components": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "baseExpression": {
                            "argumentTypes": null,
                            "id": 10093,
                            "name": "proposals",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 10415,
                            "src": "7922:9:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                              "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                            }
                          },
                          "id": 10095,
                          "indexExpression": {
                            "argumentTypes": null,
                            "id": 10094,
                            "name": "_proposalId",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 10088,
                            "src": "7932:11:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          },
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "IndexAccess",
                          "src": "7922:22:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                            "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                          }
                        },
                        "id": 10096,
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "organizationId",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 10290,
                        "src": "7922:37:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "id": 10097,
                    "isConstant": false,
                    "isInlineArray": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "TupleExpression",
                    "src": "7921:39:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "functionReturnParameters": 10092,
                  "id": 10098,
                  "nodeType": "Return",
                  "src": "7914:46:46"
                }
              ]
            },
            "documentation": "@dev getProposalOrganization return the organizationId for a given proposal\n@param _proposalId the ID of the proposal\n@return bytes32 organization identifier",
            "id": 10100,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getProposalOrganization",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10089,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10088,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 10100,
                  "src": "7852:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 10087,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "7852:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "7851:21:46"
            },
            "returnParameters": {
              "id": 10092,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10091,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10100,
                  "src": "7895:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 10090,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "7895:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "7894:9:46"
            },
            "scope": 10204,
            "src": "7819:148:46",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10127,
              "nodeType": "Block",
              "src": "8321:118:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "components": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "baseExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 10111,
                                "name": "proposals",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 10415,
                                "src": "8339:9:46",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                                  "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                                }
                              },
                              "id": 10113,
                              "indexExpression": {
                                "argumentTypes": null,
                                "id": 10112,
                                "name": "_proposalId",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 10102,
                                "src": "8349:11:46",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "8339:22:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                                "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                              }
                            },
                            "id": 10114,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "stakers",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 10338,
                            "src": "8339:30:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Staker_$10288_storage_$",
                              "typeString": "mapping(address => struct GenesisProtocolLogic.Staker storage ref)"
                            }
                          },
                          "id": 10116,
                          "indexExpression": {
                            "argumentTypes": null,
                            "id": 10115,
                            "name": "_staker",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 10104,
                            "src": "8370:7:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "IndexAccess",
                          "src": "8339:39:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_struct$_Staker_$10288_storage",
                            "typeString": "struct GenesisProtocolLogic.Staker storage ref"
                          }
                        },
                        "id": 10117,
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "vote",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 10283,
                        "src": "8339:44:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "baseExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 10118,
                                "name": "proposals",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 10415,
                                "src": "8385:9:46",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                                  "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                                }
                              },
                              "id": 10120,
                              "indexExpression": {
                                "argumentTypes": null,
                                "id": 10119,
                                "name": "_proposalId",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 10102,
                                "src": "8395:11:46",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "8385:22:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                                "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                              }
                            },
                            "id": 10121,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "stakers",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 10338,
                            "src": "8385:30:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Staker_$10288_storage_$",
                              "typeString": "mapping(address => struct GenesisProtocolLogic.Staker storage ref)"
                            }
                          },
                          "id": 10123,
                          "indexExpression": {
                            "argumentTypes": null,
                            "id": 10122,
                            "name": "_staker",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 10104,
                            "src": "8416:7:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "IndexAccess",
                          "src": "8385:39:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_struct$_Staker_$10288_storage",
                            "typeString": "struct GenesisProtocolLogic.Staker storage ref"
                          }
                        },
                        "id": 10124,
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "amount",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 10285,
                        "src": "8385:46:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "id": 10125,
                    "isConstant": false,
                    "isInlineArray": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "TupleExpression",
                    "src": "8338:94:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
                      "typeString": "tuple(uint256,uint256)"
                    }
                  },
                  "functionReturnParameters": 10110,
                  "id": 10126,
                  "nodeType": "Return",
                  "src": "8331:101:46"
                }
              ]
            },
            "documentation": "@dev getStaker return the vote and stake amount for a given proposal and staker\n@param _proposalId the ID of the proposal\n@param _staker staker address\n@return uint256 vote\n@return uint256 amount",
            "id": 10128,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getStaker",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10105,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10102,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 10128,
                  "src": "8243:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 10101,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "8243:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 10104,
                  "name": "_staker",
                  "nodeType": "VariableDeclaration",
                  "scope": 10128,
                  "src": "8264:15:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 10103,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "8264:7:46",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "8242:38:46"
            },
            "returnParameters": {
              "id": 10110,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10107,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10128,
                  "src": "8303:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10106,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "8303:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 10109,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10128,
                  "src": "8312:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10108,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "8312:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "8302:18:46"
            },
            "scope": 10204,
            "src": "8224:215:46",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10144,
              "nodeType": "Block",
              "src": "8744:60:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "baseExpression": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "baseExpression": {
                          "argumentTypes": null,
                          "id": 10137,
                          "name": "proposals",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10415,
                          "src": "8761:9:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                            "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                          }
                        },
                        "id": 10139,
                        "indexExpression": {
                          "argumentTypes": null,
                          "id": 10138,
                          "name": "_proposalId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10130,
                          "src": "8771:11:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "8761:22:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                          "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                        }
                      },
                      "id": 10140,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "stakes",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 10334,
                      "src": "8761:29:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$",
                        "typeString": "mapping(uint256 => uint256)"
                      }
                    },
                    "id": 10142,
                    "indexExpression": {
                      "argumentTypes": null,
                      "id": 10141,
                      "name": "_vote",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10132,
                      "src": "8791:5:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "IndexAccess",
                    "src": "8761:36:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "functionReturnParameters": 10136,
                  "id": 10143,
                  "nodeType": "Return",
                  "src": "8754:43:46"
                }
              ]
            },
            "documentation": "@dev voteStake return the amount stakes for a given proposal and vote\n@param _proposalId the ID of the proposal\n@param _vote vote number\n@return uint256 stake amount",
            "id": 10145,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "voteStake",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10133,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10130,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 10145,
                  "src": "8677:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 10129,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "8677:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 10132,
                  "name": "_vote",
                  "nodeType": "VariableDeclaration",
                  "scope": 10145,
                  "src": "8698:13:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10131,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "8698:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "8676:36:46"
            },
            "returnParameters": {
              "id": 10136,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10135,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10145,
                  "src": "8735:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10134,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "8735:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "8734:9:46"
            },
            "scope": 10204,
            "src": "8658:146:46",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10157,
              "nodeType": "Block",
              "src": "9043:58:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "expression": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 10152,
                        "name": "proposals",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 10415,
                        "src": "9060:9:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                          "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                        }
                      },
                      "id": 10154,
                      "indexExpression": {
                        "argumentTypes": null,
                        "id": 10153,
                        "name": "_proposalId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 10147,
                        "src": "9070:11:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "IndexAccess",
                      "src": "9060:22:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                        "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                      }
                    },
                    "id": 10155,
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "memberName": "winningVote",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 10296,
                    "src": "9060:34:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "functionReturnParameters": 10151,
                  "id": 10156,
                  "nodeType": "Return",
                  "src": "9053:41:46"
                }
              ]
            },
            "documentation": "@dev voteStake return the winningVote for a given proposal\n@param _proposalId the ID of the proposal\n@return uint256 winningVote",
            "id": 10158,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "winningVote",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10148,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10147,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 10158,
                  "src": "8991:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 10146,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "8991:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "8990:21:46"
            },
            "returnParameters": {
              "id": 10151,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10150,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10158,
                  "src": "9034:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10149,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "9034:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "9033:9:46"
            },
            "scope": 10204,
            "src": "8970:131:46",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10170,
              "nodeType": "Block",
              "src": "9351:52:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "expression": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 10165,
                        "name": "proposals",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 10415,
                        "src": "9368:9:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                          "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                        }
                      },
                      "id": 10167,
                      "indexExpression": {
                        "argumentTypes": null,
                        "id": 10166,
                        "name": "_proposalId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 10160,
                        "src": "9378:11:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "IndexAccess",
                      "src": "9368:22:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                        "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                      }
                    },
                    "id": 10168,
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "memberName": "state",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 10294,
                    "src": "9368:28:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_enum$_ProposalState_$10240",
                      "typeString": "enum GenesisProtocolLogic.ProposalState"
                    }
                  },
                  "functionReturnParameters": 10164,
                  "id": 10169,
                  "nodeType": "Return",
                  "src": "9361:35:46"
                }
              ]
            },
            "documentation": "@dev voteStake return the state for a given proposal\n@param _proposalId the ID of the proposal\n@return ProposalState proposal state",
            "id": 10171,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "state",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10161,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10160,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 10171,
                  "src": "9293:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 10159,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "9293:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "9292:21:46"
            },
            "returnParameters": {
              "id": 10164,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10163,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10171,
                  "src": "9336:13:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_enum$_ProposalState_$10240",
                    "typeString": "enum GenesisProtocolLogic.ProposalState"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 10162,
                    "name": "ProposalState",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 10240,
                    "src": "9336:13:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_enum$_ProposalState_$10240",
                      "typeString": "enum GenesisProtocolLogic.ProposalState"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "9335:15:46"
            },
            "scope": 10204,
            "src": "9278:125:46",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10178,
              "nodeType": "Block",
              "src": "9584:29:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "hexValue": "66616c7365",
                    "id": 10176,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "bool",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "9601:5:46",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "value": "false"
                  },
                  "functionReturnParameters": 10175,
                  "id": 10177,
                  "nodeType": "Return",
                  "src": "9594:12:46"
                }
              ]
            },
            "documentation": "@dev isAbstainAllow returns if the voting machine allow abstain (0)\n@return bool true or false",
            "id": 10179,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "isAbstainAllow",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10172,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "9553:2:46"
            },
            "returnParameters": {
              "id": 10175,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10174,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10179,
                  "src": "9578:4:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 10173,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "9578:4:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "9577:6:46"
            },
            "scope": 10204,
            "src": "9530:83:46",
            "stateMutability": "pure",
            "superFunction": 12901,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10190,
              "nodeType": "Block",
              "src": "9909:33:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "components": [
                      {
                        "argumentTypes": null,
                        "id": 10186,
                        "name": "YES",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 10436,
                        "src": "9927:3:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 10187,
                        "name": "NO",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 10433,
                        "src": "9932:2:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "id": 10188,
                    "isConstant": false,
                    "isInlineArray": false,
                    "isLValue": false,
                    "isPure": true,
                    "lValueRequested": false,
                    "nodeType": "TupleExpression",
                    "src": "9926:9:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
                      "typeString": "tuple(uint256,uint256)"
                    }
                  },
                  "functionReturnParameters": 10185,
                  "id": 10189,
                  "nodeType": "Return",
                  "src": "9919:16:46"
                }
              ]
            },
            "documentation": "@dev getAllowedRangeOfChoices returns the allowed range of choices for a voting machine.\n@return min - minimum number of choices\nmax - maximum number of choices",
            "id": 10191,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getAllowedRangeOfChoices",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10180,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "9858:2:46"
            },
            "returnParameters": {
              "id": 10185,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10182,
                  "name": "min",
                  "nodeType": "VariableDeclaration",
                  "scope": 10191,
                  "src": "9883:11:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10181,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "9883:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 10184,
                  "name": "max",
                  "nodeType": "VariableDeclaration",
                  "scope": 10191,
                  "src": "9896:11:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10183,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "9896:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "9882:26:46"
            },
            "scope": 10204,
            "src": "9825:117:46",
            "stateMutability": "pure",
            "superFunction": 12908,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10202,
              "nodeType": "Block",
              "src": "10161:44:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 10199,
                        "name": "_proposalId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 10193,
                        "src": "10186:11:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "id": 10198,
                      "name": "_score",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 12733,
                      "src": "10179:6:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_uint256_$",
                        "typeString": "function (bytes32) view returns (uint256)"
                      }
                    },
                    "id": 10200,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "10179:19:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "functionReturnParameters": 10197,
                  "id": 10201,
                  "nodeType": "Return",
                  "src": "10171:27:46"
                }
              ]
            },
            "documentation": "@dev score return the proposal score\n@param _proposalId the ID of the proposal\n@return uint256 proposal score.",
            "id": 10203,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "score",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10194,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10193,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 10203,
                  "src": "10111:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 10192,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "10111:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "10110:21:46"
            },
            "returnParameters": {
              "id": 10197,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10196,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10203,
                  "src": "10152:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10195,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "10152:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "10151:9:46"
            },
            "scope": 10204,
            "src": "10096:109:46",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 10205,
        "src": "220:9987:46"
      }
    ],
    "src": "0:10208:46"
  },
  "legacyAST": {
    "absolutePath": "@daostack/infra/contracts/votingMachines/GenesisProtocol.sol",
    "exportedSymbols": {
      "GenesisProtocol": [
        10204
      ]
    },
    "id": 10205,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 9713,
        "literals": [
          "solidity",
          "^",
          "0.5",
          ".4"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:46"
      },
      {
        "absolutePath": "openzeppelin-solidity/contracts/cryptography/ECDSA.sol",
        "file": "openzeppelin-solidity/contracts/cryptography/ECDSA.sol",
        "id": 9714,
        "nodeType": "ImportDirective",
        "scope": 10205,
        "sourceUnit": 22791,
        "src": "25:64:46",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@daostack/infra/contracts/votingMachines/GenesisProtocolLogic.sol",
        "file": "./GenesisProtocolLogic.sol",
        "id": 9715,
        "nodeType": "ImportDirective",
        "scope": 10205,
        "sourceUnit": 12775,
        "src": "90:36:46",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 9716,
              "name": "IntVoteInterface",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 12909,
              "src": "248:16:46",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_IntVoteInterface_$12909",
                "typeString": "contract IntVoteInterface"
              }
            },
            "id": 9717,
            "nodeType": "InheritanceSpecifier",
            "src": "248:16:46"
          },
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 9718,
              "name": "GenesisProtocolLogic",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 12774,
              "src": "266:20:46",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_GenesisProtocolLogic_$12774",
                "typeString": "contract GenesisProtocolLogic"
              }
            },
            "id": 9719,
            "nodeType": "InheritanceSpecifier",
            "src": "266:20:46"
          }
        ],
        "contractDependencies": [
          12774,
          12909
        ],
        "contractKind": "contract",
        "documentation": "@title GenesisProtocol implementation -an organization's voting machine scheme.",
        "fullyImplemented": true,
        "id": 10204,
        "linearizedBaseContracts": [
          10204,
          12774,
          12909
        ],
        "name": "GenesisProtocol",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "id": 9722,
            "libraryName": {
              "contractScope": null,
              "id": 9720,
              "name": "ECDSA",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 22790,
              "src": "299:5:46",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_ECDSA_$22790",
                "typeString": "library ECDSA"
              }
            },
            "nodeType": "UsingForDirective",
            "src": "293:24:46",
            "typeName": {
              "id": 9721,
              "name": "bytes32",
              "nodeType": "ElementaryTypeName",
              "src": "309:7:46",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes32",
                "typeString": "bytes32"
              }
            }
          },
          {
            "constant": true,
            "id": 9734,
            "name": "DELEGATION_HASH_EIP712",
            "nodeType": "VariableDeclaration",
            "scope": 10204,
            "src": "441:220:46",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_bytes32",
              "typeString": "bytes32"
            },
            "typeName": {
              "id": 9723,
              "name": "bytes32",
              "nodeType": "ElementaryTypeName",
              "src": "441:7:46",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes32",
                "typeString": "bytes32"
              }
            },
            "value": {
              "argumentTypes": null,
              "arguments": [
                {
                  "argumentTypes": null,
                  "arguments": [
                    {
                      "argumentTypes": null,
                      "hexValue": "616464726573732047656e6573697350726f746f636f6c41646472657373",
                      "id": 9727,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "string",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "526:32:46",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_stringliteral_f6f81c79222251f266116add8ba75554a893ee5a90e2827df720a8738b6852ea",
                        "typeString": "literal_string \"address GenesisProtocolAddress\""
                      },
                      "value": "address GenesisProtocolAddress"
                    },
                    {
                      "argumentTypes": null,
                      "hexValue": "627974657333322050726f706f73616c4964",
                      "id": 9728,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "string",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "564:20:46",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_stringliteral_c82636388059bdf5f5ea03cfec7d8e327d93cc6aaa4cd8e5544d7950722aea62",
                        "typeString": "literal_string \"bytes32 ProposalId\""
                      },
                      "value": "bytes32 ProposalId"
                    },
                    {
                      "argumentTypes": null,
                      "hexValue": "75696e7432353620566f7465",
                      "id": 9729,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "string",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "590:14:46",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_stringliteral_5b7c3f5ffe3403c4b459a64b441be5b523982a2df65457e729fee531305984ff",
                        "typeString": "literal_string \"uint256 Vote\""
                      },
                      "value": "uint256 Vote"
                    },
                    {
                      "argumentTypes": null,
                      "hexValue": "75696e7432353620416d6f756e74546f5374616b65",
                      "id": 9730,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "string",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "610:23:46",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_stringliteral_eaeb9db97e42ac65bdd1048a940a8f71fc1af8b56d16e6cd3de10e163148977c",
                        "typeString": "literal_string \"uint256 AmountToStake\""
                      },
                      "value": "uint256 AmountToStake"
                    },
                    {
                      "argumentTypes": null,
                      "hexValue": "75696e74323536204e6f6e6365",
                      "id": 9731,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "string",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "639:15:46",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_stringliteral_f461d9cb6c7bbc73c9b53173ca291dd54af24fcc1e3e4e673a2da79ed63c9b73",
                        "typeString": "literal_string \"uint256 Nonce\""
                      },
                      "value": "uint256 Nonce"
                    }
                  ],
                  "expression": {
                    "argumentTypes": [
                      {
                        "typeIdentifier": "t_stringliteral_f6f81c79222251f266116add8ba75554a893ee5a90e2827df720a8738b6852ea",
                        "typeString": "literal_string \"address GenesisProtocolAddress\""
                      },
                      {
                        "typeIdentifier": "t_stringliteral_c82636388059bdf5f5ea03cfec7d8e327d93cc6aaa4cd8e5544d7950722aea62",
                        "typeString": "literal_string \"bytes32 ProposalId\""
                      },
                      {
                        "typeIdentifier": "t_stringliteral_5b7c3f5ffe3403c4b459a64b441be5b523982a2df65457e729fee531305984ff",
                        "typeString": "literal_string \"uint256 Vote\""
                      },
                      {
                        "typeIdentifier": "t_stringliteral_eaeb9db97e42ac65bdd1048a940a8f71fc1af8b56d16e6cd3de10e163148977c",
                        "typeString": "literal_string \"uint256 AmountToStake\""
                      },
                      {
                        "typeIdentifier": "t_stringliteral_f461d9cb6c7bbc73c9b53173ca291dd54af24fcc1e3e4e673a2da79ed63c9b73",
                        "typeString": "literal_string \"uint256 Nonce\""
                      }
                    ],
                    "expression": {
                      "argumentTypes": null,
                      "id": 9725,
                      "name": "abi",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 23677,
                      "src": "504:3:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_magic_abi",
                        "typeString": "abi"
                      }
                    },
                    "id": 9726,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "lValueRequested": false,
                    "memberName": "encodePacked",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": null,
                    "src": "504:16:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
                      "typeString": "function () pure returns (bytes memory)"
                    }
                  },
                  "id": 9732,
                  "isConstant": false,
                  "isLValue": false,
                  "isPure": true,
                  "kind": "functionCall",
                  "lValueRequested": false,
                  "names": [],
                  "nodeType": "FunctionCall",
                  "src": "504:156:46",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes memory"
                  }
                }
              ],
              "expression": {
                "argumentTypes": [
                  {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes memory"
                  }
                ],
                "id": 9724,
                "name": "keccak256",
                "nodeType": "Identifier",
                "overloadedDeclarations": [],
                "referencedDeclaration": 23684,
                "src": "494:9:46",
                "typeDescriptions": {
                  "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
                  "typeString": "function (bytes memory) pure returns (bytes32)"
                }
              },
              "id": 9733,
              "isConstant": false,
              "isLValue": false,
              "isPure": true,
              "kind": "functionCall",
              "lValueRequested": false,
              "names": [],
              "nodeType": "FunctionCall",
              "src": "494:167:46",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes32",
                "typeString": "bytes32"
              }
            },
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 9738,
            "name": "stakesNonce",
            "nodeType": "VariableDeclaration",
            "scope": 10204,
            "src": "668:44:46",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
              "typeString": "mapping(address => uint256)"
            },
            "typeName": {
              "id": 9737,
              "keyType": {
                "id": 9735,
                "name": "address",
                "nodeType": "ElementaryTypeName",
                "src": "676:7:46",
                "typeDescriptions": {
                  "typeIdentifier": "t_address",
                  "typeString": "address"
                }
              },
              "nodeType": "Mapping",
              "src": "668:25:46",
              "typeDescriptions": {
                "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
                "typeString": "mapping(address => uint256)"
              },
              "valueType": {
                "id": 9736,
                "name": "uint256",
                "nodeType": "ElementaryTypeName",
                "src": "685:7:46",
                "typeDescriptions": {
                  "typeIdentifier": "t_uint256",
                  "typeString": "uint256"
                }
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 9746,
              "nodeType": "Block",
              "src": "908:7:46",
              "statements": []
            },
            "documentation": "@dev Constructor",
            "id": 9747,
            "implemented": true,
            "kind": "constructor",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 9743,
                    "name": "_stakingToken",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 9740,
                    "src": "893:13:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IERC20_$23656",
                      "typeString": "contract IERC20"
                    }
                  }
                ],
                "id": 9744,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 9742,
                  "name": "GenesisProtocolLogic",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 12774,
                  "src": "872:20:46",
                  "typeDescriptions": {
                    "typeIdentifier": "t_type$_t_contract$_GenesisProtocolLogic_$12774_$",
                    "typeString": "type(contract GenesisProtocolLogic)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "872:35:46"
              }
            ],
            "name": "",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9741,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9740,
                  "name": "_stakingToken",
                  "nodeType": "VariableDeclaration",
                  "scope": 9747,
                  "src": "786:20:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IERC20_$23656",
                    "typeString": "contract IERC20"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 9739,
                    "name": "IERC20",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 23656,
                    "src": "786:6:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IERC20_$23656",
                      "typeString": "contract IERC20"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "785:22:46"
            },
            "returnParameters": {
              "id": 9745,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "908:0:46"
            },
            "scope": 10204,
            "src": "774:141:46",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 9766,
              "nodeType": "Block",
              "src": "1278:71:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 9759,
                        "name": "_proposalId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9749,
                        "src": "1302:11:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 9760,
                        "name": "_vote",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9751,
                        "src": "1315:5:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 9761,
                        "name": "_amount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9753,
                        "src": "1322:7:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 9762,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "1331:3:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 9763,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "1331:10:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      ],
                      "id": 9758,
                      "name": "_stake",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 12403,
                      "src": "1295:6:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_uint256_$_t_uint256_$_t_address_$returns$_t_bool_$",
                        "typeString": "function (bytes32,uint256,uint256,address) returns (bool)"
                      }
                    },
                    "id": 9764,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1295:47:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 9757,
                  "id": 9765,
                  "nodeType": "Return",
                  "src": "1288:54:46"
                }
              ]
            },
            "documentation": "@dev staking function\n@param _proposalId id of the proposal\n@param _vote  NO(2) or YES(1).\n@param _amount the betting amount\n@return bool true - the proposal has been executed\n             false - otherwise.",
            "id": 9767,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "stake",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9754,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9749,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 9767,
                  "src": "1202:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 9748,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1202:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9751,
                  "name": "_vote",
                  "nodeType": "VariableDeclaration",
                  "scope": 9767,
                  "src": "1223:13:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9750,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1223:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9753,
                  "name": "_amount",
                  "nodeType": "VariableDeclaration",
                  "scope": 9767,
                  "src": "1238:15:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9752,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1238:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1201:53:46"
            },
            "returnParameters": {
              "id": 9757,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9756,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 9767,
                  "src": "1272:4:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 9755,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "1272:4:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1271:6:46"
            },
            "scope": 10204,
            "src": "1187:162:46",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 9873,
              "nodeType": "Block",
              "src": "2212:1257:46",
              "statements": [
                {
                  "assignments": [
                    9785
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 9785,
                      "name": "delegationDigest",
                      "nodeType": "VariableDeclaration",
                      "scope": 9873,
                      "src": "2269:24:46",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      },
                      "typeName": {
                        "id": 9784,
                        "name": "bytes32",
                        "nodeType": "ElementaryTypeName",
                        "src": "2269:7:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 9786,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "2269:24:46"
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 9789,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "id": 9787,
                      "name": "_signatureType",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 9777,
                      "src": "2307:14:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "==",
                    "rightExpression": {
                      "argumentTypes": null,
                      "hexValue": "32",
                      "id": 9788,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "number",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "2325:1:46",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_rational_2_by_1",
                        "typeString": "int_const 2"
                      },
                      "value": "2"
                    },
                    "src": "2307:19:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": {
                    "id": 9829,
                    "nodeType": "Block",
                    "src": "2745:315:46",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "id": 9827,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "argumentTypes": null,
                            "id": 9812,
                            "name": "delegationDigest",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 9785,
                            "src": "2759:16:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "argumentTypes": null,
                            "arguments": [],
                            "expression": {
                              "argumentTypes": [],
                              "expression": {
                                "argumentTypes": null,
                                "arguments": [
                                  {
                                    "argumentTypes": null,
                                    "arguments": [
                                      {
                                        "argumentTypes": null,
                                        "arguments": [
                                          {
                                            "argumentTypes": null,
                                            "id": 9817,
                                            "name": "this",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 23832,
                                            "src": "2863:4:46",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_contract$_GenesisProtocol_$10204",
                                              "typeString": "contract GenesisProtocol"
                                            }
                                          }
                                        ],
                                        "expression": {
                                          "argumentTypes": [
                                            {
                                              "typeIdentifier": "t_contract$_GenesisProtocol_$10204",
                                              "typeString": "contract GenesisProtocol"
                                            }
                                          ],
                                          "id": 9816,
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": true,
                                          "lValueRequested": false,
                                          "nodeType": "ElementaryTypeNameExpression",
                                          "src": "2855:7:46",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_type$_t_address_$",
                                            "typeString": "type(address)"
                                          },
                                          "typeName": "address"
                                        },
                                        "id": 9818,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "kind": "typeConversion",
                                        "lValueRequested": false,
                                        "names": [],
                                        "nodeType": "FunctionCall",
                                        "src": "2855:13:46",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_address",
                                          "typeString": "address"
                                        }
                                      },
                                      {
                                        "argumentTypes": null,
                                        "id": 9819,
                                        "name": "_proposalId",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 9769,
                                        "src": "2894:11:46",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_bytes32",
                                          "typeString": "bytes32"
                                        }
                                      },
                                      {
                                        "argumentTypes": null,
                                        "id": 9820,
                                        "name": "_vote",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 9771,
                                        "src": "2931:5:46",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        }
                                      },
                                      {
                                        "argumentTypes": null,
                                        "id": 9821,
                                        "name": "_amount",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 9773,
                                        "src": "2962:7:46",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        }
                                      },
                                      {
                                        "argumentTypes": null,
                                        "id": 9822,
                                        "name": "_nonce",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 9775,
                                        "src": "2995:6:46",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        }
                                      }
                                    ],
                                    "expression": {
                                      "argumentTypes": [
                                        {
                                          "typeIdentifier": "t_address",
                                          "typeString": "address"
                                        },
                                        {
                                          "typeIdentifier": "t_bytes32",
                                          "typeString": "bytes32"
                                        },
                                        {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        },
                                        {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        },
                                        {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        }
                                      ],
                                      "expression": {
                                        "argumentTypes": null,
                                        "id": 9814,
                                        "name": "abi",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 23677,
                                        "src": "2813:3:46",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_magic_abi",
                                          "typeString": "abi"
                                        }
                                      },
                                      "id": 9815,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": true,
                                      "lValueRequested": false,
                                      "memberName": "encodePacked",
                                      "nodeType": "MemberAccess",
                                      "referencedDeclaration": null,
                                      "src": "2813:16:46",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
                                        "typeString": "function () pure returns (bytes memory)"
                                      }
                                    },
                                    "id": 9823,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": false,
                                    "kind": "functionCall",
                                    "lValueRequested": false,
                                    "names": [],
                                    "nodeType": "FunctionCall",
                                    "src": "2813:189:46",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_bytes_memory_ptr",
                                      "typeString": "bytes memory"
                                    }
                                  }
                                ],
                                "expression": {
                                  "argumentTypes": [
                                    {
                                      "typeIdentifier": "t_bytes_memory_ptr",
                                      "typeString": "bytes memory"
                                    }
                                  ],
                                  "id": 9813,
                                  "name": "keccak256",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 23684,
                                  "src": "2778:9:46",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
                                    "typeString": "function (bytes memory) pure returns (bytes32)"
                                  }
                                },
                                "id": 9824,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "kind": "functionCall",
                                "lValueRequested": false,
                                "names": [],
                                "nodeType": "FunctionCall",
                                "src": "2778:246:46",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                }
                              },
                              "id": 9825,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "toEthSignedMessageHash",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 22789,
                              "src": "2778:269:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_internal_pure$_t_bytes32_$returns$_t_bytes32_$bound_to$_t_bytes32_$",
                                "typeString": "function (bytes32) pure returns (bytes32)"
                              }
                            },
                            "id": 9826,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "2778:271:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          },
                          "src": "2759:290:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        "id": 9828,
                        "nodeType": "ExpressionStatement",
                        "src": "2759:290:46"
                      }
                    ]
                  },
                  "id": 9830,
                  "nodeType": "IfStatement",
                  "src": "2303:757:46",
                  "trueBody": {
                    "id": 9811,
                    "nodeType": "Block",
                    "src": "2328:411:46",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "id": 9809,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "argumentTypes": null,
                            "id": 9790,
                            "name": "delegationDigest",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 9785,
                            "src": "2342:16:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "arguments": [
                                  {
                                    "argumentTypes": null,
                                    "id": 9794,
                                    "name": "DELEGATION_HASH_EIP712",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 9734,
                                    "src": "2426:22:46",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_bytes32",
                                      "typeString": "bytes32"
                                    }
                                  },
                                  {
                                    "argumentTypes": null,
                                    "arguments": [
                                      {
                                        "argumentTypes": null,
                                        "arguments": [
                                          {
                                            "argumentTypes": null,
                                            "arguments": [
                                              {
                                                "argumentTypes": null,
                                                "id": 9799,
                                                "name": "this",
                                                "nodeType": "Identifier",
                                                "overloadedDeclarations": [],
                                                "referencedDeclaration": 23832,
                                                "src": "2535:4:46",
                                                "typeDescriptions": {
                                                  "typeIdentifier": "t_contract$_GenesisProtocol_$10204",
                                                  "typeString": "contract GenesisProtocol"
                                                }
                                              }
                                            ],
                                            "expression": {
                                              "argumentTypes": [
                                                {
                                                  "typeIdentifier": "t_contract$_GenesisProtocol_$10204",
                                                  "typeString": "contract GenesisProtocol"
                                                }
                                              ],
                                              "id": 9798,
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": true,
                                              "lValueRequested": false,
                                              "nodeType": "ElementaryTypeNameExpression",
                                              "src": "2527:7:46",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_type$_t_address_$",
                                                "typeString": "type(address)"
                                              },
                                              "typeName": "address"
                                            },
                                            "id": 9800,
                                            "isConstant": false,
                                            "isLValue": false,
                                            "isPure": false,
                                            "kind": "typeConversion",
                                            "lValueRequested": false,
                                            "names": [],
                                            "nodeType": "FunctionCall",
                                            "src": "2527:13:46",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_address",
                                              "typeString": "address"
                                            }
                                          },
                                          {
                                            "argumentTypes": null,
                                            "id": 9801,
                                            "name": "_proposalId",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 9769,
                                            "src": "2566:11:46",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_bytes32",
                                              "typeString": "bytes32"
                                            }
                                          },
                                          {
                                            "argumentTypes": null,
                                            "id": 9802,
                                            "name": "_vote",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 9771,
                                            "src": "2603:5:46",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_uint256",
                                              "typeString": "uint256"
                                            }
                                          },
                                          {
                                            "argumentTypes": null,
                                            "id": 9803,
                                            "name": "_amount",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 9773,
                                            "src": "2634:7:46",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_uint256",
                                              "typeString": "uint256"
                                            }
                                          },
                                          {
                                            "argumentTypes": null,
                                            "id": 9804,
                                            "name": "_nonce",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 9775,
                                            "src": "2667:6:46",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_uint256",
                                              "typeString": "uint256"
                                            }
                                          }
                                        ],
                                        "expression": {
                                          "argumentTypes": [
                                            {
                                              "typeIdentifier": "t_address",
                                              "typeString": "address"
                                            },
                                            {
                                              "typeIdentifier": "t_bytes32",
                                              "typeString": "bytes32"
                                            },
                                            {
                                              "typeIdentifier": "t_uint256",
                                              "typeString": "uint256"
                                            },
                                            {
                                              "typeIdentifier": "t_uint256",
                                              "typeString": "uint256"
                                            },
                                            {
                                              "typeIdentifier": "t_uint256",
                                              "typeString": "uint256"
                                            }
                                          ],
                                          "expression": {
                                            "argumentTypes": null,
                                            "id": 9796,
                                            "name": "abi",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 23677,
                                            "src": "2485:3:46",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_magic_abi",
                                              "typeString": "abi"
                                            }
                                          },
                                          "id": 9797,
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": true,
                                          "lValueRequested": false,
                                          "memberName": "encodePacked",
                                          "nodeType": "MemberAccess",
                                          "referencedDeclaration": null,
                                          "src": "2485:16:46",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
                                            "typeString": "function () pure returns (bytes memory)"
                                          }
                                        },
                                        "id": 9805,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "kind": "functionCall",
                                        "lValueRequested": false,
                                        "names": [],
                                        "nodeType": "FunctionCall",
                                        "src": "2485:189:46",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_bytes_memory_ptr",
                                          "typeString": "bytes memory"
                                        }
                                      }
                                    ],
                                    "expression": {
                                      "argumentTypes": [
                                        {
                                          "typeIdentifier": "t_bytes_memory_ptr",
                                          "typeString": "bytes memory"
                                        }
                                      ],
                                      "id": 9795,
                                      "name": "keccak256",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 23684,
                                      "src": "2450:9:46",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
                                        "typeString": "function (bytes memory) pure returns (bytes32)"
                                      }
                                    },
                                    "id": 9806,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": false,
                                    "kind": "functionCall",
                                    "lValueRequested": false,
                                    "names": [],
                                    "nodeType": "FunctionCall",
                                    "src": "2450:246:46",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_bytes32",
                                      "typeString": "bytes32"
                                    }
                                  }
                                ],
                                "expression": {
                                  "argumentTypes": [
                                    {
                                      "typeIdentifier": "t_bytes32",
                                      "typeString": "bytes32"
                                    },
                                    {
                                      "typeIdentifier": "t_bytes32",
                                      "typeString": "bytes32"
                                    }
                                  ],
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 9792,
                                    "name": "abi",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 23677,
                                    "src": "2388:3:46",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_magic_abi",
                                      "typeString": "abi"
                                    }
                                  },
                                  "id": 9793,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "lValueRequested": false,
                                  "memberName": "encodePacked",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": null,
                                  "src": "2388:16:46",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
                                    "typeString": "function () pure returns (bytes memory)"
                                  }
                                },
                                "id": 9807,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "kind": "functionCall",
                                "lValueRequested": false,
                                "names": [],
                                "nodeType": "FunctionCall",
                                "src": "2388:326:46",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes_memory_ptr",
                                  "typeString": "bytes memory"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_bytes_memory_ptr",
                                  "typeString": "bytes memory"
                                }
                              ],
                              "id": 9791,
                              "name": "keccak256",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 23684,
                              "src": "2361:9:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
                                "typeString": "function (bytes memory) pure returns (bytes32)"
                              }
                            },
                            "id": 9808,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "2361:367:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          },
                          "src": "2342:386:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        "id": 9810,
                        "nodeType": "ExpressionStatement",
                        "src": "2342:386:46"
                      }
                    ]
                  }
                },
                {
                  "assignments": [
                    9832
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 9832,
                      "name": "staker",
                      "nodeType": "VariableDeclaration",
                      "scope": 9873,
                      "src": "3069:14:46",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      },
                      "typeName": {
                        "id": 9831,
                        "name": "address",
                        "nodeType": "ElementaryTypeName",
                        "src": "3069:7:46",
                        "stateMutability": "nonpayable",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 9837,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 9835,
                        "name": "_signature",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9779,
                        "src": "3111:10:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_calldata_ptr",
                          "typeString": "bytes calldata"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes_calldata_ptr",
                          "typeString": "bytes calldata"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 9833,
                        "name": "delegationDigest",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9785,
                        "src": "3086:16:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "id": 9834,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "recover",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 22773,
                      "src": "3086:24:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_bytes_memory_ptr_$returns$_t_address_$bound_to$_t_bytes32_$",
                        "typeString": "function (bytes32,bytes memory) pure returns (address)"
                      }
                    },
                    "id": 9836,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3086:36:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "3069:53:46"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 9843,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "id": 9839,
                          "name": "staker",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 9832,
                          "src": "3245:6:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "!=",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30",
                              "id": 9841,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "3263:1:46",
                              "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": 9840,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "3255:7:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_address_$",
                              "typeString": "type(address)"
                            },
                            "typeName": "address"
                          },
                          "id": 9842,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "3255:10:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        },
                        "src": "3245:20:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "7374616b657220616464726573732063616e6e6f742062652030",
                        "id": 9844,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "3267:28:46",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_3430815440156fda2758a526d662027048e6496bf994b390c4dc85badccdf423",
                          "typeString": "literal_string \"staker address cannot be 0\""
                        },
                        "value": "staker address cannot be 0"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_3430815440156fda2758a526d662027048e6496bf994b390c4dc85badccdf423",
                          "typeString": "literal_string \"staker address cannot be 0\""
                        }
                      ],
                      "id": 9838,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23694,
                      "src": "3237:7:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 9845,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3237:59:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 9846,
                  "nodeType": "ExpressionStatement",
                  "src": "3237:59:46"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 9852,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "baseExpression": {
                            "argumentTypes": null,
                            "id": 9848,
                            "name": "stakesNonce",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 9738,
                            "src": "3314:11:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
                              "typeString": "mapping(address => uint256)"
                            }
                          },
                          "id": 9850,
                          "indexExpression": {
                            "argumentTypes": null,
                            "id": 9849,
                            "name": "staker",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 9832,
                            "src": "3326:6:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "IndexAccess",
                          "src": "3314:19:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "id": 9851,
                          "name": "_nonce",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 9775,
                          "src": "3337:6:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "src": "3314:29:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 9847,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "3306:7:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 9853,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3306:38:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 9854,
                  "nodeType": "ExpressionStatement",
                  "src": "3306:38:46"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 9864,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 9855,
                        "name": "stakesNonce",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9738,
                        "src": "3354:11:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
                          "typeString": "mapping(address => uint256)"
                        }
                      },
                      "id": 9857,
                      "indexExpression": {
                        "argumentTypes": null,
                        "id": 9856,
                        "name": "staker",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9832,
                        "src": "3366:6:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "IndexAccess",
                      "src": "3354:19:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "hexValue": "31",
                          "id": 9862,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "number",
                          "lValueRequested": false,
                          "nodeType": "Literal",
                          "src": "3400:1:46",
                          "subdenomination": null,
                          "typeDescriptions": {
                            "typeIdentifier": "t_rational_1_by_1",
                            "typeString": "int_const 1"
                          },
                          "value": "1"
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_rational_1_by_1",
                            "typeString": "int_const 1"
                          }
                        ],
                        "expression": {
                          "argumentTypes": null,
                          "baseExpression": {
                            "argumentTypes": null,
                            "id": 9858,
                            "name": "stakesNonce",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 9738,
                            "src": "3376:11:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
                              "typeString": "mapping(address => uint256)"
                            }
                          },
                          "id": 9860,
                          "indexExpression": {
                            "argumentTypes": null,
                            "id": 9859,
                            "name": "staker",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 9832,
                            "src": "3388:6:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "IndexAccess",
                          "src": "3376:19:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "id": 9861,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "add",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 22966,
                        "src": "3376:23:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
                          "typeString": "function (uint256,uint256) pure returns (uint256)"
                        }
                      },
                      "id": 9863,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "3376:26:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "3354:48:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "id": 9865,
                  "nodeType": "ExpressionStatement",
                  "src": "3354:48:46"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 9867,
                        "name": "_proposalId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9769,
                        "src": "3426:11:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 9868,
                        "name": "_vote",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9771,
                        "src": "3439:5:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 9869,
                        "name": "_amount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9773,
                        "src": "3446:7:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 9870,
                        "name": "staker",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9832,
                        "src": "3455:6:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 9866,
                      "name": "_stake",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 12403,
                      "src": "3419:6:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_uint256_$_t_uint256_$_t_address_$returns$_t_bool_$",
                        "typeString": "function (bytes32,uint256,uint256,address) returns (bool)"
                      }
                    },
                    "id": 9871,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3419:43:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 9783,
                  "id": 9872,
                  "nodeType": "Return",
                  "src": "3412:50:46"
                }
              ]
            },
            "documentation": "@dev stakeWithSignature function\n@param _proposalId id of the proposal\n@param _vote  NO(2) or YES(1).\n@param _amount the betting amount\n@param _nonce nonce value ,it is part of the signature to ensure that\na signature can be received only once.\n@param _signatureType signature type\n1 - for web3.eth.sign\n2 - for eth_signTypedData according to EIP #712.\n@param _signature  - signed data by the staker\n@return bool true - the proposal has been executed\n             false - otherwise.",
            "id": 9874,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "stakeWithSignature",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9780,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9769,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 9874,
                  "src": "1996:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 9768,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1996:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9771,
                  "name": "_vote",
                  "nodeType": "VariableDeclaration",
                  "scope": 9874,
                  "src": "2025:13:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9770,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2025:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9773,
                  "name": "_amount",
                  "nodeType": "VariableDeclaration",
                  "scope": 9874,
                  "src": "2048:15:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9772,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2048:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9775,
                  "name": "_nonce",
                  "nodeType": "VariableDeclaration",
                  "scope": 9874,
                  "src": "2073:14:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9774,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2073:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9777,
                  "name": "_signatureType",
                  "nodeType": "VariableDeclaration",
                  "scope": 9874,
                  "src": "2097:22:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9776,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2097:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9779,
                  "name": "_signature",
                  "nodeType": "VariableDeclaration",
                  "scope": 9874,
                  "src": "2129:25:46",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_calldata_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 9778,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "2129:5:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1986:178:46"
            },
            "returnParameters": {
              "id": 9783,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9782,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 9874,
                  "src": "2198:4:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 9781,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "2198:4:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2197:6:46"
            },
            "scope": 10204,
            "src": "1959:1510:46",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 9939,
              "nodeType": "Block",
              "src": "3981:415:46",
              "statements": [
                {
                  "assignments": [
                    9891
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 9891,
                      "name": "proposal",
                      "nodeType": "VariableDeclaration",
                      "scope": 9939,
                      "src": "3991:25:46",
                      "stateVariable": false,
                      "storageLocation": "storage",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Proposal_$10339_storage_ptr",
                        "typeString": "struct GenesisProtocolLogic.Proposal"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 9890,
                        "name": "Proposal",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 10339,
                        "src": "3991:8:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Proposal_$10339_storage_ptr",
                          "typeString": "struct GenesisProtocolLogic.Proposal"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 9895,
                  "initialValue": {
                    "argumentTypes": null,
                    "baseExpression": {
                      "argumentTypes": null,
                      "id": 9892,
                      "name": "proposals",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10415,
                      "src": "4019:9:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                        "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                      }
                    },
                    "id": 9894,
                    "indexExpression": {
                      "argumentTypes": null,
                      "id": 9893,
                      "name": "_proposalId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 9876,
                      "src": "4029:11:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      }
                    },
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "IndexAccess",
                    "src": "4019:22:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                      "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "3991:50:46"
                },
                {
                  "assignments": [
                    9897
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 9897,
                      "name": "params",
                      "nodeType": "VariableDeclaration",
                      "scope": 9939,
                      "src": "4051:24:46",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Parameters_$10274_memory_ptr",
                        "typeString": "struct GenesisProtocolLogic.Parameters"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 9896,
                        "name": "Parameters",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 10274,
                        "src": "4051:10:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Parameters_$10274_storage_ptr",
                          "typeString": "struct GenesisProtocolLogic.Parameters"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 9902,
                  "initialValue": {
                    "argumentTypes": null,
                    "baseExpression": {
                      "argumentTypes": null,
                      "id": 9898,
                      "name": "parameters",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10411,
                      "src": "4078:10:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Parameters_$10274_storage_$",
                        "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Parameters storage ref)"
                      }
                    },
                    "id": 9901,
                    "indexExpression": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "id": 9899,
                        "name": "proposal",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9891,
                        "src": "4089:8:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Proposal_$10339_storage_ptr",
                          "typeString": "struct GenesisProtocolLogic.Proposal storage pointer"
                        }
                      },
                      "id": 9900,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "paramsHash",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 10302,
                      "src": "4089:19:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      }
                    },
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "IndexAccess",
                    "src": "4078:31:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Parameters_$10274_storage",
                      "typeString": "struct GenesisProtocolLogic.Parameters storage ref"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "4051:58:46"
                },
                {
                  "assignments": [
                    9904
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 9904,
                      "name": "voter",
                      "nodeType": "VariableDeclaration",
                      "scope": 9939,
                      "src": "4119:13:46",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      },
                      "typeName": {
                        "id": 9903,
                        "name": "address",
                        "nodeType": "ElementaryTypeName",
                        "src": "4119:7:46",
                        "stateMutability": "nonpayable",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 9905,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "4119:13:46"
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    },
                    "id": 9911,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "id": 9906,
                        "name": "params",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9897,
                        "src": "4146:6:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Parameters_$10274_memory_ptr",
                          "typeString": "struct GenesisProtocolLogic.Parameters memory"
                        }
                      },
                      "id": 9907,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "voteOnBehalf",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 10273,
                      "src": "4146:19:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "!=",
                    "rightExpression": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "hexValue": "30",
                          "id": 9909,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "number",
                          "lValueRequested": false,
                          "nodeType": "Literal",
                          "src": "4177:1:46",
                          "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": 9908,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "4169:7:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_address_$",
                          "typeString": "type(address)"
                        },
                        "typeName": "address"
                      },
                      "id": 9910,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "4169:10:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address_payable",
                        "typeString": "address payable"
                      }
                    },
                    "src": "4146:33:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": {
                    "id": 9930,
                    "nodeType": "Block",
                    "src": "4282:43:46",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "id": 9928,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "argumentTypes": null,
                            "id": 9925,
                            "name": "voter",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 9904,
                            "src": "4296:5:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "id": 9926,
                              "name": "msg",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 23690,
                              "src": "4304:3:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_magic_message",
                                "typeString": "msg"
                              }
                            },
                            "id": 9927,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "sender",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "4304:10:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address_payable",
                              "typeString": "address payable"
                            }
                          },
                          "src": "4296:18:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "id": 9929,
                        "nodeType": "ExpressionStatement",
                        "src": "4296:18:46"
                      }
                    ]
                  },
                  "id": 9931,
                  "nodeType": "IfStatement",
                  "src": "4142:183:46",
                  "trueBody": {
                    "id": 9924,
                    "nodeType": "Block",
                    "src": "4181:95:46",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "commonType": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              },
                              "id": 9917,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "leftExpression": {
                                "argumentTypes": null,
                                "expression": {
                                  "argumentTypes": null,
                                  "id": 9913,
                                  "name": "msg",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 23690,
                                  "src": "4203:3:46",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_magic_message",
                                    "typeString": "msg"
                                  }
                                },
                                "id": 9914,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "sender",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": null,
                                "src": "4203:10:46",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address_payable",
                                  "typeString": "address payable"
                                }
                              },
                              "nodeType": "BinaryOperation",
                              "operator": "==",
                              "rightExpression": {
                                "argumentTypes": null,
                                "expression": {
                                  "argumentTypes": null,
                                  "id": 9915,
                                  "name": "params",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 9897,
                                  "src": "4217:6:46",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_struct$_Parameters_$10274_memory_ptr",
                                    "typeString": "struct GenesisProtocolLogic.Parameters memory"
                                  }
                                },
                                "id": 9916,
                                "isConstant": false,
                                "isLValue": true,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "voteOnBehalf",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": 10273,
                                "src": "4217:19:46",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              },
                              "src": "4203:33:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            ],
                            "id": 9912,
                            "name": "require",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [
                              23693,
                              23694
                            ],
                            "referencedDeclaration": 23693,
                            "src": "4195:7:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                              "typeString": "function (bool) pure"
                            }
                          },
                          "id": 9918,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "4195:42:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 9919,
                        "nodeType": "ExpressionStatement",
                        "src": "4195:42:46"
                      },
                      {
                        "expression": {
                          "argumentTypes": null,
                          "id": 9922,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "argumentTypes": null,
                            "id": 9920,
                            "name": "voter",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 9904,
                            "src": "4251:5:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "argumentTypes": null,
                            "id": 9921,
                            "name": "_voter",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 9882,
                            "src": "4259:6:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "src": "4251:14:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "id": 9923,
                        "nodeType": "ExpressionStatement",
                        "src": "4251:14:46"
                      }
                    ]
                  }
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 9933,
                        "name": "_proposalId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9876,
                        "src": "4354:11:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 9934,
                        "name": "voter",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9904,
                        "src": "4367:5:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 9935,
                        "name": "_vote",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9878,
                        "src": "4374:5:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 9936,
                        "name": "_amount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9880,
                        "src": "4381:7:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 9932,
                      "name": "internalVote",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 12704,
                      "src": "4341:12:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_address_$_t_uint256_$_t_uint256_$returns$_t_bool_$",
                        "typeString": "function (bytes32,address,uint256,uint256) returns (bool)"
                      }
                    },
                    "id": 9937,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4341:48:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 9889,
                  "id": 9938,
                  "nodeType": "Return",
                  "src": "4334:55:46"
                }
              ]
            },
            "documentation": "@dev voting function\n@param _proposalId id of the proposal\n@param _vote NO(2) or YES(1).\n@param _amount the reputation amount to vote with . if _amount == 0 it will use all voter reputation.\n@param _voter voter address\n@return bool true - the proposal has been executed\n             false - otherwise.",
            "id": 9940,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 9885,
                    "name": "_proposalId",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 9876,
                    "src": "3950:11:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  }
                ],
                "id": 9886,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 9884,
                  "name": "votable",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 10482,
                  "src": "3942:7:46",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "3942:20:46"
              }
            ],
            "name": "vote",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9883,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9876,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 9940,
                  "src": "3856:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 9875,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "3856:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9878,
                  "name": "_vote",
                  "nodeType": "VariableDeclaration",
                  "scope": 9940,
                  "src": "3877:13:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9877,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3877:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9880,
                  "name": "_amount",
                  "nodeType": "VariableDeclaration",
                  "scope": 9940,
                  "src": "3892:15:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9879,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3892:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9882,
                  "name": "_voter",
                  "nodeType": "VariableDeclaration",
                  "scope": 9940,
                  "src": "3909:14:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 9881,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "3909:7:46",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "3855:69:46"
            },
            "returnParameters": {
              "id": 9889,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9888,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 9940,
                  "src": "3975:4:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 9887,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "3975:4:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "3974:6:46"
            },
            "scope": 10204,
            "src": "3842:554:46",
            "stateMutability": "nonpayable",
            "superFunction": 12868,
            "visibility": "external"
          },
          {
            "body": {
              "id": 9949,
              "nodeType": "Block",
              "src": "4683:52:46",
              "statements": [
                {
                  "expression": null,
                  "functionReturnParameters": 9947,
                  "id": 9948,
                  "nodeType": "Return",
                  "src": "4722:7:46"
                }
              ]
            },
            "documentation": "@dev Cancel the vote of the msg.sender.\ncancel vote is not allow in genesisProtocol so this function doing nothing.\nThis function is here in order to comply to the IntVoteInterface .",
            "id": 9950,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 9945,
                    "name": "_proposalId",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 9942,
                    "src": "4670:11:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  }
                ],
                "id": 9946,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 9944,
                  "name": "votable",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 10482,
                  "src": "4662:7:46",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "4662:20:46"
              }
            ],
            "name": "cancelVote",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9943,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9942,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 9950,
                  "src": "4632:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 9941,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4632:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "4631:21:46"
            },
            "returnParameters": {
              "id": 9947,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "4683:0:46"
            },
            "scope": 10204,
            "src": "4612:123:46",
            "stateMutability": "nonpayable",
            "superFunction": 12873,
            "visibility": "external"
          },
          {
            "body": {
              "id": 9964,
              "nodeType": "Block",
              "src": "5081:45:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 9961,
                        "name": "_proposalId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9952,
                        "src": "5107:11:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "id": 9960,
                      "name": "_execute",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 12211,
                      "src": "5098:8:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$returns$_t_bool_$",
                        "typeString": "function (bytes32) returns (bool)"
                      }
                    },
                    "id": 9962,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "5098:21:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 9959,
                  "id": 9963,
                  "nodeType": "Return",
                  "src": "5091:28:46"
                }
              ]
            },
            "documentation": "@dev execute check if the proposal has been decided, and if so, execute the proposal\n@param _proposalId the id of the proposal\n@return bool true - the proposal has been executed\n             false - otherwise.",
            "id": 9965,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 9955,
                    "name": "_proposalId",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 9952,
                    "src": "5054:11:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  }
                ],
                "id": 9956,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 9954,
                  "name": "votable",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 10482,
                  "src": "5046:7:46",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "5046:20:46"
              }
            ],
            "name": "execute",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9953,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9952,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 9965,
                  "src": "5016:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 9951,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "5016:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "5015:21:46"
            },
            "returnParameters": {
              "id": 9959,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9958,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 9965,
                  "src": "5075:4:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 9957,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "5075:4:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "5074:6:46"
            },
            "scope": 10204,
            "src": "4999:127:46",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 9974,
              "nodeType": "Block",
              "src": "5353:38:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 9972,
                    "name": "NUM_OF_CHOICES",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 10430,
                    "src": "5370:14:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "functionReturnParameters": 9971,
                  "id": 9973,
                  "nodeType": "Return",
                  "src": "5363:21:46"
                }
              ]
            },
            "documentation": "@dev getNumberOfChoices returns the number of choices possible in this proposal\n@return uint256 that contains number of choices",
            "id": 9975,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getNumberOfChoices",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9968,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9967,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 9975,
                  "src": "5313:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 9966,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "5313:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "5312:9:46"
            },
            "returnParameters": {
              "id": 9971,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9970,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 9975,
                  "src": "5344:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9969,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5344:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "5343:9:46"
            },
            "scope": 10204,
            "src": "5285:106:46",
            "stateMutability": "view",
            "superFunction": 12880,
            "visibility": "external"
          },
          {
            "body": {
              "id": 9989,
              "nodeType": "Block",
              "src": "5654:52:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "expression": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 9984,
                        "name": "proposals",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 10415,
                        "src": "5671:9:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                          "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                        }
                      },
                      "id": 9986,
                      "indexExpression": {
                        "argumentTypes": null,
                        "id": 9985,
                        "name": "_proposalId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 9977,
                        "src": "5681:11:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "IndexAccess",
                      "src": "5671:22:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                        "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                      }
                    },
                    "id": 9987,
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "memberName": "times",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 10316,
                    "src": "5671:28:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_uint256_$3_storage",
                      "typeString": "uint256[3] storage ref"
                    }
                  },
                  "functionReturnParameters": 9983,
                  "id": 9988,
                  "nodeType": "Return",
                  "src": "5664:35:46"
                }
              ]
            },
            "documentation": "@dev getProposalTimes returns proposals times variables.\n@param _proposalId id of the proposal\n@return proposals times array",
            "id": 9990,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getProposalTimes",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9978,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9977,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 9990,
                  "src": "5589:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 9976,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "5589:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "5588:21:46"
            },
            "returnParameters": {
              "id": 9983,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9982,
                  "name": "times",
                  "nodeType": "VariableDeclaration",
                  "scope": 9990,
                  "src": "5632:20:46",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_uint256_$3_memory_ptr",
                    "typeString": "uint256[3]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 9979,
                      "name": "uint",
                      "nodeType": "ElementaryTypeName",
                      "src": "5632:4:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 9981,
                    "length": {
                      "argumentTypes": null,
                      "hexValue": "33",
                      "id": 9980,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "number",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "5637:1:46",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": null,
                        "typeString": null
                      },
                      "value": "3"
                    },
                    "nodeType": "ArrayTypeName",
                    "src": "5632:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_uint256_$3_storage_ptr",
                      "typeString": "uint256[3]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "5631:22:46"
            },
            "scope": 10204,
            "src": "5563:143:46",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10016,
              "nodeType": "Block",
              "src": "6155:122:46",
              "statements": [
                {
                  "assignments": [
                    10002
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 10002,
                      "name": "voter",
                      "nodeType": "VariableDeclaration",
                      "scope": 10016,
                      "src": "6165:18:46",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Voter_$10281_memory_ptr",
                        "typeString": "struct GenesisProtocolLogic.Voter"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 10001,
                        "name": "Voter",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 10281,
                        "src": "6165:5:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Voter_$10281_storage_ptr",
                          "typeString": "struct GenesisProtocolLogic.Voter"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 10009,
                  "initialValue": {
                    "argumentTypes": null,
                    "baseExpression": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "baseExpression": {
                          "argumentTypes": null,
                          "id": 10003,
                          "name": "proposals",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10415,
                          "src": "6186:9:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                            "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                          }
                        },
                        "id": 10005,
                        "indexExpression": {
                          "argumentTypes": null,
                          "id": 10004,
                          "name": "_proposalId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 9992,
                          "src": "6196:11:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "6186:22:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                          "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                        }
                      },
                      "id": 10006,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "voters",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 10330,
                      "src": "6186:29:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Voter_$10281_storage_$",
                        "typeString": "mapping(address => struct GenesisProtocolLogic.Voter storage ref)"
                      }
                    },
                    "id": 10008,
                    "indexExpression": {
                      "argumentTypes": null,
                      "id": 10007,
                      "name": "_voter",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 9994,
                      "src": "6216:6:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "IndexAccess",
                    "src": "6186:37:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Voter_$10281_storage",
                      "typeString": "struct GenesisProtocolLogic.Voter storage ref"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "6165:58:46"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "components": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 10010,
                          "name": "voter",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10002,
                          "src": "6241:5:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_struct$_Voter_$10281_memory_ptr",
                            "typeString": "struct GenesisProtocolLogic.Voter memory"
                          }
                        },
                        "id": 10011,
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "vote",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 10276,
                        "src": "6241:10:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 10012,
                          "name": "voter",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10002,
                          "src": "6253:5:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_struct$_Voter_$10281_memory_ptr",
                            "typeString": "struct GenesisProtocolLogic.Voter memory"
                          }
                        },
                        "id": 10013,
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "reputation",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 10278,
                        "src": "6253:16:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "id": 10014,
                    "isConstant": false,
                    "isInlineArray": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "TupleExpression",
                    "src": "6240:30:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
                      "typeString": "tuple(uint256,uint256)"
                    }
                  },
                  "functionReturnParameters": 10000,
                  "id": 10015,
                  "nodeType": "Return",
                  "src": "6233:37:46"
                }
              ]
            },
            "documentation": "@dev voteInfo returns the vote and the amount of reputation of the user committed to this proposal\n@param _proposalId the ID of the proposal\n@param _voter the address of the voter\n@return uint256 vote - the voters vote\n       uint256 reputation - amount of reputation committed by _voter to _proposalId",
            "id": 10017,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "voteInfo",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9995,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9992,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 10017,
                  "src": "6084:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 9991,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "6084:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9994,
                  "name": "_voter",
                  "nodeType": "VariableDeclaration",
                  "scope": 10017,
                  "src": "6105:14:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 9993,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "6105:7:46",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "6083:37:46"
            },
            "returnParameters": {
              "id": 10000,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9997,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10017,
                  "src": "6143:4:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9996,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "6143:4:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 9999,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10017,
                  "src": "6149:4:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 9998,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "6149:4:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "6142:12:46"
            },
            "scope": 10204,
            "src": "6066:211:46",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10033,
              "nodeType": "Block",
              "src": "6621:61:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "baseExpression": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "baseExpression": {
                          "argumentTypes": null,
                          "id": 10026,
                          "name": "proposals",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10415,
                          "src": "6638:9:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                            "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                          }
                        },
                        "id": 10028,
                        "indexExpression": {
                          "argumentTypes": null,
                          "id": 10027,
                          "name": "_proposalId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10019,
                          "src": "6648:11:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "6638:22:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                          "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                        }
                      },
                      "id": 10029,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "votes",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 10322,
                      "src": "6638:28:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$",
                        "typeString": "mapping(uint256 => uint256)"
                      }
                    },
                    "id": 10031,
                    "indexExpression": {
                      "argumentTypes": null,
                      "id": 10030,
                      "name": "_choice",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10021,
                      "src": "6667:7:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "IndexAccess",
                    "src": "6638:37:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "functionReturnParameters": 10025,
                  "id": 10032,
                  "nodeType": "Return",
                  "src": "6631:44:46"
                }
              ]
            },
            "documentation": "@dev voteStatus returns the reputation voted for a proposal for a specific voting choice.\n@param _proposalId the ID of the proposal\n@param _choice the index in the\n@return voted reputation for the given choice",
            "id": 10034,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "voteStatus",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10022,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10019,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 10034,
                  "src": "6552:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 10018,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "6552:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 10021,
                  "name": "_choice",
                  "nodeType": "VariableDeclaration",
                  "scope": 10034,
                  "src": "6573:15:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10020,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "6573:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "6551:38:46"
            },
            "returnParameters": {
              "id": 10025,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10024,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10034,
                  "src": "6612:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10023,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "6612:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "6611:9:46"
            },
            "scope": 10204,
            "src": "6532:150:46",
            "stateMutability": "view",
            "superFunction": 12896,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10045,
              "nodeType": "Block",
              "src": "6906:47:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 10042,
                        "name": "_proposalId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 10036,
                        "src": "6934:11:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "id": 10041,
                      "name": "_isVotable",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 12773,
                      "src": "6923:10:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bool_$",
                        "typeString": "function (bytes32) view returns (bool)"
                      }
                    },
                    "id": 10043,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6923:23:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 10040,
                  "id": 10044,
                  "nodeType": "Return",
                  "src": "6916:30:46"
                }
              ]
            },
            "documentation": "@dev isVotable check if the proposal is votable\n@param _proposalId the ID of the proposal\n@return bool true or false",
            "id": 10046,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "isVotable",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10037,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10036,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 10046,
                  "src": "6857:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 10035,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "6857:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "6856:21:46"
            },
            "returnParameters": {
              "id": 10040,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10039,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10046,
                  "src": "6900:4:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 10038,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "6900:4:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "6899:6:46"
            },
            "scope": 10204,
            "src": "6838:115:46",
            "stateMutability": "view",
            "superFunction": 12887,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10085,
              "nodeType": "Block",
              "src": "7366:258:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "components": [
                      {
                        "argumentTypes": null,
                        "baseExpression": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "baseExpression": {
                              "argumentTypes": null,
                              "id": 10059,
                              "name": "proposals",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 10415,
                              "src": "7401:9:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                                "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                              }
                            },
                            "id": 10061,
                            "indexExpression": {
                              "argumentTypes": null,
                              "id": 10060,
                              "name": "_proposalId",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 10048,
                              "src": "7411:11:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bytes32",
                                "typeString": "bytes32"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "7401:22:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                              "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                            }
                          },
                          "id": 10062,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "preBoostedVotes",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 10326,
                          "src": "7401:38:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$",
                            "typeString": "mapping(uint256 => uint256)"
                          }
                        },
                        "id": 10064,
                        "indexExpression": {
                          "argumentTypes": null,
                          "id": 10063,
                          "name": "YES",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10436,
                          "src": "7440:3:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "7401:43:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "baseExpression": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "baseExpression": {
                              "argumentTypes": null,
                              "id": 10065,
                              "name": "proposals",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 10415,
                              "src": "7462:9:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                                "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                              }
                            },
                            "id": 10067,
                            "indexExpression": {
                              "argumentTypes": null,
                              "id": 10066,
                              "name": "_proposalId",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 10048,
                              "src": "7472:11:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bytes32",
                                "typeString": "bytes32"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "7462:22:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                              "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                            }
                          },
                          "id": 10068,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "preBoostedVotes",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 10326,
                          "src": "7462:38:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$",
                            "typeString": "mapping(uint256 => uint256)"
                          }
                        },
                        "id": 10070,
                        "indexExpression": {
                          "argumentTypes": null,
                          "id": 10069,
                          "name": "NO",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10433,
                          "src": "7501:2:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "7462:42:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "baseExpression": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "baseExpression": {
                              "argumentTypes": null,
                              "id": 10071,
                              "name": "proposals",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 10415,
                              "src": "7522:9:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                                "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                              }
                            },
                            "id": 10073,
                            "indexExpression": {
                              "argumentTypes": null,
                              "id": 10072,
                              "name": "_proposalId",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 10048,
                              "src": "7532:11:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bytes32",
                                "typeString": "bytes32"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "7522:22:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                              "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                            }
                          },
                          "id": 10074,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "stakes",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 10334,
                          "src": "7522:29:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$",
                            "typeString": "mapping(uint256 => uint256)"
                          }
                        },
                        "id": 10076,
                        "indexExpression": {
                          "argumentTypes": null,
                          "id": 10075,
                          "name": "YES",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10436,
                          "src": "7552:3:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "7522:34:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "baseExpression": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "baseExpression": {
                              "argumentTypes": null,
                              "id": 10077,
                              "name": "proposals",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 10415,
                              "src": "7574:9:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                                "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                              }
                            },
                            "id": 10079,
                            "indexExpression": {
                              "argumentTypes": null,
                              "id": 10078,
                              "name": "_proposalId",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 10048,
                              "src": "7584:11:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bytes32",
                                "typeString": "bytes32"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "7574:22:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                              "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                            }
                          },
                          "id": 10080,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "stakes",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 10334,
                          "src": "7574:29:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$",
                            "typeString": "mapping(uint256 => uint256)"
                          }
                        },
                        "id": 10082,
                        "indexExpression": {
                          "argumentTypes": null,
                          "id": 10081,
                          "name": "NO",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10433,
                          "src": "7604:2:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "7574:33:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "id": 10083,
                    "isConstant": false,
                    "isInlineArray": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "TupleExpression",
                    "src": "7383:234:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$",
                      "typeString": "tuple(uint256,uint256,uint256,uint256)"
                    }
                  },
                  "functionReturnParameters": 10058,
                  "id": 10084,
                  "nodeType": "Return",
                  "src": "7376:241:46"
                }
              ]
            },
            "documentation": "@dev proposalStatus return the total votes and stakes for a given proposal\n@param _proposalId the ID of the proposal\n@return uint256 preBoostedVotes YES\n@return uint256 preBoostedVotes NO\n@return uint256 total stakes YES\n@return uint256 total stakes NO",
            "id": 10086,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "proposalStatus",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10049,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10048,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 10086,
                  "src": "7287:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 10047,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "7287:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "7286:21:46"
            },
            "returnParameters": {
              "id": 10058,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10051,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10086,
                  "src": "7330:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10050,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "7330:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 10053,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10086,
                  "src": "7339:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10052,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "7339:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 10055,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10086,
                  "src": "7348:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10054,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "7348:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 10057,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10086,
                  "src": "7357:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10056,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "7357:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "7329:36:46"
            },
            "scope": 10204,
            "src": "7263:361:46",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10099,
              "nodeType": "Block",
              "src": "7904:63:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "components": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "baseExpression": {
                            "argumentTypes": null,
                            "id": 10093,
                            "name": "proposals",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 10415,
                            "src": "7922:9:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                              "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                            }
                          },
                          "id": 10095,
                          "indexExpression": {
                            "argumentTypes": null,
                            "id": 10094,
                            "name": "_proposalId",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 10088,
                            "src": "7932:11:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          },
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "IndexAccess",
                          "src": "7922:22:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                            "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                          }
                        },
                        "id": 10096,
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "organizationId",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 10290,
                        "src": "7922:37:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "id": 10097,
                    "isConstant": false,
                    "isInlineArray": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "TupleExpression",
                    "src": "7921:39:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "functionReturnParameters": 10092,
                  "id": 10098,
                  "nodeType": "Return",
                  "src": "7914:46:46"
                }
              ]
            },
            "documentation": "@dev getProposalOrganization return the organizationId for a given proposal\n@param _proposalId the ID of the proposal\n@return bytes32 organization identifier",
            "id": 10100,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getProposalOrganization",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10089,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10088,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 10100,
                  "src": "7852:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 10087,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "7852:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "7851:21:46"
            },
            "returnParameters": {
              "id": 10092,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10091,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10100,
                  "src": "7895:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 10090,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "7895:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "7894:9:46"
            },
            "scope": 10204,
            "src": "7819:148:46",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10127,
              "nodeType": "Block",
              "src": "8321:118:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "components": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "baseExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 10111,
                                "name": "proposals",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 10415,
                                "src": "8339:9:46",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                                  "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                                }
                              },
                              "id": 10113,
                              "indexExpression": {
                                "argumentTypes": null,
                                "id": 10112,
                                "name": "_proposalId",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 10102,
                                "src": "8349:11:46",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "8339:22:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                                "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                              }
                            },
                            "id": 10114,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "stakers",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 10338,
                            "src": "8339:30:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Staker_$10288_storage_$",
                              "typeString": "mapping(address => struct GenesisProtocolLogic.Staker storage ref)"
                            }
                          },
                          "id": 10116,
                          "indexExpression": {
                            "argumentTypes": null,
                            "id": 10115,
                            "name": "_staker",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 10104,
                            "src": "8370:7:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "IndexAccess",
                          "src": "8339:39:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_struct$_Staker_$10288_storage",
                            "typeString": "struct GenesisProtocolLogic.Staker storage ref"
                          }
                        },
                        "id": 10117,
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "vote",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 10283,
                        "src": "8339:44:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "baseExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 10118,
                                "name": "proposals",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 10415,
                                "src": "8385:9:46",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                                  "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                                }
                              },
                              "id": 10120,
                              "indexExpression": {
                                "argumentTypes": null,
                                "id": 10119,
                                "name": "_proposalId",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 10102,
                                "src": "8395:11:46",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "8385:22:46",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                                "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                              }
                            },
                            "id": 10121,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "stakers",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 10338,
                            "src": "8385:30:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Staker_$10288_storage_$",
                              "typeString": "mapping(address => struct GenesisProtocolLogic.Staker storage ref)"
                            }
                          },
                          "id": 10123,
                          "indexExpression": {
                            "argumentTypes": null,
                            "id": 10122,
                            "name": "_staker",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 10104,
                            "src": "8416:7:46",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "IndexAccess",
                          "src": "8385:39:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_struct$_Staker_$10288_storage",
                            "typeString": "struct GenesisProtocolLogic.Staker storage ref"
                          }
                        },
                        "id": 10124,
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "amount",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 10285,
                        "src": "8385:46:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "id": 10125,
                    "isConstant": false,
                    "isInlineArray": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "TupleExpression",
                    "src": "8338:94:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
                      "typeString": "tuple(uint256,uint256)"
                    }
                  },
                  "functionReturnParameters": 10110,
                  "id": 10126,
                  "nodeType": "Return",
                  "src": "8331:101:46"
                }
              ]
            },
            "documentation": "@dev getStaker return the vote and stake amount for a given proposal and staker\n@param _proposalId the ID of the proposal\n@param _staker staker address\n@return uint256 vote\n@return uint256 amount",
            "id": 10128,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getStaker",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10105,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10102,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 10128,
                  "src": "8243:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 10101,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "8243:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 10104,
                  "name": "_staker",
                  "nodeType": "VariableDeclaration",
                  "scope": 10128,
                  "src": "8264:15:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 10103,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "8264:7:46",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "8242:38:46"
            },
            "returnParameters": {
              "id": 10110,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10107,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10128,
                  "src": "8303:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10106,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "8303:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 10109,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10128,
                  "src": "8312:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10108,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "8312:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "8302:18:46"
            },
            "scope": 10204,
            "src": "8224:215:46",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10144,
              "nodeType": "Block",
              "src": "8744:60:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "baseExpression": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "baseExpression": {
                          "argumentTypes": null,
                          "id": 10137,
                          "name": "proposals",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10415,
                          "src": "8761:9:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                            "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                          }
                        },
                        "id": 10139,
                        "indexExpression": {
                          "argumentTypes": null,
                          "id": 10138,
                          "name": "_proposalId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10130,
                          "src": "8771:11:46",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "8761:22:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                          "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                        }
                      },
                      "id": 10140,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "stakes",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 10334,
                      "src": "8761:29:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$",
                        "typeString": "mapping(uint256 => uint256)"
                      }
                    },
                    "id": 10142,
                    "indexExpression": {
                      "argumentTypes": null,
                      "id": 10141,
                      "name": "_vote",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10132,
                      "src": "8791:5:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "IndexAccess",
                    "src": "8761:36:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "functionReturnParameters": 10136,
                  "id": 10143,
                  "nodeType": "Return",
                  "src": "8754:43:46"
                }
              ]
            },
            "documentation": "@dev voteStake return the amount stakes for a given proposal and vote\n@param _proposalId the ID of the proposal\n@param _vote vote number\n@return uint256 stake amount",
            "id": 10145,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "voteStake",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10133,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10130,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 10145,
                  "src": "8677:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 10129,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "8677:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 10132,
                  "name": "_vote",
                  "nodeType": "VariableDeclaration",
                  "scope": 10145,
                  "src": "8698:13:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10131,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "8698:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "8676:36:46"
            },
            "returnParameters": {
              "id": 10136,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10135,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10145,
                  "src": "8735:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10134,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "8735:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "8734:9:46"
            },
            "scope": 10204,
            "src": "8658:146:46",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10157,
              "nodeType": "Block",
              "src": "9043:58:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "expression": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 10152,
                        "name": "proposals",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 10415,
                        "src": "9060:9:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                          "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                        }
                      },
                      "id": 10154,
                      "indexExpression": {
                        "argumentTypes": null,
                        "id": 10153,
                        "name": "_proposalId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 10147,
                        "src": "9070:11:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "IndexAccess",
                      "src": "9060:22:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                        "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                      }
                    },
                    "id": 10155,
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "memberName": "winningVote",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 10296,
                    "src": "9060:34:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "functionReturnParameters": 10151,
                  "id": 10156,
                  "nodeType": "Return",
                  "src": "9053:41:46"
                }
              ]
            },
            "documentation": "@dev voteStake return the winningVote for a given proposal\n@param _proposalId the ID of the proposal\n@return uint256 winningVote",
            "id": 10158,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "winningVote",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10148,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10147,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 10158,
                  "src": "8991:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 10146,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "8991:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "8990:21:46"
            },
            "returnParameters": {
              "id": 10151,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10150,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10158,
                  "src": "9034:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10149,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "9034:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "9033:9:46"
            },
            "scope": 10204,
            "src": "8970:131:46",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10170,
              "nodeType": "Block",
              "src": "9351:52:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "expression": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 10165,
                        "name": "proposals",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 10415,
                        "src": "9368:9:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_Proposal_$10339_storage_$",
                          "typeString": "mapping(bytes32 => struct GenesisProtocolLogic.Proposal storage ref)"
                        }
                      },
                      "id": 10167,
                      "indexExpression": {
                        "argumentTypes": null,
                        "id": 10166,
                        "name": "_proposalId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 10160,
                        "src": "9378:11:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "IndexAccess",
                      "src": "9368:22:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Proposal_$10339_storage",
                        "typeString": "struct GenesisProtocolLogic.Proposal storage ref"
                      }
                    },
                    "id": 10168,
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "memberName": "state",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 10294,
                    "src": "9368:28:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_enum$_ProposalState_$10240",
                      "typeString": "enum GenesisProtocolLogic.ProposalState"
                    }
                  },
                  "functionReturnParameters": 10164,
                  "id": 10169,
                  "nodeType": "Return",
                  "src": "9361:35:46"
                }
              ]
            },
            "documentation": "@dev voteStake return the state for a given proposal\n@param _proposalId the ID of the proposal\n@return ProposalState proposal state",
            "id": 10171,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "state",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10161,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10160,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 10171,
                  "src": "9293:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 10159,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "9293:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "9292:21:46"
            },
            "returnParameters": {
              "id": 10164,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10163,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10171,
                  "src": "9336:13:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_enum$_ProposalState_$10240",
                    "typeString": "enum GenesisProtocolLogic.ProposalState"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 10162,
                    "name": "ProposalState",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 10240,
                    "src": "9336:13:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_enum$_ProposalState_$10240",
                      "typeString": "enum GenesisProtocolLogic.ProposalState"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "9335:15:46"
            },
            "scope": 10204,
            "src": "9278:125:46",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10178,
              "nodeType": "Block",
              "src": "9584:29:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "hexValue": "66616c7365",
                    "id": 10176,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "bool",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "9601:5:46",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "value": "false"
                  },
                  "functionReturnParameters": 10175,
                  "id": 10177,
                  "nodeType": "Return",
                  "src": "9594:12:46"
                }
              ]
            },
            "documentation": "@dev isAbstainAllow returns if the voting machine allow abstain (0)\n@return bool true or false",
            "id": 10179,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "isAbstainAllow",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10172,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "9553:2:46"
            },
            "returnParameters": {
              "id": 10175,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10174,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10179,
                  "src": "9578:4:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 10173,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "9578:4:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "9577:6:46"
            },
            "scope": 10204,
            "src": "9530:83:46",
            "stateMutability": "pure",
            "superFunction": 12901,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10190,
              "nodeType": "Block",
              "src": "9909:33:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "components": [
                      {
                        "argumentTypes": null,
                        "id": 10186,
                        "name": "YES",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 10436,
                        "src": "9927:3:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 10187,
                        "name": "NO",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 10433,
                        "src": "9932:2:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "id": 10188,
                    "isConstant": false,
                    "isInlineArray": false,
                    "isLValue": false,
                    "isPure": true,
                    "lValueRequested": false,
                    "nodeType": "TupleExpression",
                    "src": "9926:9:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
                      "typeString": "tuple(uint256,uint256)"
                    }
                  },
                  "functionReturnParameters": 10185,
                  "id": 10189,
                  "nodeType": "Return",
                  "src": "9919:16:46"
                }
              ]
            },
            "documentation": "@dev getAllowedRangeOfChoices returns the allowed range of choices for a voting machine.\n@return min - minimum number of choices\nmax - maximum number of choices",
            "id": 10191,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getAllowedRangeOfChoices",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10180,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "9858:2:46"
            },
            "returnParameters": {
              "id": 10185,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10182,
                  "name": "min",
                  "nodeType": "VariableDeclaration",
                  "scope": 10191,
                  "src": "9883:11:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10181,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "9883:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 10184,
                  "name": "max",
                  "nodeType": "VariableDeclaration",
                  "scope": 10191,
                  "src": "9896:11:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10183,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "9896:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "9882:26:46"
            },
            "scope": 10204,
            "src": "9825:117:46",
            "stateMutability": "pure",
            "superFunction": 12908,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10202,
              "nodeType": "Block",
              "src": "10161:44:46",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 10199,
                        "name": "_proposalId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 10193,
                        "src": "10186:11:46",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "id": 10198,
                      "name": "_score",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 12733,
                      "src": "10179:6:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_uint256_$",
                        "typeString": "function (bytes32) view returns (uint256)"
                      }
                    },
                    "id": 10200,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "10179:19:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "functionReturnParameters": 10197,
                  "id": 10201,
                  "nodeType": "Return",
                  "src": "10171:27:46"
                }
              ]
            },
            "documentation": "@dev score return the proposal score\n@param _proposalId the ID of the proposal\n@return uint256 proposal score.",
            "id": 10203,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "score",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10194,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10193,
                  "name": "_proposalId",
                  "nodeType": "VariableDeclaration",
                  "scope": 10203,
                  "src": "10111:19:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 10192,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "10111:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "10110:21:46"
            },
            "returnParameters": {
              "id": 10197,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10196,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10203,
                  "src": "10152:7:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10195,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "10152:7:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "10151:9:46"
            },
            "scope": 10204,
            "src": "10096:109:46",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 10205,
        "src": "220:9987:46"
      }
    ],
    "src": "0:10208:46"
  },
  "compiler": {
    "name": "solc",
    "version": "0.5.4+commit.9549d8ff.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.0.9",
  "updatedAt": "2019-05-28T21:12:52.361Z",
  "devdoc": {
    "methods": {
      "calcExecuteCallBounty(bytes32)": {
        "details": "calcExecuteCallBounty calculate the execute boosted call bounty",
        "params": {
          "_proposalId": "the ID of the proposal"
        },
        "return": "uint256 executeCallBounty"
      },
      "cancelVote(bytes32)": {
        "details": "Cancel the vote of the msg.sender. cancel vote is not allow in genesisProtocol so this function doing nothing. This function is here in order to comply to the IntVoteInterface ."
      },
      "constructor": {
        "details": "Constructor"
      },
      "execute(bytes32)": {
        "details": "execute check if the proposal has been decided, and if so, execute the proposal",
        "params": {
          "_proposalId": "the id of the proposal"
        },
        "return": "bool true - the proposal has been executed             false - otherwise."
      },
      "executeBoosted(bytes32)": {
        "details": "executeBoosted try to execute a boosted or QuietEndingPeriod proposal if it is expired it rewards the msg.sender with P % of the proposal's upstakes upon a successful call to this function. P = t/150, where t is the number of seconds passed since the the proposal's timeout. P is capped by 10%.",
        "params": {
          "_proposalId": "the id of the proposal"
        },
        "return": "uint256 expirationCallBounty the bounty amount for the expiration call"
      },
      "getAllowedRangeOfChoices()": {
        "details": "getAllowedRangeOfChoices returns the allowed range of choices for a voting machine.",
        "return": "min - minimum number of choices max - maximum number of choices"
      },
      "getNumberOfChoices(bytes32)": {
        "details": "getNumberOfChoices returns the number of choices possible in this proposal",
        "return": "uint256 that contains number of choices"
      },
      "getParametersHash(uint256[11],address)": {
        "details": "hashParameters returns a hash of the given parameters"
      },
      "getProposalOrganization(bytes32)": {
        "details": "getProposalOrganization return the organizationId for a given proposal",
        "params": {
          "_proposalId": "the ID of the proposal"
        },
        "return": "bytes32 organization identifier"
      },
      "getProposalTimes(bytes32)": {
        "details": "getProposalTimes returns proposals times variables.",
        "params": {
          "_proposalId": "id of the proposal"
        },
        "return": "proposals times array"
      },
      "getStaker(bytes32,address)": {
        "details": "getStaker return the vote and stake amount for a given proposal and staker",
        "params": {
          "_proposalId": "the ID of the proposal",
          "_staker": "staker address"
        },
        "return": "uint256 voteuint256 amount"
      },
      "isAbstainAllow()": {
        "details": "isAbstainAllow returns if the voting machine allow abstain (0)",
        "return": "bool true or false"
      },
      "isVotable(bytes32)": {
        "details": "isVotable check if the proposal is votable",
        "params": {
          "_proposalId": "the ID of the proposal"
        },
        "return": "bool true or false"
      },
      "proposalStatus(bytes32)": {
        "details": "proposalStatus return the total votes and stakes for a given proposal",
        "params": {
          "_proposalId": "the ID of the proposal"
        },
        "return": "uint256 preBoostedVotes YESuint256 preBoostedVotes NOuint256 total stakes YESuint256 total stakes NO"
      },
      "propose(uint256,bytes32,address,address)": {
        "details": "register a new proposal with the given parameters. Every proposal has a unique ID which is being generated by calculating keccak256 of a incremented counter.",
        "params": {
          "_organization": "address",
          "_paramsHash": "parameters hash",
          "_proposer": "address"
        }
      },
      "redeem(bytes32,address)": {
        "details": "redeem a reward for a successful stake, vote or proposing. The function use a beneficiary address as a parameter (and not msg.sender) to enable users to redeem on behalf of someone else.",
        "params": {
          "_beneficiary": "- the beneficiary address",
          "_proposalId": "the ID of the proposal"
        },
        "return": "rewards -          [0] stakerTokenReward          [1] voterReputationReward          [2] proposerReputationReward"
      },
      "redeemDaoBounty(bytes32,address)": {
        "details": "redeemDaoBounty a reward for a successful stake. The function use a beneficiary address as a parameter (and not msg.sender) to enable users to redeem on behalf of someone else.",
        "params": {
          "_beneficiary": "- the beneficiary address",
          "_proposalId": "the ID of the proposal"
        },
        "return": "redeemedAmount - redeem token amountpotentialAmount - potential redeem token amount(if there is enough tokens bounty at the organization )"
      },
      "score(bytes32)": {
        "details": "score return the proposal score",
        "params": {
          "_proposalId": "the ID of the proposal"
        },
        "return": "uint256 proposal score."
      },
      "setParameters(uint256[11],address)": {
        "details": "hash the parameters, save them if necessary, and return the hash value",
        "params": {
          "_params": "a parameters array   _params[0] - _queuedVoteRequiredPercentage,   _params[1] - _queuedVotePeriodLimit, //the time limit for a proposal to be in an absolute voting mode.   _params[2] - _boostedVotePeriodLimit, //the time limit for a proposal to be in an relative voting mode.   _params[3] - _preBoostedVotePeriodLimit, //the time limit for a proposal to be in an preparation                 state (stable) before boosted.   _params[4] -_thresholdConst   _params[5] -_quietEndingPeriod   _params[6] -_proposingRepReward   _params[7] -_votersReputationLossRatio   _params[8] -_minimumDaoBounty   _params[9] -_daoBountyConst   _params[10] -_activationTime",
          "_voteOnBehalf": "- authorized to vote on behalf of others."
        }
      },
      "shouldBoost(bytes32)": {
        "details": "shouldBoost check if a proposal should be shifted to boosted phase.",
        "params": {
          "_proposalId": "the ID of the proposal"
        },
        "return": "bool true or false."
      },
      "stake(bytes32,uint256,uint256)": {
        "details": "staking function",
        "params": {
          "_amount": "the betting amount",
          "_proposalId": "id of the proposal",
          "_vote": "NO(2) or YES(1)."
        },
        "return": "bool true - the proposal has been executed             false - otherwise."
      },
      "stakeWithSignature(bytes32,uint256,uint256,uint256,uint256,bytes)": {
        "details": "stakeWithSignature function",
        "params": {
          "_amount": "the betting amount",
          "_nonce": "nonce value ,it is part of the signature to ensure that a signature can be received only once.",
          "_proposalId": "id of the proposal",
          "_signature": "- signed data by the staker",
          "_signatureType": "signature type 1 - for web3.eth.sign 2 - for eth_signTypedData according to EIP #712.",
          "_vote": "NO(2) or YES(1)."
        },
        "return": "bool true - the proposal has been executed             false - otherwise."
      },
      "state(bytes32)": {
        "details": "voteStake return the state for a given proposal",
        "params": {
          "_proposalId": "the ID of the proposal"
        },
        "return": "ProposalState proposal state"
      },
      "threshold(bytes32,bytes32)": {
        "details": "threshold return the organization's score threshold which required by a proposal to shift to boosted state. This threshold is dynamically set and it depend on the number of boosted proposal.",
        "params": {
          "_organizationId": "the organization identifier",
          "_paramsHash": "the organization parameters hash"
        },
        "return": "uint256 organization's score threshold as real number."
      },
      "vote(bytes32,uint256,uint256,address)": {
        "details": "voting function",
        "params": {
          "_amount": "the reputation amount to vote with . if _amount == 0 it will use all voter reputation.",
          "_proposalId": "id of the proposal",
          "_vote": "NO(2) or YES(1).",
          "_voter": "voter address"
        },
        "return": "bool true - the proposal has been executed             false - otherwise."
      },
      "voteInfo(bytes32,address)": {
        "details": "voteInfo returns the vote and the amount of reputation of the user committed to this proposal",
        "params": {
          "_proposalId": "the ID of the proposal",
          "_voter": "the address of the voter"
        },
        "return": "uint256 vote - the voters vote       uint256 reputation - amount of reputation committed by _voter to _proposalId"
      },
      "voteStake(bytes32,uint256)": {
        "details": "voteStake return the amount stakes for a given proposal and vote",
        "params": {
          "_proposalId": "the ID of the proposal",
          "_vote": "vote number"
        },
        "return": "uint256 stake amount"
      },
      "voteStatus(bytes32,uint256)": {
        "details": "voteStatus returns the reputation voted for a proposal for a specific voting choice.",
        "params": {
          "_choice": "the index in the",
          "_proposalId": "the ID of the proposal"
        },
        "return": "voted reputation for the given choice"
      },
      "winningVote(bytes32)": {
        "details": "voteStake return the winningVote for a given proposal",
        "params": {
          "_proposalId": "the ID of the proposal"
        },
        "return": "uint256 winningVote"
      }
    },
    "title": "GenesisProtocol implementation -an organization's voting machine scheme."
  },
  "userdoc": {
    "methods": {}
  }
}