query eventsInRange($fromBlockNumber: Int!, $toBlockNumber: Int!){
    eventsInRange(fromBlockNumber: $fromBlockNumber, toBlockNumber: $toBlockNumber){
        block{
            cid
            hash
            number
            timestamp
            parentHash
        }
        tx{
            hash
            index
            from
            to
        }
        contract
        eventIndex
        event{
            ... on OwnershipTransferredEvent {
                previousOwner
                newOwner
            }
            ... on RouteEvent {
                from
                to
                tokenIn
                tokenOut
                amountIn
                amountOutMin
                amountOut
            }
        }
        proof{
            data
        }
    }
}