[
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "_owner",
        "type": "address"
      },
      {
        "internalType": "uint8",
        "name": "_cardinality",
        "type": "uint8"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "constructor"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "uint32",
        "name": "drawId",
        "type": "uint32"
      },
      {
        "components": [
          {
            "internalType": "uint256",
            "name": "winningRandomNumber",
            "type": "uint256"
          },
          {
            "internalType": "uint32",
            "name": "drawId",
            "type": "uint32"
          },
          {
            "internalType": "uint64",
            "name": "timestamp",
            "type": "uint64"
          },
          {
            "internalType": "uint64",
            "name": "beaconPeriodStartedAt",
            "type": "uint64"
          },
          {
            "internalType": "uint32",
            "name": "beaconPeriodSeconds",
            "type": "uint32"
          }
        ],
        "indexed": false,
        "internalType": "struct IDrawBeacon.Draw",
        "name": "draw",
        "type": "tuple"
      }
    ],
    "name": "DrawSet",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "previousManager",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "newManager",
        "type": "address"
      }
    ],
    "name": "ManagerTransferred",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "pendingOwner",
        "type": "address"
      }
    ],
    "name": "OwnershipOffered",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "previousOwner",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "newOwner",
        "type": "address"
      }
    ],
    "name": "OwnershipTransferred",
    "type": "event"
  },
  {
    "inputs": [],
    "name": "MAX_CARDINALITY",
    "outputs": [
      {
        "internalType": "uint16",
        "name": "",
        "type": "uint16"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "claimOwnership",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "getBufferCardinality",
    "outputs": [
      {
        "internalType": "uint32",
        "name": "",
        "type": "uint32"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint32",
        "name": "drawId",
        "type": "uint32"
      }
    ],
    "name": "getDraw",
    "outputs": [
      {
        "components": [
          {
            "internalType": "uint256",
            "name": "winningRandomNumber",
            "type": "uint256"
          },
          {
            "internalType": "uint32",
            "name": "drawId",
            "type": "uint32"
          },
          {
            "internalType": "uint64",
            "name": "timestamp",
            "type": "uint64"
          },
          {
            "internalType": "uint64",
            "name": "beaconPeriodStartedAt",
            "type": "uint64"
          },
          {
            "internalType": "uint32",
            "name": "beaconPeriodSeconds",
            "type": "uint32"
          }
        ],
        "internalType": "struct IDrawBeacon.Draw",
        "name": "",
        "type": "tuple"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "getDrawCount",
    "outputs": [
      {
        "internalType": "uint32",
        "name": "",
        "type": "uint32"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint32[]",
        "name": "_drawIds",
        "type": "uint32[]"
      }
    ],
    "name": "getDraws",
    "outputs": [
      {
        "components": [
          {
            "internalType": "uint256",
            "name": "winningRandomNumber",
            "type": "uint256"
          },
          {
            "internalType": "uint32",
            "name": "drawId",
            "type": "uint32"
          },
          {
            "internalType": "uint64",
            "name": "timestamp",
            "type": "uint64"
          },
          {
            "internalType": "uint64",
            "name": "beaconPeriodStartedAt",
            "type": "uint64"
          },
          {
            "internalType": "uint32",
            "name": "beaconPeriodSeconds",
            "type": "uint32"
          }
        ],
        "internalType": "struct IDrawBeacon.Draw[]",
        "name": "",
        "type": "tuple[]"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "getNewestDraw",
    "outputs": [
      {
        "components": [
          {
            "internalType": "uint256",
            "name": "winningRandomNumber",
            "type": "uint256"
          },
          {
            "internalType": "uint32",
            "name": "drawId",
            "type": "uint32"
          },
          {
            "internalType": "uint64",
            "name": "timestamp",
            "type": "uint64"
          },
          {
            "internalType": "uint64",
            "name": "beaconPeriodStartedAt",
            "type": "uint64"
          },
          {
            "internalType": "uint32",
            "name": "beaconPeriodSeconds",
            "type": "uint32"
          }
        ],
        "internalType": "struct IDrawBeacon.Draw",
        "name": "",
        "type": "tuple"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "getOldestDraw",
    "outputs": [
      {
        "components": [
          {
            "internalType": "uint256",
            "name": "winningRandomNumber",
            "type": "uint256"
          },
          {
            "internalType": "uint32",
            "name": "drawId",
            "type": "uint32"
          },
          {
            "internalType": "uint64",
            "name": "timestamp",
            "type": "uint64"
          },
          {
            "internalType": "uint64",
            "name": "beaconPeriodStartedAt",
            "type": "uint64"
          },
          {
            "internalType": "uint32",
            "name": "beaconPeriodSeconds",
            "type": "uint32"
          }
        ],
        "internalType": "struct IDrawBeacon.Draw",
        "name": "",
        "type": "tuple"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "manager",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "owner",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "pendingOwner",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "components": [
          {
            "internalType": "uint256",
            "name": "winningRandomNumber",
            "type": "uint256"
          },
          {
            "internalType": "uint32",
            "name": "drawId",
            "type": "uint32"
          },
          {
            "internalType": "uint64",
            "name": "timestamp",
            "type": "uint64"
          },
          {
            "internalType": "uint64",
            "name": "beaconPeriodStartedAt",
            "type": "uint64"
          },
          {
            "internalType": "uint32",
            "name": "beaconPeriodSeconds",
            "type": "uint32"
          }
        ],
        "internalType": "struct IDrawBeacon.Draw",
        "name": "_draw",
        "type": "tuple"
      }
    ],
    "name": "pushDraw",
    "outputs": [
      {
        "internalType": "uint32",
        "name": "",
        "type": "uint32"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "renounceOwnership",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "components": [
          {
            "internalType": "uint256",
            "name": "winningRandomNumber",
            "type": "uint256"
          },
          {
            "internalType": "uint32",
            "name": "drawId",
            "type": "uint32"
          },
          {
            "internalType": "uint64",
            "name": "timestamp",
            "type": "uint64"
          },
          {
            "internalType": "uint64",
            "name": "beaconPeriodStartedAt",
            "type": "uint64"
          },
          {
            "internalType": "uint32",
            "name": "beaconPeriodSeconds",
            "type": "uint32"
          }
        ],
        "internalType": "struct IDrawBeacon.Draw",
        "name": "_newDraw",
        "type": "tuple"
      }
    ],
    "name": "setDraw",
    "outputs": [
      {
        "internalType": "uint32",
        "name": "",
        "type": "uint32"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "_newManager",
        "type": "address"
      }
    ],
    "name": "setManager",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "_newOwner",
        "type": "address"
      }
    ],
    "name": "transferOwnership",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  }
]
