[
  {
    "name": "runCount",
    "type": "function",
    "stateMutability": "view",
    "inputs": [
      {
        "type": "address",
        "name": "token"
      }
    ],
    "outputs": [
      {
        "type": "uint256"
      }
    ]
  },
  {
    "name": "runs",
    "type": "function",
    "stateMutability": "view",
    "inputs": [
      {
        "type": "address",
        "name": "token"
      },
      {
        "type": "uint256",
        "name": "i"
      }
    ],
    "outputs": [
      {
        "type": "uint64",
        "name": "first"
      },
      {
        "type": "uint64",
        "name": "last"
      },
      {
        "type": "uint128",
        "name": "value"
      }
    ]
  },
  {
    "name": "candidates",
    "type": "function",
    "stateMutability": "view",
    "inputs": [
      {
        "type": "address",
        "name": "token"
      },
      {
        "type": "uint64",
        "name": "t"
      }
    ],
    "outputs": [
      {
        "type": "uint128[]",
        "name": "values"
      },
      {
        "type": "bool",
        "name": "open"
      },
      {
        "type": "bool",
        "name": "beforeFirst"
      }
    ]
  },
  {
    "name": "liveStates",
    "type": "function",
    "stateMutability": "view",
    "inputs": [
      {
        "type": "address",
        "name": "token"
      }
    ],
    "outputs": [
      {
        "type": "uint128",
        "name": "current"
      },
      {
        "type": "uint128",
        "name": "next"
      },
      {
        "type": "uint64",
        "name": "effectiveAt"
      },
      {
        "type": "uint64",
        "name": "observedBlock"
      },
      {
        "type": "uint64",
        "name": "observedAt"
      }
    ]
  },
  {
    "name": "points",
    "type": "function",
    "stateMutability": "view",
    "inputs": [
      {
        "type": "address",
        "name": "token"
      },
      {
        "type": "uint64",
        "name": "blockNumber"
      }
    ],
    "outputs": [
      {
        "type": "uint128",
        "name": "multiplier"
      },
      {
        "type": "uint64",
        "name": "timestamp"
      },
      {
        "type": "uint64",
        "name": "effectiveAt"
      },
      {
        "type": "uint128",
        "name": "storedOld"
      },
      {
        "type": "uint128",
        "name": "storedNew"
      }
    ]
  },
  {
    "name": "readCurrent",
    "type": "function",
    "stateMutability": "view",
    "inputs": [
      {
        "type": "address",
        "name": "token"
      }
    ],
    "outputs": [
      {
        "type": "uint128",
        "name": "current"
      },
      {
        "type": "uint128",
        "name": "next"
      },
      {
        "type": "uint64",
        "name": "effective"
      }
    ]
  },
  {
    "name": "MultiplierProven",
    "type": "event",
    "inputs": [
      {
        "type": "address",
        "name": "token",
        "indexed": true
      },
      {
        "type": "uint64",
        "name": "blockNumber",
        "indexed": true
      },
      {
        "type": "uint256",
        "name": "multiplier"
      },
      {
        "type": "uint64",
        "name": "timestamp"
      }
    ]
  },
  {
    "name": "LiveStateObserved",
    "type": "event",
    "inputs": [
      {
        "type": "address",
        "name": "token",
        "indexed": true
      },
      {
        "type": "uint256",
        "name": "current"
      },
      {
        "type": "uint256",
        "name": "next"
      },
      {
        "type": "uint64",
        "name": "effectiveAt"
      },
      {
        "type": "uint64",
        "name": "blockNumber"
      }
    ]
  },
  {
    "name": "PollFailed",
    "type": "event",
    "inputs": [
      {
        "type": "address",
        "name": "token",
        "indexed": true
      }
    ]
  }
]
