{
  "contractName": "WhitelistPriceOracle",
  "abi": [
    {
      "constant": true,
      "inputs": [
        {
          "name": "addressesToCheck",
          "type": "address[]"
        }
      ],
      "name": "getApprovedAddressesOfList",
      "outputs": [
        {
          "name": "",
          "type": "bool[]"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "dutchX",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "token",
          "type": "address"
        },
        {
          "name": "numberOfAuctions",
          "type": "uint256"
        },
        {
          "name": "auctionIndex",
          "type": "uint256"
        }
      ],
      "name": "getPricesAndMedian",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        },
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "token",
          "type": "address"
        }
      ],
      "name": "getPrice",
      "outputs": [
        {
          "name": "num",
          "type": "uint256"
        },
        {
          "name": "den",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "token",
          "type": "address"
        },
        {
          "name": "time",
          "type": "uint256"
        },
        {
          "name": "requireWhitelisted",
          "type": "bool"
        },
        {
          "name": "maximumTimePeriod",
          "type": "uint256"
        },
        {
          "name": "numberOfAuctions",
          "type": "uint256"
        }
      ],
      "name": "getPriceCustom",
      "outputs": [
        {
          "name": "num",
          "type": "uint256"
        },
        {
          "name": "den",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "auctioneer",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "token",
          "type": "address[]"
        },
        {
          "name": "approved",
          "type": "bool"
        }
      ],
      "name": "updateApprovalOfToken",
      "outputs": [],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "name": "approvedTokens",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_auctioneer",
          "type": "address"
        }
      ],
      "name": "updateAuctioneer",
      "outputs": [],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "ethToken",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "num1",
          "type": "uint256"
        },
        {
          "name": "den1",
          "type": "uint256"
        },
        {
          "name": "num2",
          "type": "uint256"
        },
        {
          "name": "den2",
          "type": "uint256"
        }
      ],
      "name": "isSmaller",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "pure",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "token",
          "type": "address"
        },
        {
          "name": "lowerBound",
          "type": "uint256"
        },
        {
          "name": "initialUpperBound",
          "type": "uint256"
        },
        {
          "name": "upperBound",
          "type": "uint256"
        },
        {
          "name": "time",
          "type": "uint256"
        }
      ],
      "name": "computeAuctionIndex",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "name": "_dutchX",
          "type": "address"
        },
        {
          "name": "_ethToken",
          "type": "address"
        },
        {
          "name": "_auctioneer",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "constructor"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "token",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "approved",
          "type": "bool"
        }
      ],
      "name": "Approval",
      "type": "event"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "token",
          "type": "address"
        }
      ],
      "name": "isWhitelisted",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    }
  ],
  "metadata": "{\"compiler\":{\"version\":\"0.5.4+commit.9549d8ff\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[{\"name\":\"addressesToCheck\",\"type\":\"address[]\"}],\"name\":\"getApprovedAddressesOfList\",\"outputs\":[{\"name\":\"\",\"type\":\"bool[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"dutchX\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"token\",\"type\":\"address\"},{\"name\":\"numberOfAuctions\",\"type\":\"uint256\"},{\"name\":\"auctionIndex\",\"type\":\"uint256\"}],\"name\":\"getPricesAndMedian\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"token\",\"type\":\"address\"}],\"name\":\"isWhitelisted\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"token\",\"type\":\"address\"}],\"name\":\"getPrice\",\"outputs\":[{\"name\":\"num\",\"type\":\"uint256\"},{\"name\":\"den\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"token\",\"type\":\"address\"},{\"name\":\"time\",\"type\":\"uint256\"},{\"name\":\"requireWhitelisted\",\"type\":\"bool\"},{\"name\":\"maximumTimePeriod\",\"type\":\"uint256\"},{\"name\":\"numberOfAuctions\",\"type\":\"uint256\"}],\"name\":\"getPriceCustom\",\"outputs\":[{\"name\":\"num\",\"type\":\"uint256\"},{\"name\":\"den\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"auctioneer\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"token\",\"type\":\"address[]\"},{\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"updateApprovalOfToken\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"address\"}],\"name\":\"approvedTokens\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_auctioneer\",\"type\":\"address\"}],\"name\":\"updateAuctioneer\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"ethToken\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"num1\",\"type\":\"uint256\"},{\"name\":\"den1\",\"type\":\"uint256\"},{\"name\":\"num2\",\"type\":\"uint256\"},{\"name\":\"den2\",\"type\":\"uint256\"}],\"name\":\"isSmaller\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"token\",\"type\":\"address\"},{\"name\":\"lowerBound\",\"type\":\"uint256\"},{\"name\":\"initialUpperBound\",\"type\":\"uint256\"},{\"name\":\"upperBound\",\"type\":\"uint256\"},{\"name\":\"time\",\"type\":\"uint256\"}],\"name\":\"computeAuctionIndex\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"_dutchX\",\"type\":\"address\"},{\"name\":\"_ethToken\",\"type\":\"address\"},{\"name\":\"_auctioneer\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"Approval\",\"type\":\"event\"}],\"devdoc\":{\"author\":\"Angel Rodriguez - angel@gnosis.pm\",\"methods\":{\"computeAuctionIndex(address,uint256,uint256,uint256,uint256)\":{\"details\":\"compute largest auctionIndex with clearing time smaller than desired time. Use case: user provides a time and this function will find the largest auctionIndex that had a cleared auction before that time. It is used to get historical price oracle values\",\"params\":{\"initialUpperBound\":\"initial upper bound when this recursive fn is called for the first time\",\"lowerBound\":\"lowerBound of result. Recommended that it is > 0, because 0th price is set by whoever adds token pair\",\"time\":\"desired time\",\"token\":\"address of ERC-20 token in question\",\"upperBound\":\"current upper bound of result\"},\"return\":\"largest auctionIndex s.t. clearingTime[auctionIndex] <= time\"},\"getApprovedAddressesOfList(address[])\":{\"details\":\"for quick overview of approved Tokens\",\"params\":{\"addressesToCheck\":\"are the ERC-20 token addresses to be checked whether they are approved\"}},\"getPrice(address)\":{\"params\":{\"token\":\"address of ERC-20 token in question\"},\"return\":\"The numerator of the price of the tokenThe denominator of the price of the token\"},\"getPriceCustom(address,uint256,bool,uint256,uint256)\":{\"details\":\"More fine-grained price oracle for token `token.address()`\",\"params\":{\"maximumTimePeriod\":\"maximum time period between clearing time of last auction and `time`\",\"numberOfAuctions\":\"how many auctions to consider. Contract is safe only for odd numbers.\",\"requireWhitelisted\":\"Require the token be whitelisted on the DutchX? (Unwhitelisted addresses might not conform to the ERC-20 standard and/or might be malicious)\",\"time\":\"0 for current price, a Unix timestamp for a price at any point in time\",\"token\":\"address of ERC-20 token in question\"},\"return\":\"The numerator of the price of the tokenThe denominator of the price of the token\"},\"getPricesAndMedian(address,uint256,uint256)\":{\"details\":\"search starts at auctionIndex - 1. The reason for this is we expect the most common use case to be the latest auction index and for that the clearingTime is not available yet. So we need to start at the one before\",\"params\":{\"auctionIndex\":\"search will begin at auctionIndex - 1\",\"numberOfAuctions\":\"how many auctions to consider. Contract is safe only for add numbers\",\"token\":\"address of ERC-20 token in question\"},\"return\":\"The numerator of the price of the tokenThe denominator of the price of the token\"},\"isSmaller(uint256,uint256,uint256,uint256)\":{\"params\":{\"den1\":\"Denominator of first fraction\",\"den2\":\"Denominator of second fraction\",\"num1\":\"Numerator of first fraction\",\"num2\":\"Numerator of second fraction\"},\"return\":\"bool - whether first fraction is (strictly) smaller than second\"}},\"title\":\"A DutchXPriceOracle that uses it's own whitelisted tokens instead of the ones of the DutchX\"},\"userdoc\":{\"methods\":{\"getPrice(address)\":{\"notice\":\"Get price, in ETH, of an ERC-20 token `token.address()`\"},\"getPricesAndMedian(address,uint256,uint256)\":{\"notice\":\"gets prices, starting \"},\"isSmaller(uint256,uint256,uint256,uint256)\":{\"notice\":\"compares two fractions and returns if first is smaller\"}}}},\"settings\":{\"compilationTarget\":{\"@gnosis.pm/dx-price-oracle/contracts/WhitelistPriceOracle.sol\":\"WhitelistPriceOracle\"},\"evmVersion\":\"byzantium\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@gnosis.pm/dx-contracts/contracts/base/AuctioneerManaged.sol\":{\"keccak256\":\"0x26052b9cdb93c742160f9a9dd637fe25bc1aa15dc1ae6569f225cda5212d53ab\",\"urls\":[\"bzzr://a6eddffb3026dec9e1ed3ee4af4ff848834ef50b930eda15c9101af3aad8f156\"]},\"@gnosis.pm/dx-contracts/contracts/base/TokenWhitelist.sol\":{\"keccak256\":\"0x1467a08055d076763a99f1b80e1e1bcadfac08a062b0794ed9c911bce06f2176\",\"urls\":[\"bzzr://02da93facaf65ec209ff467740c0bb70b91342ec2e69eed1a06fe13b3aba6f50\"]},\"@gnosis.pm/dx-price-oracle/contracts/DutchXPriceOracle.sol\":{\"keccak256\":\"0xfc2acbdeb27b875291314fc963e961419a5fc09e13911f930f67bdc9c80a873d\",\"urls\":[\"bzzr://7cf0c62ea648744e630d627ca4a17aa0effdf529111ca7b859a613ddbd556e7c\"]},\"@gnosis.pm/dx-price-oracle/contracts/IDutchX.sol\":{\"keccak256\":\"0xb78a98a8aeb33608fa4441e36aa6a5c9eecb78c7c53ea687b5a72c1fbd1fcb75\",\"urls\":[\"bzzr://a9016630c00f08ab3067b7ede036d68edc0eb25f4a2126d861c6bbaf302e9247\"]},\"@gnosis.pm/dx-price-oracle/contracts/WhitelistPriceOracle.sol\":{\"keccak256\":\"0x29c04e4b7f6a142e1513cbbc9d301d3f0a5eaad8fc1ac11521ef3382b35036fd\",\"urls\":[\"bzzr://4d42cd5da132e7de7d86401a0e455a283127a9d22614c3377f4e864bbca20523\"]}},\"version\":1}",
  "bytecode": "0x608060405234801561001057600080fd5b506040516060806111858339810180604052606081101561003057600080fd5b508051602082015160409092015160028054600160a060020a0319908116600160a060020a0394851617909155600380548216948416949094179093556000805490931691161781556110fc90819061008990396000f3fe608060405234801561001057600080fd5b50600436106100ec576000357c0100000000000000000000000000000000000000000000000000000000900480635ec2c7bf116100a9578063796a807611610083578063796a8076146103955780637bf1a627146103bb5780637cd484e2146103c3578063969d6e3c146103f2576100ec565b80635ec2c7bf146102c057806365b0d711146102c85780636d1ea3fa1461036f576100ec565b806302ffc0b0146100f157806325071db0146101b157806331f2f705146101d55780633af32abf1461022057806341976e091461025a5780634440fd9714610280575b600080fd5b6101616004803603602081101561010757600080fd5b81019060208101813564010000000081111561012257600080fd5b82018360208201111561013457600080fd5b8035906020019184602083028401116401000000008311171561015657600080fd5b509092509050610442565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561019d578181015183820152602001610185565b505050509050019250505060405180910390f35b6101b96104fc565b60408051600160a060020a039092168252519081900360200190f35b610207600480360360608110156101eb57600080fd5b50600160a060020a03813516906020810135906040013561050b565b6040805192835260208301919091528051918290030190f35b6102466004803603602081101561023657600080fd5b5035600160a060020a0316610864565b604080519115158252519081900360200190f35b6102076004803603602081101561027057600080fd5b5035600160a060020a0316610882565b610207600480360360a081101561029657600080fd5b50600160a060020a03813516906020810135906040810135151590606081013590608001356108a2565b6101b9610a68565b61036d600480360360408110156102de57600080fd5b8101906020810181356401000000008111156102f957600080fd5b82018360208201111561030b57600080fd5b8035906020019184602083028401116401000000008311171561032d57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295505050503515159050610a77565b005b6102466004803603602081101561038557600080fd5b5035600160a060020a0316610b7d565b61036d600480360360208110156103ab57600080fd5b5035600160a060020a0316610b92565b6101b9610c57565b610246600480360360808110156103d957600080fd5b5080359060208101359060408101359060600135610c66565b610430600480360360a081101561040857600080fd5b50600160a060020a038135169060208101359060408101359060608101359060800135610de7565b60408051918252519081900360200190f35b60408051828152602080840282010190915260609082908290828015610472578160200160208202803883390190505b50905060005b828110156104f3576001600087878481811061049057fe5b90506020020135600160a060020a0316600160a060020a0316600160a060020a0316815260200190815260200160002060009054906101000a900460ff1682828151811015156104dc57fe5b911515602092830290910190910152600101610478565b50949350505050565b600254600160a060020a031681565b60008060608460405190808252806020026020018201604052801561053a578160200160208202803883390190505b509050606085604051908082528060200260200182016040528015610569578160200160208202803883390190505b509050606086604051908082528060200260200182016040528015610598578160200160208202803883390190505b5090506000805b888110156107ed57600254600354604080517f4bf8e7a2000000000000000000000000000000000000000000000000000000008152600160a060020a038e811660048301529283166024820152848c03600019016044820152815160009485941692634bf8e7a29260648082019391829003018186803b15801561062257600080fd5b505afa158015610636573d6000803e3d6000fd5b505050506040513d604081101561064c57600080fd5b508051602090910151885191935091508290829089908690811061066c57fe5b906020019060200201888681518110151561068357fe5b6020908102909101019190915252845160009081908790879081106106a457fe5b60209081029091010151905060005b858110156107dc576106f585858c858151811015156106ce57fe5b906020019060200201518c868151811015156106e657fe5b90602001906020020151610c66565b156107575781888781518110151561070957fe5b602090810290910101528015156107385785888881518110151561072957fe5b60209081029091010152610752565b85888481518110151561074757fe5b602090810290910101525b6107dc565b600186038114156107b657878781518110151561077057fe5b90602001906020020151888781518110151561078857fe5b60209081029091010152875186908990849081106107a257fe5b6020908102909101015294955085946107d4565b81925087828151811015156107c757fe5b9060200190602002015191505b6001016106b3565b50506001909301925061059f915050565b508060005b600260018b010481101561082257838281518110151561080e57fe5b6020908102909101015191506001016107f2565b50848181518110151561083157fe5b90602001906020020151848281518110151561084957fe5b90602001906020020151965096505050505050935093915050565b600160a060020a031660009081526001602052604090205460ff1690565b60008061089883600060016205eec060096108a2565b9094909350915050565b6000808480156108b857506108b687610864565b155b156108c857506000905080610a5e565b600354600254604080517f14584a9d000000000000000000000000000000000000000000000000000000008152600160a060020a038b81166004830152938416602482018190529151919360009384939116916314584a9d916044808301926020929190829003018186803b15801561094057600080fd5b505afa158015610954573d6000803e3d6000fd5b505050506040513d602081101561096a57600080fd5b5051905088151561098057809150429850610998565b6109928a60016000198401808d610de7565b60010191505b6002546040805160e060020a637420a32f028152600160a060020a038d8116600483015286811660248301526000198a870301604483015291516000939290921691637420a32f91606480820192602092909190829003018186803b158015610a0057600080fd5b505afa158015610a14573d6000803e3d6000fd5b505050506040513d6020811015610a2a57600080fd5b50519050808a03881015610a49575060009450849350610a5e92505050565b610a548b888561050b565b9096509450505050505b9550959350505050565b600054600160a060020a031681565b600054600160a060020a03163314610ac35760405160e560020a62461bcd02815260040180806020018281038252602a8152602001806110a7602a913960400191505060405180910390fd5b60005b8251811015610b785781600160008584815181101515610ae257fe5b602090810291909101810151600160a060020a03168252810191909152604001600020805460ff19169115159190911790558251839082908110610b2257fe5b90602001906020020151600160a060020a03167fc091bf3abd3a42f670f8ad1a6ad5b849311210403e1d85d6ac31f43114d5ca6e83604051808215151515815260200191505060405180910390a2600101610ac6565b505050565b60016020526000908152604090205460ff1681565b600054600160a060020a03163314610bde5760405160e560020a62461bcd02815260040180806020018281038252602a8152602001806110a7602a913960400191505060405180910390fd5b600160a060020a0381161515610c285760405160e560020a62461bcd0281526004018080602001828103825260268152602001806110816026913960400191505060405180910390fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600354600160a060020a031681565b6000831515610cbf576040805160e560020a62461bcd02815260206004820152601260248201527f756e646566696e6564206672616374696f6e0000000000000000000000000000604482015290519081900360640190fd5b811515610d16576040805160e560020a62461bcd02815260206004820152601260248201527f756e646566696e6564206672616374696f6e0000000000000000000000000000604482015290519081900360640190fd5b8482838702811515610d2457fe5b0414610d7a576040805160e560020a62461bcd02815260206004820152600860248201527f6f766572666c6f77000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b8284858502811515610d8857fe5b0414610dde576040805160e560020a62461bcd02815260206004820152600860248201527f6f766572666c6f77000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b50910291021090565b60008085840360011415610fa05760018611610ee5576002546003546040805160e060020a637420a32f028152600160a060020a038b811660048301529283166024820152604481018a905290519190921691637420a32f916064808301926020929190829003018186803b158015610e5f57600080fd5b505afa158015610e73573d6000803e3d6000fd5b505050506040513d6020811015610e8957600080fd5b5051905080831015610ee5576040805160e560020a62461bcd02815260206004820152600e60248201527f74696d6520746f6f20736d616c6c000000000000000000000000000000000000604482015290519081900360640190fd5b84841415610f97576002546003546040805160e060020a637420a32f028152600160a060020a038b8116600483015292831660248201526044810188905290519190921691637420a32f916064808301926020929190829003018186803b158015610f4f57600080fd5b505afa158015610f63573d6000803e3d6000fd5b505050506040513d6020811015610f7957600080fd5b5051905080831015610f8e5785915050611077565b83915050611077565b85915050611077565b600060028786016002546003546040805160e060020a637420a32f028152600160a060020a038e811660048301529283166024820152949093046044850181905292519294501691637420a32f916064808301926020929190829003018186803b15801561100d57600080fd5b505afa158015611021573d6000803e3d6000fd5b505050506040513d602081101561103757600080fd5b5051915081841015611059576110508888888488610de7565b92505050611077565b8184141561106a5791506110779050565b6110508882888888610de7565b9594505050505056fe5468652061756374696f6e656572206d75737420626520612076616c696420616464726573734f6e6c79207468652061756374696f6e6565722063616e206e6f6d696e6174652061206e6577206f6e65a165627a7a72305820d518038eca296e6c588f58bd3cac87487ab9ddde6e3a99125131b650c017f1fd0029",
  "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100ec576000357c0100000000000000000000000000000000000000000000000000000000900480635ec2c7bf116100a9578063796a807611610083578063796a8076146103955780637bf1a627146103bb5780637cd484e2146103c3578063969d6e3c146103f2576100ec565b80635ec2c7bf146102c057806365b0d711146102c85780636d1ea3fa1461036f576100ec565b806302ffc0b0146100f157806325071db0146101b157806331f2f705146101d55780633af32abf1461022057806341976e091461025a5780634440fd9714610280575b600080fd5b6101616004803603602081101561010757600080fd5b81019060208101813564010000000081111561012257600080fd5b82018360208201111561013457600080fd5b8035906020019184602083028401116401000000008311171561015657600080fd5b509092509050610442565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561019d578181015183820152602001610185565b505050509050019250505060405180910390f35b6101b96104fc565b60408051600160a060020a039092168252519081900360200190f35b610207600480360360608110156101eb57600080fd5b50600160a060020a03813516906020810135906040013561050b565b6040805192835260208301919091528051918290030190f35b6102466004803603602081101561023657600080fd5b5035600160a060020a0316610864565b604080519115158252519081900360200190f35b6102076004803603602081101561027057600080fd5b5035600160a060020a0316610882565b610207600480360360a081101561029657600080fd5b50600160a060020a03813516906020810135906040810135151590606081013590608001356108a2565b6101b9610a68565b61036d600480360360408110156102de57600080fd5b8101906020810181356401000000008111156102f957600080fd5b82018360208201111561030b57600080fd5b8035906020019184602083028401116401000000008311171561032d57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295505050503515159050610a77565b005b6102466004803603602081101561038557600080fd5b5035600160a060020a0316610b7d565b61036d600480360360208110156103ab57600080fd5b5035600160a060020a0316610b92565b6101b9610c57565b610246600480360360808110156103d957600080fd5b5080359060208101359060408101359060600135610c66565b610430600480360360a081101561040857600080fd5b50600160a060020a038135169060208101359060408101359060608101359060800135610de7565b60408051918252519081900360200190f35b60408051828152602080840282010190915260609082908290828015610472578160200160208202803883390190505b50905060005b828110156104f3576001600087878481811061049057fe5b90506020020135600160a060020a0316600160a060020a0316600160a060020a0316815260200190815260200160002060009054906101000a900460ff1682828151811015156104dc57fe5b911515602092830290910190910152600101610478565b50949350505050565b600254600160a060020a031681565b60008060608460405190808252806020026020018201604052801561053a578160200160208202803883390190505b509050606085604051908082528060200260200182016040528015610569578160200160208202803883390190505b509050606086604051908082528060200260200182016040528015610598578160200160208202803883390190505b5090506000805b888110156107ed57600254600354604080517f4bf8e7a2000000000000000000000000000000000000000000000000000000008152600160a060020a038e811660048301529283166024820152848c03600019016044820152815160009485941692634bf8e7a29260648082019391829003018186803b15801561062257600080fd5b505afa158015610636573d6000803e3d6000fd5b505050506040513d604081101561064c57600080fd5b508051602090910151885191935091508290829089908690811061066c57fe5b906020019060200201888681518110151561068357fe5b6020908102909101019190915252845160009081908790879081106106a457fe5b60209081029091010151905060005b858110156107dc576106f585858c858151811015156106ce57fe5b906020019060200201518c868151811015156106e657fe5b90602001906020020151610c66565b156107575781888781518110151561070957fe5b602090810290910101528015156107385785888881518110151561072957fe5b60209081029091010152610752565b85888481518110151561074757fe5b602090810290910101525b6107dc565b600186038114156107b657878781518110151561077057fe5b90602001906020020151888781518110151561078857fe5b60209081029091010152875186908990849081106107a257fe5b6020908102909101015294955085946107d4565b81925087828151811015156107c757fe5b9060200190602002015191505b6001016106b3565b50506001909301925061059f915050565b508060005b600260018b010481101561082257838281518110151561080e57fe5b6020908102909101015191506001016107f2565b50848181518110151561083157fe5b90602001906020020151848281518110151561084957fe5b90602001906020020151965096505050505050935093915050565b600160a060020a031660009081526001602052604090205460ff1690565b60008061089883600060016205eec060096108a2565b9094909350915050565b6000808480156108b857506108b687610864565b155b156108c857506000905080610a5e565b600354600254604080517f14584a9d000000000000000000000000000000000000000000000000000000008152600160a060020a038b81166004830152938416602482018190529151919360009384939116916314584a9d916044808301926020929190829003018186803b15801561094057600080fd5b505afa158015610954573d6000803e3d6000fd5b505050506040513d602081101561096a57600080fd5b5051905088151561098057809150429850610998565b6109928a60016000198401808d610de7565b60010191505b6002546040805160e060020a637420a32f028152600160a060020a038d8116600483015286811660248301526000198a870301604483015291516000939290921691637420a32f91606480820192602092909190829003018186803b158015610a0057600080fd5b505afa158015610a14573d6000803e3d6000fd5b505050506040513d6020811015610a2a57600080fd5b50519050808a03881015610a49575060009450849350610a5e92505050565b610a548b888561050b565b9096509450505050505b9550959350505050565b600054600160a060020a031681565b600054600160a060020a03163314610ac35760405160e560020a62461bcd02815260040180806020018281038252602a8152602001806110a7602a913960400191505060405180910390fd5b60005b8251811015610b785781600160008584815181101515610ae257fe5b602090810291909101810151600160a060020a03168252810191909152604001600020805460ff19169115159190911790558251839082908110610b2257fe5b90602001906020020151600160a060020a03167fc091bf3abd3a42f670f8ad1a6ad5b849311210403e1d85d6ac31f43114d5ca6e83604051808215151515815260200191505060405180910390a2600101610ac6565b505050565b60016020526000908152604090205460ff1681565b600054600160a060020a03163314610bde5760405160e560020a62461bcd02815260040180806020018281038252602a8152602001806110a7602a913960400191505060405180910390fd5b600160a060020a0381161515610c285760405160e560020a62461bcd0281526004018080602001828103825260268152602001806110816026913960400191505060405180910390fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600354600160a060020a031681565b6000831515610cbf576040805160e560020a62461bcd02815260206004820152601260248201527f756e646566696e6564206672616374696f6e0000000000000000000000000000604482015290519081900360640190fd5b811515610d16576040805160e560020a62461bcd02815260206004820152601260248201527f756e646566696e6564206672616374696f6e0000000000000000000000000000604482015290519081900360640190fd5b8482838702811515610d2457fe5b0414610d7a576040805160e560020a62461bcd02815260206004820152600860248201527f6f766572666c6f77000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b8284858502811515610d8857fe5b0414610dde576040805160e560020a62461bcd02815260206004820152600860248201527f6f766572666c6f77000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b50910291021090565b60008085840360011415610fa05760018611610ee5576002546003546040805160e060020a637420a32f028152600160a060020a038b811660048301529283166024820152604481018a905290519190921691637420a32f916064808301926020929190829003018186803b158015610e5f57600080fd5b505afa158015610e73573d6000803e3d6000fd5b505050506040513d6020811015610e8957600080fd5b5051905080831015610ee5576040805160e560020a62461bcd02815260206004820152600e60248201527f74696d6520746f6f20736d616c6c000000000000000000000000000000000000604482015290519081900360640190fd5b84841415610f97576002546003546040805160e060020a637420a32f028152600160a060020a038b8116600483015292831660248201526044810188905290519190921691637420a32f916064808301926020929190829003018186803b158015610f4f57600080fd5b505afa158015610f63573d6000803e3d6000fd5b505050506040513d6020811015610f7957600080fd5b5051905080831015610f8e5785915050611077565b83915050611077565b85915050611077565b600060028786016002546003546040805160e060020a637420a32f028152600160a060020a038e811660048301529283166024820152949093046044850181905292519294501691637420a32f916064808301926020929190829003018186803b15801561100d57600080fd5b505afa158015611021573d6000803e3d6000fd5b505050506040513d602081101561103757600080fd5b5051915081841015611059576110508888888488610de7565b92505050611077565b8184141561106a5791506110779050565b6110508882888888610de7565b9594505050505056fe5468652061756374696f6e656572206d75737420626520612076616c696420616464726573734f6e6c79207468652061756374696f6e6565722063616e206e6f6d696e6174652061206e6577206f6e65a165627a7a72305820d518038eca296e6c588f58bd3cac87487ab9ddde6e3a99125131b650c017f1fd0029",
  "sourceMap": "278:395:73:-;;;351:174;8:9:-1;5:2;;;30:1;27;20:12;5:2;351:174:73;;;;;;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;351:174:73;;;;;;;;;;;561:6:71;:16;;-1:-1:-1;;;;;;561:16:71;;;-1:-1:-1;;;;;561:16:71;;;;;;;587:8;:20;;;;;;;;;;;;;;-1:-1:-1;494:24:73;;;;;;;;;;278:395;;;;;;;;",
  "deployedSourceMap": "278:395:73:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;278:395:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;539:369:70;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;539:369:70;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;539:369:70;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;539:369:70;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;539:369:70;;-1:-1:-1;539:369:70;-1:-1:-1;539:369:70;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;539:369:70;;;;;;;;;;;;;;;;;253:20:71;;;:::i;:::-;;;;-1:-1:-1;;;;;253:20:71;;;;;;;;;;;;;;3641:3593;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3641:3593:71;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;531:140:73;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;531:140:73;-1:-1:-1;;;;;531:140:73;;:::i;:::-;;;;;;;;;;;;;;;;;;863:175:71;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;863:175:71;-1:-1:-1;;;;;863:175:71;;:::i;1757:1274::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;1757:1274:71;;;;;;;;;;;;;;;;;;;;;;;;;:::i;116:25:65:-;;;:::i;918:255:70:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;918:255:70;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;918:255:70;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;918:255:70;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;918:255:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;918:255:70;;-1:-1:-1;;;;918:255:70;;;;-1:-1:-1;918:255:70;:::i;:::-;;273:46;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;273:46:70;-1:-1:-1;;;;;273:46:70;;:::i;148:196:65:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;148:196:65;-1:-1:-1;;;;;148:196:65;;:::i;279:23:71:-;;;:::i;10310:405::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;10310:405:71;;;;;;;;;;;;;;;;;:::i;7962:1993::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;7962:1993:71;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;539:369:70;735:18;;;;;;;;;;;;;;;;635:13;;674:16;;635:13;;674:16;735:18;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;735:18:70;-1:-1:-1;708:45:70;-1:-1:-1;769:6:70;764:110;785:6;781:1;:10;764:110;;;828:14;:35;843:16;;860:1;843:19;;;;;;;;;;;;;-1:-1:-1;;;;;843:19:70;-1:-1:-1;;;;;828:35:70;-1:-1:-1;;;;;828:35:70;;;;;;;;;;;;;;;;;;;;;;812:10;823:1;812:13;;;;;;;;;;:51;;;:13;;;;;;;;;;:51;793:3;;764:110;;;-1:-1:-1;891:10:70;539:369;-1:-1:-1;;;;539:369:70:o;253:20:71:-;;;-1:-1:-1;;;;;253:20:71;;:::o;3641:3593::-;3801:4;3807;4356:18;4388:16;4377:28;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;4377:28:71;;4356:49;;4415:18;4447:16;4436:28;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;4436:28:71;;4415:49;;4474:33;4521:16;4510:28;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;4510:28:71;-1:-1:-1;4474:64:71;-1:-1:-1;4548:20:71;;4579:1767;4600:16;4596:1;:20;4579:1767;;;4816:6;;4852:8;;4816:67;;;;;;-1:-1:-1;;;;;4816:67:71;;;;;;;4852:8;;;4816:67;;;;4862:20;;;-1:-1:-1;;4862:20:71;4816:67;;;;;;4794:8;;;;4816:6;;:28;;:67;;;;;;;;;;;:6;:67;;;5:2:-1;;;;30:1;27;20:12;5:2;4816:67:71;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4816:67:71;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4816:67:71;;;;;;;4899:7;;4816:67;;-1:-1:-1;4816:67:71;-1:-1:-1;4816:67:71;;;;4899:4;;4904:1;;4899:7;;;;;;;;;;;;;4908:4;4913:1;4908:7;;;;;;;;;;;;;;;;;;4898:31;;;;;5142:36;;5097:18;;;;5142:19;;5162:15;;5142:36;;;;;;;;;;;;;;;;-1:-1:-1;5198:6:71;5193:1143;5214:1;5210;:5;5193:1143;;;5244:45;5254:3;5259;5264:4;5269:5;5264:11;;;;;;;;;;;;;;;;;;5277:4;5282:5;5277:11;;;;;;;;;;;;;;;;;;5244:9;:45::i;:::-;5240:603;;;5400:5;5375:19;5395:1;5375:22;;;;;;;;;;;;;;;;;;:30;5432:6;;5428:369;;;5559:1;5520:19;5540:15;5520:36;;;;;;;;;;;;;;;;;;:40;5428:369;;;5773:1;5736:19;5756:13;5736:34;;;;;;;;;;;;;;;;;;:38;5428:369;5819:5;;5240:603;5874:1;5870;:5;5865:1;:10;5861:461;;;5973:19;5993:15;5973:36;;;;;;;;;;;;;;;;;;5948:19;5968:1;5948:22;;;;;;;;;;;;;;;;;;:61;6031:26;;6060:1;;6031:19;;6051:5;;6031:26;;;;;;;;;;;;;;:30;6101:1;;-1:-1:-1;6101:1:71;;5861:461;;;6242:5;6226:21;;6277:19;6297:5;6277:26;;;;;;;;;;;;;;;;;;6269:34;;5861:461;5217:3;;5193:1143;;;-1:-1:-1;;4618:3:71;;;;;-1:-1:-1;4579:1767:71;;-1:-1:-1;;4579:1767:71;;-1:-1:-1;6403:15:71;6390:10;6470:113;6516:1;6511;6492:20;;6491:26;6487:1;:30;6470:113;;;6546:19;6566:5;6546:26;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6519:3:71;;6470:113;;;;7202:4;7207:5;7202:11;;;;;;;;;;;;;;;;;;7215:4;7220:5;7215:11;;;;;;;;;;;;;;;;;;7194:33;;;;;;;;;3641:3593;;;;;;:::o;531:140:73:-;-1:-1:-1;;;;;643:21:73;615:4;643:21;;;:14;:21;;;;;;;;;531:140::o;863:175:71:-;941:8;951;988:43;1003:5;1010:1;1013:4;1019:8;1029:1;988:14;:43::i;:::-;975:56;;;;-1:-1:-1;863:175:71;-1:-1:-1;;863:175:71:o;1757:1274::-;1970:8;1980;2035:18;:43;;;;;2058:20;2072:5;2058:13;:20::i;:::-;2057:21;2035:43;2031:87;;;-1:-1:-1;2102:1:71;;-1:-1:-1;2102:1:71;2094:13;;2031:87;2150:8;;2222:6;;:42;;;;;;-1:-1:-1;;;;;2222:42:71;;;;;;;2150:8;;;2222:42;;;;;;;;2150:8;;2128:19;;;;2222:6;;;:22;;:42;;;;;;;;;;;;;;:6;:42;;;5:2:-1;;;;30:1;27;20:12;5:2;2222:42:71;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2222:42:71;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2222:42:71;;-1:-1:-1;2279:9:71;;2275:420;;;2319:18;2304:33;;2358:3;2351:10;;2275:420;;;2580:100;2600:5;2607:1;-1:-1:-1;;2627:22:71;;;2675:4;2580:19;:100::i;:::-;2683:1;2580:104;2565:119;;2275:420;2751:6;;:79;;;-1:-1:-1;;;;;2751:79:71;;-1:-1:-1;;;;;2751:79:71;;;;;;;;;;;;;;-1:-1:-1;;2794:31:71;;;:35;2751:79;;;;;;2731:17;;2751:6;;;;;:22;;:79;;;;;;;;;;;;;;;:6;:79;;;5:2:-1;;;;30:1;27;20:12;5:2;2751:79:71;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2751:79:71;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2751:79:71;;-1:-1:-1;2845:19:71;;;:39;-1:-1:-1;2841:184:71;;;-1:-1:-1;2908:1:71;;-1:-1:-1;2908:1:71;;-1:-1:-1;2900:13:71;;-1:-1:-1;;;2900:13:71;2841:184;2957:57;2976:5;2983:16;3001:12;2957:18;:57::i;:::-;2944:70;;-1:-1:-1;2944:70:71;-1:-1:-1;1757:1274:71;;;;;;;;;;;;;:::o;116:25:65:-;;;-1:-1:-1;;;;;116:25:65;;:::o;918:255:70:-;578:10:65;;-1:-1:-1;;;;;578:10:65;564;:24;556:79;;;;-1:-1:-1;;;;;556:79:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1025:6:70;1020:147;1041:5;:12;1037:1;:16;1020:147;;;1101:8;1074:14;:24;1089:5;1095:1;1089:8;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1074:24:70;;;;;;;;;;;-1:-1:-1;1074:24:70;:35;;-1:-1:-1;;1074:35:70;;;;;;;;;;1137:8;;;;1143:1;;1137:8;;;;;;;;;;;;;;-1:-1:-1;;;;;1128:28:70;;1147:8;1128:28;;;;;;;;;;;;;;;;;;;;;;1055:3;;1020:147;;;;918:255;;:::o;273:46::-;;;;;;;;;;;;;;;:::o;148:196:65:-;578:10;;-1:-1:-1;;;;;578:10:65;564;:24;556:79;;;;-1:-1:-1;;;;;556:79:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;235:25:65;;;;227:76;;;;-1:-1:-1;;;;;227:76:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;313:10;:24;;-1:-1:-1;;313:24:65;-1:-1:-1;;;;;313:24:65;;;;;;;;;;148:196::o;279:23:71:-;;;-1:-1:-1;;;;;279:23:71;;:::o;10310:405::-;10418:4;10467:9;;;10459:40;;;;;-1:-1:-1;;;;;10459:40:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;10517:9;;;10509:40;;;;;-1:-1:-1;;;;;10509:40:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;10589:4;10581;10574;10567;:11;:18;;;;;;;;:26;10559:47;;;;;-1:-1:-1;;;;;10559:47:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;10646:4;10638;10631;10624;:11;:18;;;;;;;;:26;10616:47;;;;;-1:-1:-1;;;;;10616:47:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;10696:11:71;;10682;;:25;;10310:405::o;7962:1993::-;8167:4;8500:17;8545:10;8532;:23;8559:1;8532:28;8528:884;;;8630:1;8616:15;;8612:229;;8666:6;;8696:8;;8666:51;;;-1:-1:-1;;;;;8666:51:71;;-1:-1:-1;;;;;8666:51:71;;;;;;;8696:8;;;8666:51;;;;;;;;;;;;:6;;;;;:22;;:51;;;;;;;;;;;;;;:6;:51;;;5:2:-1;;;;30:1;27;20:12;5:2;8666:51:71;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;8666:51:71;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8666:51:71;;-1:-1:-1;8741:19:71;;;8737:90;;;8784:24;;;-1:-1:-1;;;;;8784:24:71;;;;;;;;;;;;;;;;;;;;;;;;;;;8737:90;8873:17;8859:10;:31;8855:547;;;8925:6;;8955:8;;8925:51;;;-1:-1:-1;;;;;8925:51:71;;-1:-1:-1;;;;;8925:51:71;;;;;;;8955:8;;;8925:51;;;;;;;;;;;;:6;;;;;:22;;:51;;;;;;;;;;;;;;:6;:51;;;5:2:-1;;;;30:1;27;20:12;5:2;8925:51:71;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;8925:51:71;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8925:51:71;;-1:-1:-1;8999:19:71;;;8995:217;;;9049:10;9042:17;;;;;8995:217;9183:10;9176:17;;;;;8855:547;9377:10;9370:17;;;;;8855:547;9422:8;9461:1;9434:23;;;9487:6;;9517:8;;9487:44;;;-1:-1:-1;;;;;9487:44:71;;-1:-1:-1;;;;;9487:44:71;;;;;;;9517:8;;;9487:44;;;;9433:29;;;;9487:44;;;;;;;;9433:29;;-1:-1:-1;9487:6:71;;:22;;:44;;;;;;;;;;;;;;:6;:44;;;5:2:-1;;;;30:1;27;20:12;5:2;9487:44:71;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;9487:44:71;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;9487:44:71;;-1:-1:-1;9546:19:71;;;9542:407;;;9627:68;9647:5;9654:10;9666:17;9685:3;9690:4;9627:19;:68::i;:::-;9620:75;;;;;;9542:407;9724:12;9716:4;:20;9712:237;;;9790:3;-1:-1:-1;9783:10:71;;-1:-1:-1;9783:10:71;9712:237;9870:68;9890:5;9897:3;9902:17;9921:10;9933:4;9870:19;:68::i;7962:1993::-;;;;;;;;:::o",
  "source": "pragma solidity ^0.5.0;\n\nimport \"./DutchXPriceOracle.sol\";\nimport \"@gnosis.pm/dx-contracts/contracts/base/TokenWhitelist.sol\";\n\n\n/// @title A DutchXPriceOracle that uses it's own whitelisted tokens instead of the ones of the DutchX\n/// @author Angel Rodriguez - angel@gnosis.pm\ncontract WhitelistPriceOracle is TokenWhitelist, DutchXPriceOracle {\n    constructor(DutchX _dutchX, address _ethToken, address _auctioneer)\n        DutchXPriceOracle(_dutchX, _ethToken)\n        public\n    {\n        auctioneer = _auctioneer;\n    }\n\n    function isWhitelisted(address token) \n        public\n        view\n        returns (bool) \n    {\n        return approvedTokens[token];\n    }\n}",
  "sourcePath": "@gnosis.pm/dx-price-oracle/contracts/WhitelistPriceOracle.sol",
  "ast": {
    "absolutePath": "@gnosis.pm/dx-price-oracle/contracts/WhitelistPriceOracle.sol",
    "exportedSymbols": {
      "WhitelistPriceOracle": [
        20504
      ]
    },
    "id": 20505,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 20467,
        "literals": [
          "solidity",
          "^",
          "0.5",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:73"
      },
      {
        "absolutePath": "@gnosis.pm/dx-price-oracle/contracts/DutchXPriceOracle.sol",
        "file": "./DutchXPriceOracle.sol",
        "id": 20468,
        "nodeType": "ImportDirective",
        "scope": 20505,
        "sourceUnit": 20423,
        "src": "25:33:73",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@gnosis.pm/dx-contracts/contracts/base/TokenWhitelist.sol",
        "file": "@gnosis.pm/dx-contracts/contracts/base/TokenWhitelist.sol",
        "id": 20469,
        "nodeType": "ImportDirective",
        "scope": 20505,
        "sourceUnit": 19857,
        "src": "59:67:73",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 20470,
              "name": "TokenWhitelist",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 19856,
              "src": "311:14:73",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_TokenWhitelist_$19856",
                "typeString": "contract TokenWhitelist"
              }
            },
            "id": 20471,
            "nodeType": "InheritanceSpecifier",
            "src": "311:14:73"
          },
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 20472,
              "name": "DutchXPriceOracle",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 20422,
              "src": "327:17:73",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_DutchXPriceOracle_$20422",
                "typeString": "contract DutchXPriceOracle"
              }
            },
            "id": 20473,
            "nodeType": "InheritanceSpecifier",
            "src": "327:17:73"
          }
        ],
        "contractDependencies": [
          19354,
          19856,
          20422
        ],
        "contractKind": "contract",
        "documentation": "@title A DutchXPriceOracle that uses it's own whitelisted tokens instead of the ones of the DutchX\n @author Angel Rodriguez - angel@gnosis.pm",
        "fullyImplemented": true,
        "id": 20504,
        "linearizedBaseContracts": [
          20504,
          20422,
          19856,
          19354
        ],
        "name": "WhitelistPriceOracle",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": {
              "id": 20490,
              "nodeType": "Block",
              "src": "484:41:73",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 20488,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 20486,
                      "name": "auctioneer",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 19320,
                      "src": "494:10:73",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 20487,
                      "name": "_auctioneer",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 20479,
                      "src": "507:11:73",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "494:24:73",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "id": 20489,
                  "nodeType": "ExpressionStatement",
                  "src": "494:24:73"
                }
              ]
            },
            "documentation": null,
            "id": 20491,
            "implemented": true,
            "kind": "constructor",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 20482,
                    "name": "_dutchX",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 20475,
                    "src": "445:7:73",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_DutchX_$20465",
                      "typeString": "contract DutchX"
                    }
                  },
                  {
                    "argumentTypes": null,
                    "id": 20483,
                    "name": "_ethToken",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 20477,
                    "src": "454:9:73",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 20484,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 20481,
                  "name": "DutchXPriceOracle",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 20422,
                  "src": "427:17:73",
                  "typeDescriptions": {
                    "typeIdentifier": "t_type$_t_contract$_DutchXPriceOracle_$20422_$",
                    "typeString": "type(contract DutchXPriceOracle)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "427:37:73"
              }
            ],
            "name": "",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 20480,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 20475,
                  "name": "_dutchX",
                  "nodeType": "VariableDeclaration",
                  "scope": 20491,
                  "src": "363:14:73",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_DutchX_$20465",
                    "typeString": "contract DutchX"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 20474,
                    "name": "DutchX",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 20465,
                    "src": "363:6:73",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_DutchX_$20465",
                      "typeString": "contract DutchX"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 20477,
                  "name": "_ethToken",
                  "nodeType": "VariableDeclaration",
                  "scope": 20491,
                  "src": "379:17:73",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 20476,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "379:7:73",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 20479,
                  "name": "_auctioneer",
                  "nodeType": "VariableDeclaration",
                  "scope": 20491,
                  "src": "398:19:73",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 20478,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "398:7:73",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "362:56:73"
            },
            "returnParameters": {
              "id": 20485,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "484:0:73"
            },
            "scope": 20504,
            "src": "351:174:73",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 20502,
              "nodeType": "Block",
              "src": "626:45:73",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "baseExpression": {
                      "argumentTypes": null,
                      "id": 20498,
                      "name": "approvedTokens",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 19761,
                      "src": "643:14:73",
                      "typeDescriptions": {
                        "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
                        "typeString": "mapping(address => bool)"
                      }
                    },
                    "id": 20500,
                    "indexExpression": {
                      "argumentTypes": null,
                      "id": 20499,
                      "name": "token",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 20493,
                      "src": "658:5:73",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "IndexAccess",
                    "src": "643:21:73",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 20497,
                  "id": 20501,
                  "nodeType": "Return",
                  "src": "636:28:73"
                }
              ]
            },
            "documentation": null,
            "id": 20503,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "isWhitelisted",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 20494,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 20493,
                  "name": "token",
                  "nodeType": "VariableDeclaration",
                  "scope": 20503,
                  "src": "554:13:73",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 20492,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "554:7:73",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "553:15:73"
            },
            "returnParameters": {
              "id": 20497,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 20496,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 20503,
                  "src": "615:4:73",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 20495,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "615:4:73",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "614:6:73"
            },
            "scope": 20504,
            "src": "531:140:73",
            "stateMutability": "view",
            "superFunction": 20421,
            "visibility": "public"
          }
        ],
        "scope": 20505,
        "src": "278:395:73"
      }
    ],
    "src": "0:673:73"
  },
  "legacyAST": {
    "absolutePath": "@gnosis.pm/dx-price-oracle/contracts/WhitelistPriceOracle.sol",
    "exportedSymbols": {
      "WhitelistPriceOracle": [
        20504
      ]
    },
    "id": 20505,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 20467,
        "literals": [
          "solidity",
          "^",
          "0.5",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:73"
      },
      {
        "absolutePath": "@gnosis.pm/dx-price-oracle/contracts/DutchXPriceOracle.sol",
        "file": "./DutchXPriceOracle.sol",
        "id": 20468,
        "nodeType": "ImportDirective",
        "scope": 20505,
        "sourceUnit": 20423,
        "src": "25:33:73",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@gnosis.pm/dx-contracts/contracts/base/TokenWhitelist.sol",
        "file": "@gnosis.pm/dx-contracts/contracts/base/TokenWhitelist.sol",
        "id": 20469,
        "nodeType": "ImportDirective",
        "scope": 20505,
        "sourceUnit": 19857,
        "src": "59:67:73",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 20470,
              "name": "TokenWhitelist",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 19856,
              "src": "311:14:73",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_TokenWhitelist_$19856",
                "typeString": "contract TokenWhitelist"
              }
            },
            "id": 20471,
            "nodeType": "InheritanceSpecifier",
            "src": "311:14:73"
          },
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 20472,
              "name": "DutchXPriceOracle",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 20422,
              "src": "327:17:73",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_DutchXPriceOracle_$20422",
                "typeString": "contract DutchXPriceOracle"
              }
            },
            "id": 20473,
            "nodeType": "InheritanceSpecifier",
            "src": "327:17:73"
          }
        ],
        "contractDependencies": [
          19354,
          19856,
          20422
        ],
        "contractKind": "contract",
        "documentation": "@title A DutchXPriceOracle that uses it's own whitelisted tokens instead of the ones of the DutchX\n @author Angel Rodriguez - angel@gnosis.pm",
        "fullyImplemented": true,
        "id": 20504,
        "linearizedBaseContracts": [
          20504,
          20422,
          19856,
          19354
        ],
        "name": "WhitelistPriceOracle",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": {
              "id": 20490,
              "nodeType": "Block",
              "src": "484:41:73",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 20488,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 20486,
                      "name": "auctioneer",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 19320,
                      "src": "494:10:73",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 20487,
                      "name": "_auctioneer",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 20479,
                      "src": "507:11:73",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "494:24:73",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "id": 20489,
                  "nodeType": "ExpressionStatement",
                  "src": "494:24:73"
                }
              ]
            },
            "documentation": null,
            "id": 20491,
            "implemented": true,
            "kind": "constructor",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 20482,
                    "name": "_dutchX",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 20475,
                    "src": "445:7:73",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_DutchX_$20465",
                      "typeString": "contract DutchX"
                    }
                  },
                  {
                    "argumentTypes": null,
                    "id": 20483,
                    "name": "_ethToken",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 20477,
                    "src": "454:9:73",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 20484,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 20481,
                  "name": "DutchXPriceOracle",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 20422,
                  "src": "427:17:73",
                  "typeDescriptions": {
                    "typeIdentifier": "t_type$_t_contract$_DutchXPriceOracle_$20422_$",
                    "typeString": "type(contract DutchXPriceOracle)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "427:37:73"
              }
            ],
            "name": "",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 20480,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 20475,
                  "name": "_dutchX",
                  "nodeType": "VariableDeclaration",
                  "scope": 20491,
                  "src": "363:14:73",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_DutchX_$20465",
                    "typeString": "contract DutchX"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 20474,
                    "name": "DutchX",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 20465,
                    "src": "363:6:73",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_DutchX_$20465",
                      "typeString": "contract DutchX"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 20477,
                  "name": "_ethToken",
                  "nodeType": "VariableDeclaration",
                  "scope": 20491,
                  "src": "379:17:73",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 20476,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "379:7:73",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 20479,
                  "name": "_auctioneer",
                  "nodeType": "VariableDeclaration",
                  "scope": 20491,
                  "src": "398:19:73",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 20478,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "398:7:73",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "362:56:73"
            },
            "returnParameters": {
              "id": 20485,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "484:0:73"
            },
            "scope": 20504,
            "src": "351:174:73",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 20502,
              "nodeType": "Block",
              "src": "626:45:73",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "baseExpression": {
                      "argumentTypes": null,
                      "id": 20498,
                      "name": "approvedTokens",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 19761,
                      "src": "643:14:73",
                      "typeDescriptions": {
                        "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
                        "typeString": "mapping(address => bool)"
                      }
                    },
                    "id": 20500,
                    "indexExpression": {
                      "argumentTypes": null,
                      "id": 20499,
                      "name": "token",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 20493,
                      "src": "658:5:73",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "IndexAccess",
                    "src": "643:21:73",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 20497,
                  "id": 20501,
                  "nodeType": "Return",
                  "src": "636:28:73"
                }
              ]
            },
            "documentation": null,
            "id": 20503,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "isWhitelisted",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 20494,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 20493,
                  "name": "token",
                  "nodeType": "VariableDeclaration",
                  "scope": 20503,
                  "src": "554:13:73",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 20492,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "554:7:73",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "553:15:73"
            },
            "returnParameters": {
              "id": 20497,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 20496,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 20503,
                  "src": "615:4:73",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 20495,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "615:4:73",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "614:6:73"
            },
            "scope": 20504,
            "src": "531:140:73",
            "stateMutability": "view",
            "superFunction": 20421,
            "visibility": "public"
          }
        ],
        "scope": 20505,
        "src": "278:395:73"
      }
    ],
    "src": "0:673:73"
  },
  "compiler": {
    "name": "solc",
    "version": "0.5.4+commit.9549d8ff.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.0.9",
  "updatedAt": "2019-05-28T21:12:52.478Z",
  "devdoc": {
    "author": "Angel Rodriguez - angel@gnosis.pm",
    "methods": {
      "computeAuctionIndex(address,uint256,uint256,uint256,uint256)": {
        "details": "compute largest auctionIndex with clearing time smaller than desired time. Use case: user provides a time and this function will find the largest auctionIndex that had a cleared auction before that time. It is used to get historical price oracle values",
        "params": {
          "initialUpperBound": "initial upper bound when this recursive fn is called for the first time",
          "lowerBound": "lowerBound of result. Recommended that it is > 0, because 0th price is set by whoever adds token pair",
          "time": "desired time",
          "token": "address of ERC-20 token in question",
          "upperBound": "current upper bound of result"
        },
        "return": "largest auctionIndex s.t. clearingTime[auctionIndex] <= time"
      },
      "getApprovedAddressesOfList(address[])": {
        "details": "for quick overview of approved Tokens",
        "params": {
          "addressesToCheck": "are the ERC-20 token addresses to be checked whether they are approved"
        }
      },
      "getPrice(address)": {
        "params": {
          "token": "address of ERC-20 token in question"
        },
        "return": "The numerator of the price of the tokenThe denominator of the price of the token"
      },
      "getPriceCustom(address,uint256,bool,uint256,uint256)": {
        "details": "More fine-grained price oracle for token `token.address()`",
        "params": {
          "maximumTimePeriod": "maximum time period between clearing time of last auction and `time`",
          "numberOfAuctions": "how many auctions to consider. Contract is safe only for odd numbers.",
          "requireWhitelisted": "Require the token be whitelisted on the DutchX? (Unwhitelisted addresses might not conform to the ERC-20 standard and/or might be malicious)",
          "time": "0 for current price, a Unix timestamp for a price at any point in time",
          "token": "address of ERC-20 token in question"
        },
        "return": "The numerator of the price of the tokenThe denominator of the price of the token"
      },
      "getPricesAndMedian(address,uint256,uint256)": {
        "details": "search starts at auctionIndex - 1. The reason for this is we expect the most common use case to be the latest auction index and for that the clearingTime is not available yet. So we need to start at the one before",
        "params": {
          "auctionIndex": "search will begin at auctionIndex - 1",
          "numberOfAuctions": "how many auctions to consider. Contract is safe only for add numbers",
          "token": "address of ERC-20 token in question"
        },
        "return": "The numerator of the price of the tokenThe denominator of the price of the token"
      },
      "isSmaller(uint256,uint256,uint256,uint256)": {
        "params": {
          "den1": "Denominator of first fraction",
          "den2": "Denominator of second fraction",
          "num1": "Numerator of first fraction",
          "num2": "Numerator of second fraction"
        },
        "return": "bool - whether first fraction is (strictly) smaller than second"
      }
    },
    "title": "A DutchXPriceOracle that uses it's own whitelisted tokens instead of the ones of the DutchX"
  },
  "userdoc": {
    "methods": {
      "getPrice(address)": {
        "notice": "Get price, in ETH, of an ERC-20 token `token.address()`"
      },
      "getPricesAndMedian(address,uint256,uint256)": {
        "notice": "gets prices, starting "
      },
      "isSmaller(uint256,uint256,uint256,uint256)": {
        "notice": "compares two fractions and returns if first is smaller"
      }
    }
  }
}