{
  "address": "0x1A8e655D470e2668a437abd59886cFB2115cf426",
  "abi": [
    {
      "inputs": [
        {
          "internalType": "GameType",
          "name": "_gameType",
          "type": "uint32"
        },
        {
          "internalType": "Claim",
          "name": "_absolutePrestate",
          "type": "bytes32"
        },
        {
          "internalType": "uint256",
          "name": "_maxGameDepth",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_splitDepth",
          "type": "uint256"
        },
        {
          "internalType": "Duration",
          "name": "_clockExtension",
          "type": "uint64"
        },
        {
          "internalType": "Duration",
          "name": "_maxClockDuration",
          "type": "uint64"
        },
        {
          "internalType": "contract IBigStepper",
          "name": "_vm",
          "type": "address"
        },
        {
          "internalType": "contract IDelayedWETH",
          "name": "_weth",
          "type": "address"
        },
        {
          "internalType": "contract Lib_AddressManager",
          "name": "_addressManager",
          "type": "address"
        },
        {
          "internalType": "uint256",
          "name": "_l2ChainId",
          "type": "uint256"
        },
        {
          "internalType": "address",
          "name": "_proposer",
          "type": "address"
        },
        {
          "internalType": "address",
          "name": "_challenger",
          "type": "address"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "constructor"
    },
    {
      "inputs": [],
      "name": "AlreadyInitialized",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "AnchorRootNotFound",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "BadAuth",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "BlockNumberMatches",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "BondTransferFailed",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "CannotDefendRootClaim",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "ClaimAboveSplit",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "ClaimAlreadyExists",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "ClaimAlreadyResolved",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "ClockNotExpired",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "ClockTimeExceeded",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "DuplicateStep",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "GameDepthExceeded",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "GameNotInProgress",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "IncorrectBondAmount",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "InvalidChallengePeriod",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "InvalidClockExtension",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "InvalidDisputedClaimIndex",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "InvalidHeaderRLP",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "InvalidLocalIdent",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "InvalidOutputRootProof",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "InvalidParent",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "InvalidPrestate",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "InvalidSplitDepth",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "L2BlockNumberChallenged",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "MaxDepthTooLarge",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "NoCreditToClaim",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "OutOfOrderResolution",
      "type": "error"
    },
    {
      "inputs": [
        {
          "internalType": "Claim",
          "name": "rootClaim",
          "type": "bytes32"
        }
      ],
      "name": "UnexpectedRootClaim",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "ValidStep",
      "type": "error"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "uint256",
          "name": "parentIndex",
          "type": "uint256"
        },
        {
          "indexed": true,
          "internalType": "Claim",
          "name": "claim",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "claimant",
          "type": "address"
        }
      ],
      "name": "Move",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "enum GameStatus",
          "name": "status",
          "type": "uint8"
        }
      ],
      "name": "Resolved",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "address",
          "name": "intendedRecipient",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "bytes",
          "name": "reason",
          "type": "bytes"
        }
      ],
      "name": "SlashingFailed",
      "type": "event"
    },
    {
      "inputs": [],
      "name": "absolutePrestate",
      "outputs": [
        {
          "internalType": "Claim",
          "name": "absolutePrestate_",
          "type": "bytes32"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_ident",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_execLeafIdx",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_partOffset",
          "type": "uint256"
        }
      ],
      "name": "addLocalData",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "Claim",
          "name": "_disputed",
          "type": "bytes32"
        },
        {
          "internalType": "uint256",
          "name": "_parentIndex",
          "type": "uint256"
        },
        {
          "internalType": "Claim",
          "name": "_claim",
          "type": "bytes32"
        }
      ],
      "name": "attack",
      "outputs": [],
      "stateMutability": "payable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "components": [
            {
              "internalType": "uint256",
              "name": "batchIndex",
              "type": "uint256"
            },
            {
              "internalType": "bytes32",
              "name": "batchRoot",
              "type": "bytes32"
            },
            {
              "internalType": "uint256",
              "name": "batchSize",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "prevTotalElements",
              "type": "uint256"
            },
            {
              "internalType": "bytes",
              "name": "extraData",
              "type": "bytes"
            }
          ],
          "internalType": "struct Lib_OVMCodec.ChainBatchHeader",
          "name": "_outputRootProof",
          "type": "tuple"
        },
        {
          "internalType": "bytes",
          "name": "_headerRLP",
          "type": "bytes"
        }
      ],
      "name": "challengeRootL2Block",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "challenger",
      "outputs": [
        {
          "internalType": "address",
          "name": "challenger_",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_recipient",
          "type": "address"
        }
      ],
      "name": "claimCredit",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "name": "claimData",
      "outputs": [
        {
          "internalType": "uint32",
          "name": "parentIndex",
          "type": "uint32"
        },
        {
          "internalType": "address",
          "name": "counteredBy",
          "type": "address"
        },
        {
          "internalType": "address",
          "name": "claimant",
          "type": "address"
        },
        {
          "internalType": "uint128",
          "name": "bond",
          "type": "uint128"
        },
        {
          "internalType": "Claim",
          "name": "claim",
          "type": "bytes32"
        },
        {
          "internalType": "Position",
          "name": "position",
          "type": "uint128"
        },
        {
          "internalType": "Clock",
          "name": "clock",
          "type": "uint128"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "claimDataLen",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "len_",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "Hash",
          "name": "",
          "type": "bytes32"
        }
      ],
      "name": "claims",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "clockExtension",
      "outputs": [
        {
          "internalType": "Duration",
          "name": "clockExtension_",
          "type": "uint64"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "createdAt",
      "outputs": [
        {
          "internalType": "Timestamp",
          "name": "",
          "type": "uint64"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "name": "credit",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "Claim",
          "name": "_disputed",
          "type": "bytes32"
        },
        {
          "internalType": "uint256",
          "name": "_parentIndex",
          "type": "uint256"
        },
        {
          "internalType": "Claim",
          "name": "_claim",
          "type": "bytes32"
        }
      ],
      "name": "defend",
      "outputs": [],
      "stateMutability": "payable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "extraData",
      "outputs": [
        {
          "internalType": "bytes",
          "name": "extraData_",
          "type": "bytes"
        }
      ],
      "stateMutability": "pure",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "gameCreator",
      "outputs": [
        {
          "internalType": "address",
          "name": "creator_",
          "type": "address"
        }
      ],
      "stateMutability": "pure",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "gameData",
      "outputs": [
        {
          "internalType": "GameType",
          "name": "gameType_",
          "type": "uint32"
        },
        {
          "internalType": "Claim",
          "name": "rootClaim_",
          "type": "bytes32"
        },
        {
          "internalType": "bytes",
          "name": "extraData_",
          "type": "bytes"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "gameType",
      "outputs": [
        {
          "internalType": "GameType",
          "name": "gameType_",
          "type": "uint32"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_claimIndex",
          "type": "uint256"
        }
      ],
      "name": "getChallengerDuration",
      "outputs": [
        {
          "internalType": "Duration",
          "name": "duration_",
          "type": "uint64"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_claimIndex",
          "type": "uint256"
        }
      ],
      "name": "getNumToResolve",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "numRemainingChildren_",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "Position",
          "name": "_position",
          "type": "uint128"
        }
      ],
      "name": "getRequiredBond",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "requiredBond_",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "initialize",
      "outputs": [],
      "stateMutability": "payable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "l1Head",
      "outputs": [
        {
          "internalType": "Hash",
          "name": "l1Head_",
          "type": "bytes32"
        }
      ],
      "stateMutability": "pure",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "l2BlockNumber",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "l2BlockNumber_",
          "type": "uint256"
        }
      ],
      "stateMutability": "pure",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "l2BlockNumberChallenged",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "l2BlockNumberChallenger",
      "outputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "l2ChainId",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "l2ChainId_",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "maxClockDuration",
      "outputs": [
        {
          "internalType": "Duration",
          "name": "maxClockDuration_",
          "type": "uint64"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "maxGameDepth",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "maxGameDepth_",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "Claim",
          "name": "_disputed",
          "type": "bytes32"
        },
        {
          "internalType": "uint256",
          "name": "_challengeIndex",
          "type": "uint256"
        },
        {
          "internalType": "Claim",
          "name": "_claim",
          "type": "bytes32"
        },
        {
          "internalType": "bool",
          "name": "_isAttack",
          "type": "bool"
        }
      ],
      "name": "move",
      "outputs": [],
      "stateMutability": "payable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "proposer",
      "outputs": [
        {
          "internalType": "address",
          "name": "proposer_",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "name": "resolutionCheckpoints",
      "outputs": [
        {
          "internalType": "bool",
          "name": "initialCheckpointComplete",
          "type": "bool"
        },
        {
          "internalType": "uint32",
          "name": "subgameIndex",
          "type": "uint32"
        },
        {
          "internalType": "Position",
          "name": "leftmostPosition",
          "type": "uint128"
        },
        {
          "internalType": "address",
          "name": "counteredBy",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "resolve",
      "outputs": [
        {
          "internalType": "enum GameStatus",
          "name": "status_",
          "type": "uint8"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_claimIndex",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_numToResolve",
          "type": "uint256"
        }
      ],
      "name": "resolveClaim",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "resolvedAt",
      "outputs": [
        {
          "internalType": "Timestamp",
          "name": "",
          "type": "uint64"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "name": "resolvedSubgames",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "rootClaim",
      "outputs": [
        {
          "internalType": "Claim",
          "name": "rootClaim_",
          "type": "bytes32"
        }
      ],
      "stateMutability": "pure",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "scc",
      "outputs": [
        {
          "internalType": "contract IMVMStateCommitmentChain",
          "name": "scc_",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "splitDepth",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "splitDepth_",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "startingBlockNumber",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "startingBlockNumber_",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "startingOutputRoot",
      "outputs": [
        {
          "internalType": "Hash",
          "name": "root",
          "type": "bytes32"
        },
        {
          "internalType": "uint256",
          "name": "l2BlockNumber",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "startingRootHash",
      "outputs": [
        {
          "internalType": "Hash",
          "name": "startingRootHash_",
          "type": "bytes32"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "status",
      "outputs": [
        {
          "internalType": "enum GameStatus",
          "name": "",
          "type": "uint8"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_claimIndex",
          "type": "uint256"
        },
        {
          "internalType": "bool",
          "name": "_isAttack",
          "type": "bool"
        },
        {
          "internalType": "bytes",
          "name": "_stateData",
          "type": "bytes"
        },
        {
          "internalType": "bytes",
          "name": "_proof",
          "type": "bytes"
        }
      ],
      "name": "step",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "name": "subgames",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "version",
      "outputs": [
        {
          "internalType": "string",
          "name": "",
          "type": "string"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "vm",
      "outputs": [
        {
          "internalType": "contract IBigStepper",
          "name": "vm_",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "weth",
      "outputs": [
        {
          "internalType": "contract IDelayedWETH",
          "name": "weth_",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    }
  ],
  "transactionHash": "0x547a0aa1e763ee19c59834450382d73c8984b2e1ec5f1449b71bc40b96f924d0",
  "receipt": {
    "to": null,
    "from": "0x012347D9D1cC9df8d53289d43d84b5bCdED7F480",
    "contractAddress": "0x1A8e655D470e2668a437abd59886cFB2115cf426",
    "transactionIndex": 0,
    "gasUsed": "5160096",
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "blockHash": "0x5fbca2d12477e8d031ac12e61024f14d65bde26352f0dd931b14e657ef85eafc",
    "transactionHash": "0x547a0aa1e763ee19c59834450382d73c8984b2e1ec5f1449b71bc40b96f924d0",
    "logs": [],
    "blockNumber": 14653,
    "cumulativeGasUsed": "5160096",
    "status": 1,
    "byzantium": true
  },
  "args": [
    1,
    "0x034f0b80583e30a789bda1c2875479227c2775c0990f4f2ba8e9485b7b37e2ad",
    73,
    30,
    0,
    43200,
    "0x2F5E57242725F2a763ba3Af2Af69D1998E4a14a8",
    "0x8C4C1698f4dab8a7Fbac14E3eFfe55Bc51aA7102",
    "0xE9f3269c55Da2ebB729574FD2bbE3Bb23375CeF4",
    57005,
    "0x012347D9D1cC9df8d53289d43d84b5bCdED7F480",
    "0x100222702c050613c5b9264bBE71DfB1B6796b3F"
  ],
  "numDeployments": 2,
  "solcInputHash": "d4ef876c21b9fffbee7cb8c376509b73",
  "metadata": "{\"compiler\":{\"version\":\"0.8.15+commit.e14f2714\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"GameType\",\"name\":\"_gameType\",\"type\":\"uint32\"},{\"internalType\":\"Claim\",\"name\":\"_absolutePrestate\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_maxGameDepth\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_splitDepth\",\"type\":\"uint256\"},{\"internalType\":\"Duration\",\"name\":\"_clockExtension\",\"type\":\"uint64\"},{\"internalType\":\"Duration\",\"name\":\"_maxClockDuration\",\"type\":\"uint64\"},{\"internalType\":\"contract IBigStepper\",\"name\":\"_vm\",\"type\":\"address\"},{\"internalType\":\"contract IDelayedWETH\",\"name\":\"_weth\",\"type\":\"address\"},{\"internalType\":\"contract Lib_AddressManager\",\"name\":\"_addressManager\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_l2ChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_proposer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_challenger\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AlreadyInitialized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AnchorRootNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BadAuth\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BlockNumberMatches\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BondTransferFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CannotDefendRootClaim\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ClaimAboveSplit\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ClaimAlreadyExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ClaimAlreadyResolved\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ClockNotExpired\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ClockTimeExceeded\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DuplicateStep\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"GameDepthExceeded\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"GameNotInProgress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"IncorrectBondAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidChallengePeriod\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidClockExtension\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidDisputedClaimIndex\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidHeaderRLP\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidLocalIdent\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOutputRootProof\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidParent\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidPrestate\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSplitDepth\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"L2BlockNumberChallenged\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MaxDepthTooLarge\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoCreditToClaim\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OutOfOrderResolution\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"Claim\",\"name\":\"rootClaim\",\"type\":\"bytes32\"}],\"name\":\"UnexpectedRootClaim\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ValidStep\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"parentIndex\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"Claim\",\"name\":\"claim\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"claimant\",\"type\":\"address\"}],\"name\":\"Move\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"enum GameStatus\",\"name\":\"status\",\"type\":\"uint8\"}],\"name\":\"Resolved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"intendedRecipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"reason\",\"type\":\"bytes\"}],\"name\":\"SlashingFailed\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"absolutePrestate\",\"outputs\":[{\"internalType\":\"Claim\",\"name\":\"absolutePrestate_\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_ident\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_execLeafIdx\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_partOffset\",\"type\":\"uint256\"}],\"name\":\"addLocalData\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"Claim\",\"name\":\"_disputed\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_parentIndex\",\"type\":\"uint256\"},{\"internalType\":\"Claim\",\"name\":\"_claim\",\"type\":\"bytes32\"}],\"name\":\"attack\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"batchIndex\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"batchRoot\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"batchSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"prevTotalElements\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"extraData\",\"type\":\"bytes\"}],\"internalType\":\"struct Lib_OVMCodec.ChainBatchHeader\",\"name\":\"_outputRootProof\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"_headerRLP\",\"type\":\"bytes\"}],\"name\":\"challengeRootL2Block\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"challenger\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"challenger_\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_recipient\",\"type\":\"address\"}],\"name\":\"claimCredit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"claimData\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"parentIndex\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"counteredBy\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"claimant\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"bond\",\"type\":\"uint128\"},{\"internalType\":\"Claim\",\"name\":\"claim\",\"type\":\"bytes32\"},{\"internalType\":\"Position\",\"name\":\"position\",\"type\":\"uint128\"},{\"internalType\":\"Clock\",\"name\":\"clock\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"claimDataLen\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"len_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"Hash\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"claims\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"clockExtension\",\"outputs\":[{\"internalType\":\"Duration\",\"name\":\"clockExtension_\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"createdAt\",\"outputs\":[{\"internalType\":\"Timestamp\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"credit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"Claim\",\"name\":\"_disputed\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_parentIndex\",\"type\":\"uint256\"},{\"internalType\":\"Claim\",\"name\":\"_claim\",\"type\":\"bytes32\"}],\"name\":\"defend\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"extraData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"extraData_\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gameCreator\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"creator_\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gameData\",\"outputs\":[{\"internalType\":\"GameType\",\"name\":\"gameType_\",\"type\":\"uint32\"},{\"internalType\":\"Claim\",\"name\":\"rootClaim_\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"extraData_\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gameType\",\"outputs\":[{\"internalType\":\"GameType\",\"name\":\"gameType_\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_claimIndex\",\"type\":\"uint256\"}],\"name\":\"getChallengerDuration\",\"outputs\":[{\"internalType\":\"Duration\",\"name\":\"duration_\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_claimIndex\",\"type\":\"uint256\"}],\"name\":\"getNumToResolve\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"numRemainingChildren_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"Position\",\"name\":\"_position\",\"type\":\"uint128\"}],\"name\":\"getRequiredBond\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"requiredBond_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"l1Head\",\"outputs\":[{\"internalType\":\"Hash\",\"name\":\"l1Head_\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"l2BlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"l2BlockNumber_\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"l2BlockNumberChallenged\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"l2BlockNumberChallenger\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"l2ChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"l2ChainId_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxClockDuration\",\"outputs\":[{\"internalType\":\"Duration\",\"name\":\"maxClockDuration_\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxGameDepth\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"maxGameDepth_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"Claim\",\"name\":\"_disputed\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_challengeIndex\",\"type\":\"uint256\"},{\"internalType\":\"Claim\",\"name\":\"_claim\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"_isAttack\",\"type\":\"bool\"}],\"name\":\"move\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proposer\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proposer_\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"resolutionCheckpoints\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"initialCheckpointComplete\",\"type\":\"bool\"},{\"internalType\":\"uint32\",\"name\":\"subgameIndex\",\"type\":\"uint32\"},{\"internalType\":\"Position\",\"name\":\"leftmostPosition\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"counteredBy\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"resolve\",\"outputs\":[{\"internalType\":\"enum GameStatus\",\"name\":\"status_\",\"type\":\"uint8\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_claimIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_numToResolve\",\"type\":\"uint256\"}],\"name\":\"resolveClaim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"resolvedAt\",\"outputs\":[{\"internalType\":\"Timestamp\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"resolvedSubgames\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rootClaim\",\"outputs\":[{\"internalType\":\"Claim\",\"name\":\"rootClaim_\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"scc\",\"outputs\":[{\"internalType\":\"contract IMVMStateCommitmentChain\",\"name\":\"scc_\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"splitDepth\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"splitDepth_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"startingBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"startingBlockNumber_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"startingOutputRoot\",\"outputs\":[{\"internalType\":\"Hash\",\"name\":\"root\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"l2BlockNumber\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"startingRootHash\",\"outputs\":[{\"internalType\":\"Hash\",\"name\":\"startingRootHash_\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"status\",\"outputs\":[{\"internalType\":\"enum GameStatus\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_claimIndex\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"_isAttack\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"_stateData\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"_proof\",\"type\":\"bytes\"}],\"name\":\"step\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"subgames\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vm\",\"outputs\":[{\"internalType\":\"contract IBigStepper\",\"name\":\"vm_\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"weth\",\"outputs\":[{\"internalType\":\"contract IDelayedWETH\",\"name\":\"weth_\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"UnexpectedRootClaim(bytes32)\":[{\"params\":{\"rootClaim\":\"is the claim that was unexpected.\"}}]},\"kind\":\"dev\",\"methods\":{\"addLocalData(uint256,uint256,uint256)\":{\"params\":{\"_execLeafIdx\":\"The index of the leaf claim in an execution subgame that requires the local data for a step.\",\"_ident\":\"The local identifier of the data to post.\",\"_partOffset\":\"The offset of the data to post.\"}},\"attack(bytes32,uint256,bytes32)\":{\"params\":{\"_claim\":\"The `Claim` at the relative attack position.\",\"_disputed\":\"The `Claim` being attacked.\",\"_parentIndex\":\"Index of the `Claim` to attack in the `claimData` array. This must match the `_disputed` claim.\"}},\"challengeRootL2Block((uint256,bytes32,uint256,uint256,bytes),bytes)\":{\"params\":{\"_headerRLP\":\"The RLP-encoded L2 block header.\",\"_outputRootProof\":\"The output root proof.\"}},\"claimCredit(address)\":{\"params\":{\"_recipient\":\"The owner and recipient of the credit.\"}},\"constructor\":{\"params\":{\"_absolutePrestate\":\"The absolute prestate of the instruction trace.\",\"_addressManager\":\"Address manager contract.\",\"_challenger\":\"Address that is allowed to challenge instances of this contract.\",\"_clockExtension\":\"The clock extension to perform when the remaining duration is less than the extension.\",\"_gameType\":\"The type ID of the game.\",\"_l2ChainId\":\"Chain ID of the L2 network this contract argues about.\",\"_maxClockDuration\":\"The maximum amount of time that may accumulate on a team's chess clock.\",\"_maxGameDepth\":\"The maximum depth of bisection.\",\"_proposer\":\"Address that is allowed to create instances of this contract.\",\"_splitDepth\":\"The final depth of the output bisection portion of the game.\",\"_vm\":\"An onchain VM that performs single instruction steps on an FPP trace.\",\"_weth\":\"WETH contract for holding ETH.\"}},\"defend(bytes32,uint256,bytes32)\":{\"params\":{\"_claim\":\"The `Claim` at the relative defense position.\",\"_parentIndex\":\"Index of the claim to defend in the `claimData` array. This must match the `_disputed` claim.\"}},\"extraData()\":{\"details\":\"`clones-with-immutable-args` argument #4\",\"returns\":{\"extraData_\":\"Any extra data supplied to the dispute game contract by the creator.\"}},\"gameCreator()\":{\"details\":\"`clones-with-immutable-args` argument #1\",\"returns\":{\"creator_\":\"The creator of the dispute game.\"}},\"gameData()\":{\"returns\":{\"extraData_\":\"Any extra data supplied to the dispute game contract by the creator.\",\"gameType_\":\"The type of proof system being used.\",\"rootClaim_\":\"The root claim of the DisputeGame.\"}},\"gameType()\":{\"details\":\"The reference impl should be entirely different depending on the type (fault, validity)      i.e. The game type should indicate the security model.\",\"returns\":{\"gameType_\":\"The type of proof system being used.\"}},\"getChallengerDuration(uint256)\":{\"params\":{\"_claimIndex\":\"The index of the subgame root claim.\"},\"returns\":{\"duration_\":\"The time elapsed on the potential challenger to `_claimIndex`'s chess clock.\"}},\"getNumToResolve(uint256)\":{\"params\":{\"_claimIndex\":\"The subgame root claim's index within `claimData`.\"},\"returns\":{\"numRemainingChildren_\":\"The number of children that still need to be checked to resolve the subgame.\"}},\"getRequiredBond(uint128)\":{\"params\":{\"_position\":\"The position of the bonded interaction.\"},\"returns\":{\"requiredBond_\":\"The required ETH bond for the given move, in wei.\"}},\"initialize()\":{\"details\":\"This function may only be called once.\"},\"l1Head()\":{\"details\":\"`clones-with-immutable-args` argument #3\",\"returns\":{\"l1Head_\":\"The parent hash of the L1 block when the dispute game was created.\"}},\"move(bytes32,uint256,bytes32,bool)\":{\"params\":{\"_challengeIndex\":\"The index of the claim being moved against. This must match the `_disputed` claim.\",\"_claim\":\"The claim at the next logical position in the game.\",\"_isAttack\":\"Whether or not the move is an attack or defense.\"}},\"resolve()\":{\"details\":\"May only be called if the `status` is `IN_PROGRESS`.\",\"returns\":{\"status_\":\"The status of the game after resolution.\"}},\"resolveClaim(uint256,uint256)\":{\"details\":\"This function must be called bottom-up in the DAG      A subgame is a tree of claims that has a maximum depth of 1.      A subgame root claims is valid if, and only if, all of its child claims are invalid.      At the deepest level in the DAG, a claim is invalid if there's a successful step against it.\",\"params\":{\"_claimIndex\":\"The index of the subgame root claim to resolve.\",\"_numToResolve\":\"The number of subgames to resolve in this call. If the input is `0`, and this is the first                      page, this function will attempt to check all of the subgame's children at once.\"}},\"rootClaim()\":{\"details\":\"`clones-with-immutable-args` argument #2\",\"returns\":{\"rootClaim_\":\"The root claim of the DisputeGame.\"}},\"step(uint256,bool,bytes,bytes)\":{\"details\":\"This function should point to a fault proof processor in order to execute      a step in the fault proof program on-chain. The interface of the fault proof      processor contract should adhere to the `IBigStepper` interface.\",\"params\":{\"_claimIndex\":\"The index of the challenged claim within `claimData`.\",\"_isAttack\":\"Whether or not the step is an attack or a defense.\",\"_proof\":\"Proof to access memory nodes in the VM's merkle state tree.\",\"_stateData\":\"The stateData of the step is the preimage of the claim at the given        prestate, which is at `_stateIndex` if the move is an attack and `_claimIndex` if        the move is a defense. If the step is an attack on the first instruction, it is        the absolute prestate of the fault proof VM.\"}}},\"title\":\"PermissionedDisputeGame\",\"version\":1},\"userdoc\":{\"errors\":{\"AlreadyInitialized()\":[{\"notice\":\"Thrown when a dispute game has already been initialized.\"}],\"AnchorRootNotFound()\":[{\"notice\":\"Thrown when an anchor root is not found for a given game type.\"}],\"BadAuth()\":[{\"notice\":\"Thrown when an unauthorized address attempts to interact with the game.\"}],\"BlockNumberMatches()\":[{\"notice\":\"Thrown when there is a match between the block number in the output root proof and the block number         claimed in the dispute game.\"}],\"BondTransferFailed()\":[{\"notice\":\"Thrown when the transfer of credit to a recipient account reverts.\"}],\"CannotDefendRootClaim()\":[{\"notice\":\"Thrown when a defense against the root claim is attempted.\"}],\"ClaimAboveSplit()\":[{\"notice\":\"Thrown when a parent output root is attempted to be found on a claim that is in         the output root portion of the tree.\"}],\"ClaimAlreadyExists()\":[{\"notice\":\"Thrown when a claim is attempting to be made that already exists.\"}],\"ClaimAlreadyResolved()\":[{\"notice\":\"Thrown when resolving a claim that has already been resolved.\"}],\"ClockNotExpired()\":[{\"notice\":\"Thrown when the game is attempted to be resolved too early.\"}],\"ClockTimeExceeded()\":[{\"notice\":\"Thrown when a move is attempted to be made after the clock has timed out.\"}],\"DuplicateStep()\":[{\"notice\":\"Thrown when trying to step against a claim for a second time, after it has already been countered with         an instruction step.\"}],\"GameDepthExceeded()\":[{\"notice\":\"Thrown when a move is attempted to be made at or greater than the max depth of the game.\"}],\"GameNotInProgress()\":[{\"notice\":\"Thrown when an action that requires the game to be `IN_PROGRESS` is invoked when         the game is not in progress.\"}],\"IncorrectBondAmount()\":[{\"notice\":\"Thrown when a supplied bond is not equal to the required bond amount to cover the cost of the interaction.\"}],\"InvalidChallengePeriod()\":[{\"notice\":\"Thrown on deployment if the PreimageOracle challenge period is too high.\"}],\"InvalidClockExtension()\":[{\"notice\":\"Thrown on deployment if the max clock duration is less than or equal to the clock extension.\"}],\"InvalidDisputedClaimIndex()\":[{\"notice\":\"Thrown when a disputed claim does not match its index in the game.\"}],\"InvalidHeaderRLP()\":[{\"notice\":\"Thrown when header RLP is invalid with respect to the block hash in an output root proof.\"}],\"InvalidLocalIdent()\":[{\"notice\":\"Thrown when an invalid local identifier is passed to the `addLocalData` function.\"}],\"InvalidOutputRootProof()\":[{\"notice\":\"Thrown when an output root proof is invalid.\"}],\"InvalidParent()\":[{\"notice\":\"Thrown when a step is attempted above the maximum game depth.\"}],\"InvalidPrestate()\":[{\"notice\":\"Thrown when an invalid prestate is supplied to `step`.\"}],\"InvalidSplitDepth()\":[{\"notice\":\"Thrown on deployment if the split depth is greater than or equal to the max         depth of the game.\"}],\"L2BlockNumberChallenged()\":[{\"notice\":\"Thrown when the L2 block number claim has already been challenged.\"}],\"MaxDepthTooLarge()\":[{\"notice\":\"Thrown on deployment if the max depth is greater than `LibPosition.`\"}],\"NoCreditToClaim()\":[{\"notice\":\"Thrown when a credit claim is attempted for a value of 0.\"}],\"OutOfOrderResolution()\":[{\"notice\":\"Thrown when resolving claims out of order.\"}],\"UnexpectedRootClaim(bytes32)\":[{\"notice\":\"Thrown when the root claim has an unexpected VM status.         Some games can only start with a root-claim with a specific status.\"}],\"ValidStep()\":[{\"notice\":\"Thrown when a step is made that computes the expected post state correctly.\"}]},\"events\":{\"Move(uint256,bytes32,address)\":{\"notice\":\"Emitted when a new claim is added to the DAG by `claimant`\"},\"Resolved(uint8)\":{\"notice\":\"Emitted when the game is resolved.\"},\"SlashingFailed(address,bytes)\":{\"notice\":\"Emitted when slashing fails\"}},\"kind\":\"user\",\"methods\":{\"absolutePrestate()\":{\"notice\":\"Returns the absolute prestate of the instruction trace.\"},\"addLocalData(uint256,uint256,uint256)\":{\"notice\":\"Posts the requested local data to the VM's `PreimageOralce`.\"},\"attack(bytes32,uint256,bytes32)\":{\"notice\":\"Attack a disagreed upon `Claim`.\"},\"challengeRootL2Block((uint256,bytes32,uint256,uint256,bytes),bytes)\":{\"notice\":\"Challenges the root L2 block number by providing the preimage of the output root and the L2 block header         and showing that the committed L2 block number is incorrect relative to the claimed L2 block number.\"},\"challenger()\":{\"notice\":\"Returns the challenger address.\"},\"claimCredit(address)\":{\"notice\":\"Claim the credit belonging to the recipient address.\"},\"claimData(uint256)\":{\"notice\":\"An append-only array of all claims made during the dispute game.\"},\"claimDataLen()\":{\"notice\":\"Returns the length of the `claimData` array.\"},\"claims(bytes32)\":{\"notice\":\"A mapping to allow for constant-time lookups of existing claims.\"},\"clockExtension()\":{\"notice\":\"Returns the clock extension constant.\"},\"createdAt()\":{\"notice\":\"The starting timestamp of the game\"},\"credit(address)\":{\"notice\":\"Credited balances for winning participants.\"},\"defend(bytes32,uint256,bytes32)\":{\"notice\":\"Defend an agreed upon `Claim`._disputed The `Claim` being defended.\"},\"extraData()\":{\"notice\":\"Getter for the extra data.\"},\"gameCreator()\":{\"notice\":\"Getter for the creator of the dispute game.\"},\"gameData()\":{\"notice\":\"A compliant implementation of this interface should return the components of the         game UUID's preimage provided in the cwia payload. The preimage of the UUID is         constructed as `keccak256(gameType . rootClaim . extraData)` where `.` denotes         concatenation.\"},\"gameType()\":{\"notice\":\"Getter for the game type.\"},\"getChallengerDuration(uint256)\":{\"notice\":\"Returns the amount of time elapsed on the potential challenger to `_claimIndex`'s chess clock. Maxes         out at `MAX_CLOCK_DURATION`.\"},\"getNumToResolve(uint256)\":{\"notice\":\"Returns the number of children that still need to be resolved in order to fully resolve a subgame rooted         at `_claimIndex`.\"},\"getRequiredBond(uint128)\":{\"notice\":\"Returns the required bond for a given move kind.\"},\"initialize()\":{\"notice\":\"Initializes the contract.\"},\"l1Head()\":{\"notice\":\"Getter for the parent hash of the L1 block when the dispute game was created.\"},\"l2BlockNumber()\":{\"notice\":\"The l2BlockNumber of the disputed output root in the `L2OutputOracle`.\"},\"l2BlockNumberChallenged()\":{\"notice\":\"Flag for whether or not the L2 block number claim has been invalidated via `challengeRootL2Block`.\"},\"l2BlockNumberChallenger()\":{\"notice\":\"The challenger of the L2 block number claim. Should always be `address(0)` if `l2BlockNumberChallenged`         is `false`. Should be the address of the challenger if `l2BlockNumberChallenged` is `true`.\"},\"l2ChainId()\":{\"notice\":\"Returns the chain ID of the L2 network this contract argues about.\"},\"maxClockDuration()\":{\"notice\":\"Returns the max clock duration.\"},\"maxGameDepth()\":{\"notice\":\"Returns the max game depth.\"},\"move(bytes32,uint256,bytes32,bool)\":{\"notice\":\"Generic move function, used for both `attack` and `defend` moves._disputed The disputed `Claim`.\"},\"proposer()\":{\"notice\":\"Returns the proposer address.\"},\"resolutionCheckpoints(uint256)\":{\"notice\":\"A mapping of claim indices to resolution checkpoints.\"},\"resolve()\":{\"notice\":\"If all necessary information has been gathered, this function should mark the game         status as either `CHALLENGER_WINS` or `DEFENDER_WINS` and return the status of         the resolved game. It is at this stage that the bonds should be awarded to the         necessary parties.\"},\"resolveClaim(uint256,uint256)\":{\"notice\":\"Resolves the subgame rooted at the given claim index. `_numToResolve` specifies how many children of         the subgame will be checked in this call. If `_numToResolve` is less than the number of children, an         internal cursor will be updated and this function may be called again to complete resolution of the         subgame.\"},\"resolvedAt()\":{\"notice\":\"The timestamp of the game's global resolution.\"},\"resolvedSubgames(uint256)\":{\"notice\":\"A mapping of resolved subgames rooted at a claim index.\"},\"rootClaim()\":{\"notice\":\"Getter for the root claim.\"},\"scc()\":{\"notice\":\"Returns the anchor state registry contract.\"},\"splitDepth()\":{\"notice\":\"Returns the split depth.\"},\"startingBlockNumber()\":{\"notice\":\"Only the starting block number of the game.\"},\"startingOutputRoot()\":{\"notice\":\"The latest finalized output root, serving as the anchor for output bisection.\"},\"startingRootHash()\":{\"notice\":\"Only the starting output root of the game.\"},\"status()\":{\"notice\":\"Returns the current status of the game.\"},\"step(uint256,bool,bytes,bytes)\":{\"notice\":\"Perform an instruction step via an on-chain fault proof processor.\"},\"subgames(uint256,uint256)\":{\"notice\":\"A mapping of subgames rooted at a claim index to other claim indices in the subgame.\"},\"version()\":{\"notice\":\"Semantic version.\"},\"vm()\":{\"notice\":\"Returns the address of the VM.\"},\"weth()\":{\"notice\":\"Returns the WETH contract for holding ETH.\"}},\"notice\":\"PermissionedDisputeGame is a contract that inherits from `FaultDisputeGame`, and contains two roles:         - The `challenger` role, which is allowed to challenge a dispute.         - The `proposer` role, which is allowed to create proposals and participate in their game.         This contract exists as a way for networks to support the fault proof iteration of the OptimismPortal         contract without needing to support a fully permissionless system. Permissionless systems can introduce         costs that certain networks may not wish to support. This contract can also be used as a fallback mechanism         in case of a failure in the permissionless fault proof system in the stage one release.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/L1/dispute/PermissionedDisputeGame.sol\":\"PermissionedDisputeGame\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":5000},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n    address private _owner;\\n\\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n    /**\\n     * @dev Initializes the contract setting the deployer as the initial owner.\\n     */\\n    constructor() {\\n        _transferOwnership(_msgSender());\\n    }\\n\\n    /**\\n     * @dev Throws if called by any account other than the owner.\\n     */\\n    modifier onlyOwner() {\\n        _checkOwner();\\n        _;\\n    }\\n\\n    /**\\n     * @dev Returns the address of the current owner.\\n     */\\n    function owner() public view virtual returns (address) {\\n        return _owner;\\n    }\\n\\n    /**\\n     * @dev Throws if the sender is not the owner.\\n     */\\n    function _checkOwner() internal view virtual {\\n        require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n    }\\n\\n    /**\\n     * @dev Leaves the contract without owner. It will not be possible to call\\n     * `onlyOwner` functions anymore. Can only be called by the current owner.\\n     *\\n     * NOTE: Renouncing ownership will leave the contract without an owner,\\n     * thereby removing any functionality that is only available to the owner.\\n     */\\n    function renounceOwnership() public virtual onlyOwner {\\n        _transferOwnership(address(0));\\n    }\\n\\n    /**\\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n     * Can only be called by the current owner.\\n     */\\n    function transferOwnership(address newOwner) public virtual onlyOwner {\\n        require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n        _transferOwnership(newOwner);\\n    }\\n\\n    /**\\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n     * Internal function without access restriction.\\n     */\\n    function _transferOwnership(address newOwner) internal virtual {\\n        address oldOwner = _owner;\\n        _owner = newOwner;\\n        emit OwnershipTransferred(oldOwner, newOwner);\\n    }\\n}\\n\",\"keccak256\":\"0xa94b34880e3c1b0b931662cb1c09e5dfa6662f31cba80e07c5ee71cd135c9673\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n    function _msgSender() internal view virtual returns (address) {\\n        return msg.sender;\\n    }\\n\\n    function _msgData() internal view virtual returns (bytes calldata) {\\n        return msg.data;\\n    }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n    enum Rounding {\\n        Down, // Toward negative infinity\\n        Up, // Toward infinity\\n        Zero // Toward zero\\n    }\\n\\n    /**\\n     * @dev Returns the largest of two numbers.\\n     */\\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n        return a >= b ? a : b;\\n    }\\n\\n    /**\\n     * @dev Returns the smallest of two numbers.\\n     */\\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n        return a < b ? a : b;\\n    }\\n\\n    /**\\n     * @dev Returns the average of two numbers. The result is rounded towards\\n     * zero.\\n     */\\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n        // (a + b) / 2 can overflow.\\n        return (a & b) + (a ^ b) / 2;\\n    }\\n\\n    /**\\n     * @dev Returns the ceiling of the division of two numbers.\\n     *\\n     * This differs from standard division with `/` in that it rounds up instead\\n     * of rounding down.\\n     */\\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n        // (a + b - 1) / b can overflow on addition, so we distribute.\\n        return a == 0 ? 0 : (a - 1) / b + 1;\\n    }\\n\\n    /**\\n     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n     * with further edits by Uniswap Labs also under MIT license.\\n     */\\n    function mulDiv(\\n        uint256 x,\\n        uint256 y,\\n        uint256 denominator\\n    ) internal pure returns (uint256 result) {\\n        unchecked {\\n            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n            // variables such that product = prod1 * 2^256 + prod0.\\n            uint256 prod0; // Least significant 256 bits of the product\\n            uint256 prod1; // Most significant 256 bits of the product\\n            assembly {\\n                let mm := mulmod(x, y, not(0))\\n                prod0 := mul(x, y)\\n                prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n            }\\n\\n            // Handle non-overflow cases, 256 by 256 division.\\n            if (prod1 == 0) {\\n                return prod0 / denominator;\\n            }\\n\\n            // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n            require(denominator > prod1);\\n\\n            ///////////////////////////////////////////////\\n            // 512 by 256 division.\\n            ///////////////////////////////////////////////\\n\\n            // Make division exact by subtracting the remainder from [prod1 prod0].\\n            uint256 remainder;\\n            assembly {\\n                // Compute remainder using mulmod.\\n                remainder := mulmod(x, y, denominator)\\n\\n                // Subtract 256 bit number from 512 bit number.\\n                prod1 := sub(prod1, gt(remainder, prod0))\\n                prod0 := sub(prod0, remainder)\\n            }\\n\\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n            // See https://cs.stackexchange.com/q/138556/92363.\\n\\n            // Does not overflow because the denominator cannot be zero at this stage in the function.\\n            uint256 twos = denominator & (~denominator + 1);\\n            assembly {\\n                // Divide denominator by twos.\\n                denominator := div(denominator, twos)\\n\\n                // Divide [prod1 prod0] by twos.\\n                prod0 := div(prod0, twos)\\n\\n                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n                twos := add(div(sub(0, twos), twos), 1)\\n            }\\n\\n            // Shift in bits from prod1 into prod0.\\n            prod0 |= prod1 * twos;\\n\\n            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n            // four bits. That is, denominator * inv = 1 mod 2^4.\\n            uint256 inverse = (3 * denominator) ^ 2;\\n\\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n            // in modular arithmetic, doubling the correct bits in each step.\\n            inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n            inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n            inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n            inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n            inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n            inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n            // is no longer required.\\n            result = prod0 * inverse;\\n            return result;\\n        }\\n    }\\n\\n    /**\\n     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n     */\\n    function mulDiv(\\n        uint256 x,\\n        uint256 y,\\n        uint256 denominator,\\n        Rounding rounding\\n    ) internal pure returns (uint256) {\\n        uint256 result = mulDiv(x, y, denominator);\\n        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n            result += 1;\\n        }\\n        return result;\\n    }\\n\\n    /**\\n     * @dev Returns the square root of a number. It the number is not a perfect square, the value is rounded down.\\n     *\\n     * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n     */\\n    function sqrt(uint256 a) internal pure returns (uint256) {\\n        if (a == 0) {\\n            return 0;\\n        }\\n\\n        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n        // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n        // `msb(a) <= a < 2*msb(a)`.\\n        // We also know that `k`, the position of the most significant bit, is such that `msb(a) = 2**k`.\\n        // This gives `2**k < a <= 2**(k+1)` \\u2192 `2**(k/2) <= sqrt(a) < 2 ** (k/2+1)`.\\n        // Using an algorithm similar to the msb conmputation, we are able to compute `result = 2**(k/2)` which is a\\n        // good first aproximation of `sqrt(a)` with at least 1 correct bit.\\n        uint256 result = 1;\\n        uint256 x = a;\\n        if (x >> 128 > 0) {\\n            x >>= 128;\\n            result <<= 64;\\n        }\\n        if (x >> 64 > 0) {\\n            x >>= 64;\\n            result <<= 32;\\n        }\\n        if (x >> 32 > 0) {\\n            x >>= 32;\\n            result <<= 16;\\n        }\\n        if (x >> 16 > 0) {\\n            x >>= 16;\\n            result <<= 8;\\n        }\\n        if (x >> 8 > 0) {\\n            x >>= 8;\\n            result <<= 4;\\n        }\\n        if (x >> 4 > 0) {\\n            x >>= 4;\\n            result <<= 2;\\n        }\\n        if (x >> 2 > 0) {\\n            result <<= 1;\\n        }\\n\\n        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n        // into the expected uint128 result.\\n        unchecked {\\n            result = (result + a / result) >> 1;\\n            result = (result + a / result) >> 1;\\n            result = (result + a / result) >> 1;\\n            result = (result + a / result) >> 1;\\n            result = (result + a / result) >> 1;\\n            result = (result + a / result) >> 1;\\n            result = (result + a / result) >> 1;\\n            return min(result, a / result);\\n        }\\n    }\\n\\n    /**\\n     * @notice Calculates sqrt(a), following the selected rounding direction.\\n     */\\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n        uint256 result = sqrt(a);\\n        if (rounding == Rounding.Up && result * result < a) {\\n            result += 1;\\n        }\\n        return result;\\n    }\\n}\\n\",\"keccak256\":\"0xd15c3e400531f00203839159b2b8e7209c5158b35618f570c695b7e47f12e9f0\",\"license\":\"MIT\"},\"contracts/L1/cannon/interfaces/IPreimageOracle.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.15;\\n\\n/// @title IPreimageOracle\\n/// @notice Interface for a preimage oracle.\\ninterface IPreimageOracle {\\n    /// @notice Returns the length of the large preimage proposal challenge period.\\n    /// @return challengePeriod_ The length of the challenge period in seconds.\\n    function challengePeriod() external view returns (uint256 challengePeriod_);\\n\\n    /// @notice Reads a preimage from the oracle.\\n    /// @param _key The key of the preimage to read.\\n    /// @param _offset The offset of the preimage to read.\\n    /// @return dat_ The preimage data.\\n    /// @return datLen_ The length of the preimage data.\\n    function readPreimage(bytes32 _key, uint256 _offset) external view returns (bytes32 dat_, uint256 datLen_);\\n\\n    /// @notice Loads of local data part into the preimage oracle.\\n    /// @param _ident The identifier of the local data.\\n    /// @param _localContext The local key context for the preimage oracle. Optionally, can be set as a constant\\n    ///                      if the caller only requires one set of local keys.\\n    /// @param _word The local data word.\\n    /// @param _size The number of bytes in `_word` to load.\\n    /// @param _partOffset The offset of the local data part to write to the oracle.\\n    /// @dev The local data parts are loaded into the preimage oracle under the context\\n    ///      of the caller - no other account can write to the caller's context\\n    ///      specific data.\\n    ///\\n    ///      There are 5 local data identifiers:\\n    ///      \\u250c\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u252c\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2510\\n    ///      \\u2502 Identifier \\u2502      Data              \\u2502\\n    ///      \\u251c\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u253c\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2524\\n    ///      \\u2502          1 \\u2502 L1 Head Hash (bytes32) \\u2502\\n    ///      \\u2502          2 \\u2502 Output Root (bytes32)  \\u2502\\n    ///      \\u2502          3 \\u2502 Root Claim (bytes32)   \\u2502\\n    ///      \\u2502          4 \\u2502 L2 Block Number (u64)  \\u2502\\n    ///      \\u2502          5 \\u2502 Chain ID (u64)         \\u2502\\n    ///      \\u2514\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2534\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2518\\n    function loadLocalData(\\n        uint256 _ident,\\n        bytes32 _localContext,\\n        bytes32 _word,\\n        uint256 _size,\\n        uint256 _partOffset\\n    )\\n    external\\n    returns (bytes32 key_);\\n\\n    /// @notice Prepares a preimage to be read by keccak256 key, starting at the given offset and up to 32 bytes\\n    ///         (clipped at preimage length, if out of data).\\n    /// @param _partOffset The offset of the preimage to read.\\n    /// @param _preimage The preimage data.\\n    function loadKeccak256PreimagePart(uint256 _partOffset, bytes calldata _preimage) external;\\n\\n    /// @notice Prepares a preimage to be read by sha256 key, starting at the given offset and up to 32 bytes\\n    ///         (clipped at preimage length, if out of data).\\n    /// @param _partOffset The offset of the preimage to read.\\n    /// @param _preimage The preimage data.\\n    function loadSha256PreimagePart(uint256 _partOffset, bytes calldata _preimage) external;\\n\\n    /// @notice Verifies that `p(_z) = _y` given `_commitment` that corresponds to the polynomial `p(x)` and a KZG\\n    //          proof. The value `y` is the pre-image, and the preimage key is `5 ++ keccak256(_commitment ++ z)[1:]`.\\n    /// @param _z Big endian point value. Part of the preimage key.\\n    /// @param _y Big endian point value. The preimage for the key.\\n    /// @param _commitment The commitment to the polynomial. 48 bytes, part of the preimage key.\\n    /// @param _proof The KZG proof, part of the preimage key.\\n    /// @param _partOffset The offset of the preimage to store.\\n    function loadBlobPreimagePart(\\n        uint256 _z,\\n        uint256 _y,\\n        bytes calldata _commitment,\\n        bytes calldata _proof,\\n        uint256 _partOffset\\n    )\\n    external;\\n\\n    /// @notice Prepares a precompile result to be read by a precompile key for the specified offset.\\n    ///         The precompile result data is a concatenation of the precompile call status byte and its return data.\\n    ///         The preimage key is `6 ++ keccak256(precompile ++ input)[1:]`.\\n    /// @param _partOffset The offset of the precompile result being loaded.\\n    /// @param _precompile The precompile address\\n    /// @param _requiredGas The gas required to fully execute an L1 precompile.\\n    /// @param _input The input to the precompile call.\\n    function loadPrecompilePreimagePart(\\n        uint256 _partOffset,\\n        address _precompile,\\n        uint64 _requiredGas,\\n        bytes calldata _input\\n    )\\n    external;\\n}\\n\",\"keccak256\":\"0x07ef4149bead9415f75f4aef940e0a1dd5c0cfe3870ffa6fedb0ff165dd75a11\",\"license\":\"MIT\"},\"contracts/L1/dispute/FaultDisputeGame.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.15;\\n\\nimport \\\"./interfaces/ILockingPool.sol\\\";\\nimport \\\"contracts/L1/dispute/lib/Errors.sol\\\";\\nimport \\\"contracts/L1/dispute/lib/Types.sol\\\";\\nimport {Clone} from \\\"solady/src/utils/Clone.sol\\\";\\nimport {FixedPointMathLib} from \\\"solady/src/utils/FixedPointMathLib.sol\\\";\\nimport {Hashing} from \\\"../../libraries/Hashing.sol\\\";\\nimport {IBigStepper} from \\\"./interfaces/IBigStepper.sol\\\";\\nimport {IDelayedWETH} from \\\"./interfaces/IDelayedWETH.sol\\\";\\nimport {IDisputeGame} from \\\"./interfaces/IDisputeGame.sol\\\";\\nimport {IFaultDisputeGame} from \\\"./interfaces/IFaultDisputeGame.sol\\\";\\nimport {IInitializable} from \\\"contracts/L1/dispute/interfaces/IInitializable.sol\\\";\\nimport {IMVMStateCommitmentChain} from \\\"../rollup/IMVMStateCommitmentChain.sol\\\";\\nimport {IPreimageOracle} from \\\"../cannon/interfaces/IPreimageOracle.sol\\\";\\nimport {ISemver} from \\\"../../universal/ISemver.sol\\\";\\nimport {Lib_AddressManager} from \\\"../../libraries/resolver/Lib_AddressManager.sol\\\";\\n\\nimport {Lib_OVMCodec} from \\\"../../libraries/codec/Lib_OVMCodec.sol\\\";\\nimport {Lib_RLPReader} from \\\"../../libraries/rlp/Lib_RLPReader.sol\\\";\\nimport {Math} from \\\"@openzeppelin/contracts/utils/math/Math.sol\\\";\\nimport {OutputRoot, LocalPreimageKey, VMStatuses} from \\\"./lib/Types.sol\\\";\\nimport {StateCommitmentChain} from \\\"../rollup/StateCommitmentChain.sol\\\";\\nimport {Types} from \\\"../../libraries/Types.sol\\\";\\n\\n/// @title FaultDisputeGame\\n/// @notice An implementation of the `IFaultDisputeGame` interface.\\ncontract FaultDisputeGame is IFaultDisputeGame, Clone, ISemver {\\n    ////////////////////////////////////////////////////////////////\\n    //                         State Vars                         //\\n    ////////////////////////////////////////////////////////////////\\n\\n    /// @notice The absolute prestate of the instruction trace. This is a constant that is defined\\n    ///         by the program that is being used to execute the trace.\\n    Claim internal immutable ABSOLUTE_PRESTATE;\\n\\n    /// @notice The max depth of the game.\\n    uint256 internal immutable MAX_GAME_DEPTH;\\n\\n    /// @notice The max depth of the output bisection portion of the position tree. Immediately beneath\\n    ///         this depth, execution trace bisection begins.\\n    uint256 internal immutable SPLIT_DEPTH;\\n\\n    /// @notice The maximum duration that may accumulate on a team's chess clock before they may no longer respond.\\n    Duration internal immutable MAX_CLOCK_DURATION;\\n\\n    /// @notice An onchain VM that performs single instruction steps on a fault proof program trace.\\n    IBigStepper internal immutable VM;\\n\\n    /// @notice The game type ID.\\n    GameType internal immutable GAME_TYPE;\\n\\n    /// @notice WETH contract for holding ETH.\\n    IDelayedWETH internal immutable WETH;\\n\\n    /// @notice The address manager contract.\\n    Lib_AddressManager internal immutable ADDRESS_MANAGER;\\n\\n    /// @notice The chain ID of the L2 network this contract argues about.\\n    uint256 internal immutable L2_CHAIN_ID;\\n\\n    /// @notice The duration of the clock extension. Will be doubled if the grandchild is the root claim of an execution\\n    ///         trace bisection subgame.\\n    Duration internal immutable CLOCK_EXTENSION;\\n\\n    /// @notice The global root claim's position is always at gindex 1.\\n    Position internal constant ROOT_POSITION = Position.wrap(1);\\n\\n    /// @notice The index of the block number in the RLP-encoded block header.\\n    /// @dev Consensus encoding reference:\\n    /// https://github.com/paradigmxyz/reth/blob/5f82993c23164ce8ccdc7bf3ae5085205383a5c8/crates/primitives/src/header.rs#L368\\n    uint256 internal constant HEADER_BLOCK_NUMBER_INDEX = 8;\\n\\n    /// @notice Semantic version.\\n    /// @custom:semver 1.3.0-rc.1\\n    string public constant version = \\\"1.3.0-rc.1\\\";\\n\\n    /// @notice The starting timestamp of the game\\n    Timestamp public createdAt;\\n\\n    /// @notice The timestamp of the game's global resolution.\\n    Timestamp public resolvedAt;\\n\\n    /// @inheritdoc IDisputeGame\\n    GameStatus public status;\\n\\n    /// @notice Flag for the `initialize` function to prevent re-initialization.\\n    bool internal initialized;\\n\\n    /// @notice Flag for whether or not the L2 block number claim has been invalidated via `challengeRootL2Block`.\\n    bool public l2BlockNumberChallenged;\\n\\n    /// @notice The challenger of the L2 block number claim. Should always be `address(0)` if `l2BlockNumberChallenged`\\n    ///         is `false`. Should be the address of the challenger if `l2BlockNumberChallenged` is `true`.\\n    address public l2BlockNumberChallenger;\\n\\n    /// @notice An append-only array of all claims made during the dispute game.\\n    ClaimData[] public claimData;\\n\\n    /// @notice Credited balances for winning participants.\\n    mapping(address => uint256) public credit;\\n\\n    /// @notice A mapping to allow for constant-time lookups of existing claims.\\n    mapping(Hash => bool) public claims;\\n\\n    /// @notice A mapping of subgames rooted at a claim index to other claim indices in the subgame.\\n    mapping(uint256 => uint256[]) public subgames;\\n\\n    /// @notice A mapping of resolved subgames rooted at a claim index.\\n    mapping(uint256 => bool) public resolvedSubgames;\\n\\n    /// @notice A mapping of claim indices to resolution checkpoints.\\n    mapping(uint256 => ResolutionCheckpoint) public resolutionCheckpoints;\\n\\n    /// @notice The latest finalized output root, serving as the anchor for output bisection.\\n    OutputRoot public startingOutputRoot;\\n\\n    /// @notice The name of the SCC contract.\\n    string internal constant SCC_NAME = \\\"StateCommitmentChain\\\";\\n\\n    /// @notice The name of the locking pool contract.\\n    string internal constant LOCKING_POOL_NAME = \\\"FaultProofLockingPool\\\";\\n\\n    /// @param _gameType The type ID of the game.\\n    /// @param _absolutePrestate The absolute prestate of the instruction trace.\\n    /// @param _maxGameDepth The maximum depth of bisection.\\n    /// @param _splitDepth The final depth of the output bisection portion of the game.\\n    /// @param _clockExtension The clock extension to perform when the remaining duration is less than the extension.\\n    /// @param _maxClockDuration The maximum amount of time that may accumulate on a team's chess clock.\\n    /// @param _vm An onchain VM that performs single instruction steps on an FPP trace.\\n    /// @param _weth WETH contract for holding ETH.\\n    /// @param _addressManager The contract that stores the names and addresses of metis contracts.\\n    /// @param _l2ChainId Chain ID of the L2 network this contract argues about.\\n    constructor(\\n        GameType _gameType,\\n        Claim _absolutePrestate,\\n        uint256 _maxGameDepth,\\n        uint256 _splitDepth,\\n        Duration _clockExtension,\\n        Duration _maxClockDuration,\\n        IBigStepper _vm,\\n        IDelayedWETH _weth,\\n        Lib_AddressManager _addressManager,\\n        uint256 _l2ChainId\\n    ) {\\n        // The max game depth may not be greater than `LibPosition.MAX_POSITION_BITLEN - 1`.\\n        if (_maxGameDepth > LibPosition.MAX_POSITION_BITLEN - 1) revert MaxDepthTooLarge();\\n\\n        // The split depth plus one cannot be greater than or equal to the max game depth. We add\\n        // an additional depth to the split depth to avoid a bug in trace ancestor lookup. We know\\n        // that the case where the split depth is the max value for uint256 is equivalent to the\\n        // second check though we do need to check it explicitly to avoid an overflow.\\n        if (_splitDepth == type(uint256).max || _splitDepth + 1 >= _maxGameDepth) revert InvalidSplitDepth();\\n\\n        // The split depth cannot be 0 or 1 to stay in bounds of clock extension arithmetic.\\n        if (_splitDepth < 2) revert InvalidSplitDepth();\\n\\n        // The PreimageOracle challenge period must fit into uint64 so we can safely use it here.\\n        // Runtime check was added instead of changing the ABI since the contract is already\\n        // deployed in production. We perform the same check within the PreimageOracle for the\\n        // benefit of developers but also perform this check here defensively.\\n        if (_vm.oracle().challengePeriod() > type(uint64).max) revert InvalidChallengePeriod();\\n\\n        // Determine the maximum clock extension which is either the split depth extension or the\\n        // maximum game depth extension depending on the configuration of these contracts.\\n        uint256 splitDepthExtension = uint256(_clockExtension.raw()) * 2;\\n        uint256 maxGameDepthExtension = uint256(_clockExtension.raw()) + uint256(_vm.oracle().challengePeriod());\\n        uint256 maxClockExtension = Math.max(splitDepthExtension, maxGameDepthExtension);\\n\\n        // The maximum clock extension must fit into a uint64.\\n        if (maxClockExtension > type(uint64).max) revert InvalidClockExtension();\\n\\n        // The maximum clock extension may not be greater than the maximum clock duration.\\n        if (uint64(maxClockExtension) > _maxClockDuration.raw()) revert InvalidClockExtension();\\n\\n        // Set up initial game state.\\n        GAME_TYPE = _gameType;\\n        ABSOLUTE_PRESTATE = _absolutePrestate;\\n        MAX_GAME_DEPTH = _maxGameDepth;\\n        SPLIT_DEPTH = _splitDepth;\\n        CLOCK_EXTENSION = _clockExtension;\\n        MAX_CLOCK_DURATION = _maxClockDuration;\\n        VM = _vm;\\n        WETH = _weth;\\n        ADDRESS_MANAGER = _addressManager;\\n        L2_CHAIN_ID = _l2ChainId;\\n    }\\n\\n    /// @inheritdoc IInitializable\\n    function initialize() public payable virtual {\\n        // SAFETY: Any revert in this function will bubble up to the DisputeGameFactory and\\n        // prevent the game from being created.\\n        //\\n        // Implicit assumptions:\\n        // - The `gameStatus` state variable defaults to 0, which is `GameStatus.IN_PROGRESS`\\n        // - The dispute game factory will enforce the required bond to initialize the game.\\n        //\\n        // Explicit checks:\\n        // - The game must not have already been initialized.\\n        // - An output root cannot be proposed at or before the starting block number.\\n\\n        // INVARIANT: The game must not have already been initialized.\\n        if (initialized) revert AlreadyInitialized();\\n\\n        // Grab the latest anchor root.\\n        IMVMStateCommitmentChain stateCommitmentChain = IMVMStateCommitmentChain(ADDRESS_MANAGER.getAddress(SCC_NAME));\\n        (bytes32 scRoot, uint256 rootBlockNumber) = stateCommitmentChain.findEarliestDisputableBatch(L2_CHAIN_ID);\\n\\n        Hash root = Hash.wrap(scRoot);\\n\\n        // Should only happen if this is a new game type that hasn't been set up yet.\\n        if (root.raw() == bytes32(0)) revert AnchorRootNotFound();\\n\\n        // we do not allow to dispute an already disputed batch\\n        if (stateCommitmentChain.isDisputedBatch(scRoot)) revert ClaimAlreadyResolved();\\n\\n        // Set the starting output root.\\n        startingOutputRoot = OutputRoot({l2BlockNumber: rootBlockNumber, root: root});\\n\\n        // Revert if the calldata size is not the expected length.\\n        //\\n        // This is to prevent adding extra or omitting bytes from to `extraData` that result in a different game UUID\\n        // in the factory, but are not used by the game, which would allow for multiple dispute games for the same\\n        // output proposal to be created.\\n        //\\n        // Expected length: 0x7A\\n        // - 0x04 selector\\n        // - 0x14 creator address\\n        // - 0x20 root claim\\n        // - 0x20 l1 head\\n        // - 0x20 extraData\\n        // - 0x02 CWIA bytes\\n        assembly {\\n            if iszero(eq(calldatasize(), 0x7A)) {\\n            // Store the selector for `BadExtraData()` & revert\\n                mstore(0x00, 0x9824bdab)\\n                revert(0x1C, 0x04)\\n            }\\n        }\\n\\n        // Do not allow the game to be initialized if the root claim corresponds to a block at or before the\\n        // configured starting block number.\\n        if (l2BlockNumber() <= rootBlockNumber) revert UnexpectedRootClaim(rootClaim());\\n\\n        // Set the root claim\\n        claimData.push(\\n            ClaimData({\\n                parentIndex: type(uint32).max,\\n                counteredBy: address(0),\\n                claimant: gameCreator(),\\n                bond: uint128(msg.value),\\n                claim: rootClaim(),\\n                position: ROOT_POSITION,\\n                clock: LibClock.wrap(Duration.wrap(0), Timestamp.wrap(uint64(block.timestamp)))\\n            })\\n        );\\n\\n        // Set the game as initialized.\\n        initialized = true;\\n\\n        // Deposit the bond.\\n        WETH.deposit{value: msg.value}();\\n\\n        // Set the game's starting timestamp\\n        createdAt = Timestamp.wrap(uint64(block.timestamp));\\n    }\\n\\n    ////////////////////////////////////////////////////////////////\\n    //                  `IFaultDisputeGame` impl                  //\\n    ////////////////////////////////////////////////////////////////\\n\\n    /// @inheritdoc IFaultDisputeGame\\n    function step(\\n        uint256 _claimIndex,\\n        bool _isAttack,\\n        bytes calldata _stateData,\\n        bytes calldata _proof\\n    )\\n    public\\n    virtual\\n    {\\n        // INVARIANT: Steps cannot be made unless the game is currently in progress.\\n        if (status != GameStatus.IN_PROGRESS) revert GameNotInProgress();\\n\\n        // Get the parent. If it does not exist, the call will revert with OOB.\\n        ClaimData storage parent = claimData[_claimIndex];\\n\\n        // Pull the parent position out of storage.\\n        Position parentPos = parent.position;\\n        // Determine the position of the step.\\n        Position stepPos = parentPos.move(_isAttack);\\n\\n        // INVARIANT: A step cannot be made unless the move position is 1 below the `MAX_GAME_DEPTH`\\n        if (stepPos.depth() != MAX_GAME_DEPTH + 1) revert InvalidParent();\\n\\n        // Determine the expected pre & post states of the step.\\n        Claim preStateClaim;\\n        ClaimData storage postState;\\n        if (_isAttack) {\\n            // If the step position's index at depth is 0, the prestate is the absolute\\n            // prestate.\\n            // If the step is an attack at a trace index > 0, the prestate exists elsewhere in\\n            // the game state.\\n            // NOTE: We localize the `indexAtDepth` for the current execution trace subgame by finding\\n            //       the remainder of the index at depth divided by 2 ** (MAX_GAME_DEPTH - SPLIT_DEPTH),\\n            //       which is the number of leaves in each execution trace subgame. This is so that we can\\n            //       determine whether or not the step position is represents the `ABSOLUTE_PRESTATE`.\\n            preStateClaim = (stepPos.indexAtDepth() % (1 << (MAX_GAME_DEPTH - SPLIT_DEPTH))) == 0\\n                ? ABSOLUTE_PRESTATE\\n                : _findTraceAncestor(Position.wrap(parentPos.raw() - 1), parent.parentIndex, false).claim;\\n            // For all attacks, the poststate is the parent claim.\\n            postState = parent;\\n        } else {\\n            // If the step is a defense, the poststate exists elsewhere in the game state,\\n            // and the parent claim is the expected pre-state.\\n            preStateClaim = parent.claim;\\n            postState = _findTraceAncestor(Position.wrap(parentPos.raw() + 1), parent.parentIndex, false);\\n        }\\n\\n        // INVARIANT: The prestate is always invalid if the passed `_stateData` is not the\\n        //            preimage of the prestate claim hash.\\n        //            We ignore the highest order byte of the digest because it is used to\\n        //            indicate the VM Status and is added after the digest is computed.\\n        if (keccak256(_stateData) << 8 != preStateClaim.raw() << 8) revert InvalidPrestate();\\n\\n        // Compute the local preimage context for the step.\\n        Hash uuid = _findLocalContext(_claimIndex);\\n\\n        // INVARIANT: If a step is an attack, the poststate is valid if the step produces\\n        //            the same poststate hash as the parent claim's value.\\n        //            If a step is a defense:\\n        //              1. If the parent claim and the found post state agree with each other\\n        //                 (depth diff % 2 == 0), the step is valid if it produces the same\\n        //                 state hash as the post state's claim.\\n        //              2. If the parent claim and the found post state disagree with each other\\n        //                 (depth diff % 2 != 0), the parent cannot be countered unless the step\\n        //                 produces the same state hash as `postState.claim`.\\n        // SAFETY:    While the `attack` path does not need an extra check for the post\\n        //            state's depth in relation to the parent, we don't need another\\n        //            branch because (n - n) % 2 == 0.\\n        bool validStep = VM.step(_stateData, _proof, uuid.raw()) == postState.claim.raw();\\n        bool parentPostAgree = (parentPos.depth() - postState.position.depth()) % 2 == 0;\\n        if (parentPostAgree == validStep) revert ValidStep();\\n\\n        // INVARIANT: A step cannot be made against a claim for a second time.\\n        if (parent.counteredBy != address(0)) revert DuplicateStep();\\n\\n        // Set the parent claim as countered. We do not need to append a new claim to the game;\\n        // instead, we can just set the existing parent as countered.\\n        parent.counteredBy = msg.sender;\\n    }\\n\\n    /// @notice Generic move function, used for both `attack` and `defend` moves.\\n    /// @param _disputed The disputed `Claim`.\\n    /// @param _challengeIndex The index of the claim being moved against.\\n    /// @param _claim The claim at the next logical position in the game.\\n    /// @param _isAttack Whether or not the move is an attack or defense.\\n    function move(Claim _disputed, uint256 _challengeIndex, Claim _claim, bool _isAttack) public payable virtual {\\n        // INVARIANT: Moves cannot be made unless the game is currently in progress.\\n        if (status != GameStatus.IN_PROGRESS) revert GameNotInProgress();\\n\\n        // Get the parent. If it does not exist, the call will revert with OOB.\\n        ClaimData memory parent = claimData[_challengeIndex];\\n\\n        // INVARIANT: The claim at the _challengeIndex must be the disputed claim.\\n        if (Claim.unwrap(parent.claim) != Claim.unwrap(_disputed)) revert InvalidDisputedClaimIndex();\\n\\n        // Compute the position that the claim commits to. Because the parent's position is already\\n        // known, we can compute the next position by moving left or right depending on whether\\n        // or not the move is an attack or defense.\\n        Position parentPos = parent.position;\\n        Position nextPosition = parentPos.move(_isAttack);\\n        uint256 nextPositionDepth = nextPosition.depth();\\n\\n        // INVARIANT: A defense can never be made against the root claim of either the output root game or any\\n        //            of the execution trace bisection subgames. This is because the root claim commits to the\\n        //            entire state. Therefore, the only valid defense is to do nothing if it is agreed with.\\n        if ((_challengeIndex == 0 || nextPositionDepth == SPLIT_DEPTH + 2) && !_isAttack) {\\n            revert CannotDefendRootClaim();\\n        }\\n\\n        // INVARIANT: No moves against the root claim can be made after it has been challenged with\\n        //            `challengeRootL2Block`.`\\n        if (l2BlockNumberChallenged && _challengeIndex == 0) revert L2BlockNumberChallenged();\\n\\n        // INVARIANT: A move can never surpass the `MAX_GAME_DEPTH`. The only option to counter a\\n        //            claim at this depth is to perform a single instruction step on-chain via\\n        //            the `step` function to prove that the state transition produces an unexpected\\n        //            post-state.\\n        if (nextPositionDepth > MAX_GAME_DEPTH) revert GameDepthExceeded();\\n\\n        // When the next position surpasses the split depth (i.e., it is the root claim of an execution\\n        // trace bisection sub-game), we need to perform some extra verification steps.\\n        if (nextPositionDepth == SPLIT_DEPTH + 1) {\\n            _verifyExecBisectionRoot(_claim, _challengeIndex, parentPos, _isAttack);\\n        }\\n\\n        // INVARIANT: The `msg.value` must exactly equal the required bond.\\n        if (getRequiredBond(nextPosition) != msg.value) revert IncorrectBondAmount();\\n\\n        // Compute the duration of the next clock. This is done by adding the duration of the\\n        // grandparent claim to the difference between the current block timestamp and the\\n        // parent's clock timestamp.\\n        Duration nextDuration = getChallengerDuration(_challengeIndex);\\n\\n        // INVARIANT: A move can never be made once its clock has exceeded `MAX_CLOCK_DURATION`\\n        //            seconds of time.\\n        if (nextDuration.raw() == MAX_CLOCK_DURATION.raw()) revert ClockTimeExceeded();\\n\\n        // Clock extension is a mechanism that automatically extends the clock for a potential\\n        // grandchild claim when there would be less than the clock extension time left if a player\\n        // is forced to inherit another team's clock when countering a freeloader claim. Exact\\n        // amount of clock extension time depends exactly where we are within the game.\\n        uint64 actualExtension;\\n        if (nextPositionDepth == MAX_GAME_DEPTH - 1) {\\n            // If the next position is `MAX_GAME_DEPTH - 1` then we're about to execute a step. Our\\n            // clock extension must therefore account for the LPP challenge period in addition to\\n            // the standard clock extension.\\n            actualExtension = CLOCK_EXTENSION.raw() + uint64(VM.oracle().challengePeriod());\\n        } else if (nextPositionDepth == SPLIT_DEPTH - 1) {\\n            // If the next position is `SPLIT_DEPTH - 1` then we're about to begin an execution\\n            // trace bisection and we need to give extra time for the off-chain challenge agent to\\n            // be able to generate the initial instruction trace on the native FPVM.\\n            actualExtension = CLOCK_EXTENSION.raw() * 2;\\n        } else {\\n            // Otherwise, we just use the standard clock extension.\\n            actualExtension = CLOCK_EXTENSION.raw();\\n        }\\n\\n        // Check if we need to apply the clock extension.\\n        if (nextDuration.raw() > MAX_CLOCK_DURATION.raw() - actualExtension) {\\n            nextDuration = Duration.wrap(MAX_CLOCK_DURATION.raw() - actualExtension);\\n        }\\n\\n        // Construct the next clock with the new duration and the current block timestamp.\\n        Clock nextClock = LibClock.wrap(nextDuration, Timestamp.wrap(uint64(block.timestamp)));\\n\\n        // INVARIANT: There cannot be multiple identical claims with identical moves on the same challengeIndex. Multiple\\n        //            claims at the same position may dispute the same challengeIndex. However, they must have different\\n        //            values.\\n        Hash claimHash = _claim.hashClaimPos(nextPosition, _challengeIndex);\\n        if (claims[claimHash]) revert ClaimAlreadyExists();\\n        claims[claimHash] = true;\\n\\n        // Create the new claim.\\n        claimData.push(\\n            ClaimData({\\n                parentIndex: uint32(_challengeIndex),\\n            // This is updated during subgame resolution\\n                counteredBy: address(0),\\n                claimant: msg.sender,\\n                bond: uint128(msg.value),\\n                claim: _claim,\\n                position: nextPosition,\\n                clock: nextClock\\n            })\\n        );\\n\\n        // Update the subgame rooted at the parent claim.\\n        subgames[_challengeIndex].push(claimData.length - 1);\\n\\n        // Deposit the bond.\\n        WETH.deposit{value: msg.value}();\\n\\n        // Emit the appropriate event for the attack or defense.\\n        emit Move(_challengeIndex, _claim, msg.sender);\\n    }\\n\\n    /// @inheritdoc IFaultDisputeGame\\n    function attack(Claim _disputed, uint256 _parentIndex, Claim _claim) external payable {\\n        move(_disputed, _parentIndex, _claim, true);\\n    }\\n\\n    /// @inheritdoc IFaultDisputeGame\\n    function defend(Claim _disputed, uint256 _parentIndex, Claim _claim) external payable {\\n        move(_disputed, _parentIndex, _claim, false);\\n    }\\n\\n    /// @inheritdoc IFaultDisputeGame\\n    function addLocalData(uint256 _ident, uint256 _execLeafIdx, uint256 _partOffset) external {\\n        // INVARIANT: Local data can only be added if the game is currently in progress.\\n        if (status != GameStatus.IN_PROGRESS) revert GameNotInProgress();\\n\\n        (Claim starting, Position startingPos, Claim disputed, Position disputedPos) =\\n                        _findStartingAndDisputedOutputs(_execLeafIdx);\\n        Hash uuid = _computeLocalContext(starting, startingPos, disputed, disputedPos);\\n\\n        IPreimageOracle oracle = VM.oracle();\\n        if (_ident == LocalPreimageKey.L1_HEAD_HASH) {\\n            // Load the L1 head hash\\n            oracle.loadLocalData(_ident, uuid.raw(), l1Head().raw(), 32, _partOffset);\\n        } else if (_ident == LocalPreimageKey.STARTING_OUTPUT_ROOT) {\\n            // Load the starting proposal's output root.\\n            oracle.loadLocalData(_ident, uuid.raw(), starting.raw(), 32, _partOffset);\\n        } else if (_ident == LocalPreimageKey.DISPUTED_OUTPUT_ROOT) {\\n            // Load the disputed proposal's output root\\n            oracle.loadLocalData(_ident, uuid.raw(), disputed.raw(), 32, _partOffset);\\n        } else if (_ident == LocalPreimageKey.DISPUTED_L2_BLOCK_NUMBER) {\\n            // Load the disputed proposal's L2 block number as a big-endian uint64 in the\\n            // high order 8 bytes of the word.\\n\\n            // We add the index at depth + 1 to the starting block number to get the disputed L2\\n            // block number.\\n            uint256 l2Number = startingOutputRoot.l2BlockNumber + disputedPos.traceIndex(SPLIT_DEPTH) + 1;\\n\\n            // Choose the minimum between the `l2BlockNumber` claim and the bisected-to L2 block number.\\n            l2Number = l2Number < l2BlockNumber() ? l2Number : l2BlockNumber();\\n\\n            oracle.loadLocalData(_ident, uuid.raw(), bytes32(l2Number << 0xC0), 8, _partOffset);\\n        } else if (_ident == LocalPreimageKey.CHAIN_ID) {\\n            // Load the chain ID as a big-endian uint64 in the high order 8 bytes of the word.\\n            oracle.loadLocalData(_ident, uuid.raw(), bytes32(L2_CHAIN_ID << 0xC0), 8, _partOffset);\\n        } else {\\n            revert InvalidLocalIdent();\\n        }\\n    }\\n\\n    /// @inheritdoc IFaultDisputeGame\\n    function getNumToResolve(uint256 _claimIndex) public view returns (uint256 numRemainingChildren_) {\\n        ResolutionCheckpoint storage checkpoint = resolutionCheckpoints[_claimIndex];\\n        uint256[] storage challengeIndices = subgames[_claimIndex];\\n        uint256 challengeIndicesLen = challengeIndices.length;\\n\\n        numRemainingChildren_ = challengeIndicesLen - checkpoint.subgameIndex;\\n    }\\n\\n    /// @inheritdoc IFaultDisputeGame\\n    function l2BlockNumber() public pure returns (uint256 l2BlockNumber_) {\\n        l2BlockNumber_ = _getArgUint256(0x54);\\n    }\\n\\n    /// @inheritdoc IFaultDisputeGame\\n    function startingBlockNumber() external view returns (uint256 startingBlockNumber_) {\\n        startingBlockNumber_ = startingOutputRoot.l2BlockNumber;\\n    }\\n\\n    /// @inheritdoc IFaultDisputeGame\\n    function startingRootHash() external view returns (Hash startingRootHash_) {\\n        startingRootHash_ = startingOutputRoot.root;\\n    }\\n\\n    /// @notice Challenges the root L2 block number by providing the preimage of the output root and the L2 block header\\n    ///         and showing that the committed L2 block number is incorrect relative to the claimed L2 block number.\\n    /// @param _outputRootProof The output root proof.\\n    /// @param _headerRLP The RLP-encoded L2 block header.\\n    function challengeRootL2Block(\\n        Lib_OVMCodec.ChainBatchHeader calldata _outputRootProof,\\n        bytes calldata _headerRLP\\n    )\\n    external\\n    {\\n        // INVARIANT: Moves cannot be made unless the game is currently in progress.\\n        if (status != GameStatus.IN_PROGRESS) revert GameNotInProgress();\\n\\n        // The root L2 block claim can only be challenged once.\\n        if (l2BlockNumberChallenged) revert L2BlockNumberChallenged();\\n\\n        // Verify the output root preimage.\\n        if (Lib_OVMCodec.hashBatchHeader(_outputRootProof) != rootClaim().raw()) revert InvalidOutputRootProof();\\n\\n        // Verify the block hash preimage.\\n        (, , bytes32 latestBlockhash, ) = abi.decode(_outputRootProof.extraData, (uint256, address, bytes32, uint256));\\n        if (keccak256(_headerRLP) != latestBlockhash) revert InvalidHeaderRLP();\\n\\n        // Decode the header RLP to find the number of the block. In the consensus encoding, the timestamp\\n        // is the 9th element in the list that represents the block header.\\n        Lib_RLPReader.RLPItem[] memory headerContents = Lib_RLPReader.readList(Lib_RLPReader.toRLPItem(_headerRLP));\\n        bytes memory rawBlockNumber = Lib_RLPReader.readBytes(headerContents[HEADER_BLOCK_NUMBER_INDEX]);\\n\\n        // Sanity check the block number string length.\\n        if (rawBlockNumber.length > 32) revert InvalidHeaderRLP();\\n\\n        // Convert the raw, left-aligned block number to a uint256 by aligning it as a big-endian\\n        // number in the low-order bytes of a 32-byte word.\\n        //\\n        // SAFETY: The length of `rawBlockNumber` is checked above to ensure it is at most 32 bytes.\\n        uint256 blockNumber;\\n        assembly {\\n            blockNumber := shr(shl(0x03, sub(0x20, mload(rawBlockNumber))), mload(add(rawBlockNumber, 0x20)))\\n        }\\n\\n        // Ensure the block number does not match the block number claimed in the dispute game.\\n        if (blockNumber == l2BlockNumber()) revert BlockNumberMatches();\\n\\n        // check block number is in batch range\\n        if (blockNumber < _outputRootProof.prevTotalElements + 1 || blockNumber > _outputRootProof.prevTotalElements + _outputRootProof.batchSize) {\\n            revert InvalidHeaderRLP();\\n        }\\n\\n        // Issue a special counter to the root claim. This counter will always win the root claim subgame, and receive\\n        // the bond from the root claimant.\\n        l2BlockNumberChallenger = msg.sender;\\n        l2BlockNumberChallenged = true;\\n    }\\n\\n    ////////////////////////////////////////////////////////////////\\n    //                    `IDisputeGame` impl                     //\\n    ////////////////////////////////////////////////////////////////\\n\\n    /// @inheritdoc IDisputeGame\\n    function resolve() external returns (GameStatus status_) {\\n        // INVARIANT: Resolution cannot occur unless the game is currently in progress.\\n        if (status != GameStatus.IN_PROGRESS) revert GameNotInProgress();\\n\\n        // INVARIANT: Resolution cannot occur unless the absolute root subgame has been resolved.\\n        if (!resolvedSubgames[0]) revert OutOfOrderResolution();\\n\\n        // Update the global game status; The dispute has concluded.\\n        status_ = claimData[0].counteredBy == address(0) ? GameStatus.DEFENDER_WINS : GameStatus.CHALLENGER_WINS;\\n        resolvedAt = Timestamp.wrap(uint64(block.timestamp));\\n\\n        // Update the status and emit the resolved event, note that we're performing an assignment here.\\n        emit Resolved(status = status_);\\n\\n        // Handle locking pool slashing if challenger wins\\n        if (status_ == GameStatus.CHALLENGER_WINS) {\\n            address lockingPool = ADDRESS_MANAGER.getAddress(LOCKING_POOL_NAME);\\n            if (lockingPool != address(0)) {\\n                // Get the winning claimant (the one who successfully countered the root claim)\\n                address winner = claimData[0].counteredBy;\\n\\n                // Call slash on the locking pool\\n                try ILockingPool(lockingPool).slash(winner) {\\n                    // Slashing succeeded\\n                } catch (bytes memory reason) {\\n                    emit SlashingFailed(winner, reason);\\n                }\\n            }\\n\\n            // Mark batch as disputed\\n            IMVMStateCommitmentChain(ADDRESS_MANAGER.getAddress(SCC_NAME)).saveDisputedBatch(claimData[0].claim.raw());\\n        }\\n    }\\n\\n    /// @inheritdoc IFaultDisputeGame\\n    function resolveClaim(uint256 _claimIndex, uint256 _numToResolve) external {\\n        // INVARIANT: Resolution cannot occur unless the game is currently in progress.\\n        if (status != GameStatus.IN_PROGRESS) revert GameNotInProgress();\\n\\n        ClaimData storage subgameRootClaim = claimData[_claimIndex];\\n        Duration challengeClockDuration = getChallengerDuration(_claimIndex);\\n\\n        // INVARIANT: Cannot resolve a subgame unless the clock of its would-be counter has expired\\n        // INVARIANT: Assuming ordered subgame resolution, challengeClockDuration is always >= MAX_CLOCK_DURATION if all\\n        // descendant subgames are resolved\\n        if (challengeClockDuration.raw() < MAX_CLOCK_DURATION.raw()) revert ClockNotExpired();\\n\\n        // INVARIANT: Cannot resolve a subgame twice.\\n        if (resolvedSubgames[_claimIndex]) revert ClaimAlreadyResolved();\\n\\n        uint256[] storage challengeIndices = subgames[_claimIndex];\\n        uint256 challengeIndicesLen = challengeIndices.length;\\n\\n        // Uncontested claims are resolved implicitly unless they are the root claim. Pay out the bond to the claimant\\n        // and return early.\\n        if (challengeIndicesLen == 0 && _claimIndex != 0) {\\n            // In the event that the parent claim is at the max depth, there will always be 0 subgames. If the\\n            // `counteredBy` field is set and there are no subgames, this implies that the parent claim was successfully\\n            // stepped against. In this case, we pay out the bond to the party that stepped against the parent claim.\\n            // Otherwise, the parent claim is uncontested, and the bond is returned to the claimant.\\n            address counteredBy = subgameRootClaim.counteredBy;\\n            address recipient = counteredBy == address(0) ? subgameRootClaim.claimant : counteredBy;\\n            _distributeBond(recipient, subgameRootClaim);\\n            resolvedSubgames[_claimIndex] = true;\\n            return;\\n        }\\n\\n        // Fetch the resolution checkpoint from storage.\\n        ResolutionCheckpoint memory checkpoint = resolutionCheckpoints[_claimIndex];\\n\\n        // If the checkpoint does not currently exist, initialize the current left most position as max u128.\\n        if (!checkpoint.initialCheckpointComplete) {\\n            checkpoint.leftmostPosition = Position.wrap(type(uint128).max);\\n            checkpoint.initialCheckpointComplete = true;\\n\\n            // If `_numToResolve == 0`, assume that we can check all child subgames in this one callframe.\\n            if (_numToResolve == 0) _numToResolve = challengeIndicesLen;\\n        }\\n\\n        // Assume parent is honest until proven otherwise\\n        uint256 lastToResolve = checkpoint.subgameIndex + _numToResolve;\\n        uint256 finalCursor = lastToResolve > challengeIndicesLen ? challengeIndicesLen : lastToResolve;\\n        for (uint256 i = checkpoint.subgameIndex; i < finalCursor; i++) {\\n            uint256 challengeIndex = challengeIndices[i];\\n\\n            // INVARIANT: Cannot resolve a subgame containing an unresolved claim\\n            if (!resolvedSubgames[challengeIndex]) revert OutOfOrderResolution();\\n\\n            ClaimData storage claim = claimData[challengeIndex];\\n\\n            // If the child subgame is uncountered and further left than the current left-most counter,\\n            // update the parent subgame's `countered` address and the current `leftmostCounter`.\\n            // The left-most correct counter is preferred in bond payouts in order to discourage attackers\\n            // from countering invalid subgame roots via an invalid defense position. As such positions\\n            // cannot be correctly countered.\\n            // Note that correctly positioned defense, but invalid claimes can still be successfully countered.\\n            if (claim.counteredBy == address(0) && checkpoint.leftmostPosition.raw() > claim.position.raw()) {\\n                checkpoint.counteredBy = claim.claimant;\\n                checkpoint.leftmostPosition = claim.position;\\n            }\\n        }\\n\\n        // Increase the checkpoint's cursor position by the number of children that were checked.\\n        checkpoint.subgameIndex = uint32(finalCursor);\\n\\n        // Persist the checkpoint and allow for continuing in a separate transaction, if resolution is not already\\n        // complete.\\n        resolutionCheckpoints[_claimIndex] = checkpoint;\\n\\n        // If all children have been traversed in the above loop, the subgame may be resolved. Otherwise, persist the\\n        // checkpoint and allow for continuation in a separate transaction.\\n        if (checkpoint.subgameIndex == challengeIndicesLen) {\\n            address countered = checkpoint.counteredBy;\\n\\n            // Mark the subgame as resolved.\\n            resolvedSubgames[_claimIndex] = true;\\n\\n            // Distribute the bond to the appropriate party.\\n            if (_claimIndex == 0 && l2BlockNumberChallenged) {\\n                // Special case: If the root claim has been challenged with the `challengeRootL2Block` function,\\n                // the bond is always paid out to the issuer of that challenge.\\n                address challenger = l2BlockNumberChallenger;\\n                _distributeBond(challenger, subgameRootClaim);\\n                subgameRootClaim.counteredBy = challenger;\\n            } else {\\n                // If the parent was not successfully countered, pay out the parent's bond to the claimant.\\n                // If the parent was successfully countered, pay out the parent's bond to the challenger.\\n                _distributeBond(countered == address(0) ? subgameRootClaim.claimant : countered, subgameRootClaim);\\n\\n                // Once a subgame is resolved, we percolate the result up the DAG so subsequent calls to\\n                // resolveClaim will not need to traverse this subgame.\\n                subgameRootClaim.counteredBy = countered;\\n            }\\n        }\\n    }\\n\\n    /// @inheritdoc IDisputeGame\\n    function gameType() public view override returns (GameType gameType_) {\\n        gameType_ = GAME_TYPE;\\n    }\\n\\n    /// @inheritdoc IDisputeGame\\n    function gameCreator() public pure returns (address creator_) {\\n        creator_ = _getArgAddress(0x00);\\n    }\\n\\n    /// @inheritdoc IDisputeGame\\n    function rootClaim() public pure returns (Claim rootClaim_) {\\n        rootClaim_ = Claim.wrap(_getArgBytes32(0x14));\\n    }\\n\\n    /// @inheritdoc IDisputeGame\\n    function l1Head() public pure returns (Hash l1Head_) {\\n        l1Head_ = Hash.wrap(_getArgBytes32(0x34));\\n    }\\n\\n    /// @inheritdoc IDisputeGame\\n    function extraData() public pure returns (bytes memory extraData_) {\\n        // The extra data starts at the second word within the cwia calldata and\\n        // is 32 bytes long.\\n        extraData_ = _getArgBytes(0x54, 0x20);\\n    }\\n\\n    /// @inheritdoc IDisputeGame\\n    function gameData() external view returns (GameType gameType_, Claim rootClaim_, bytes memory extraData_) {\\n        gameType_ = gameType();\\n        rootClaim_ = rootClaim();\\n        extraData_ = extraData();\\n    }\\n\\n    ////////////////////////////////////////////////////////////////\\n    //                       MISC EXTERNAL                        //\\n    ////////////////////////////////////////////////////////////////\\n\\n    /// @notice Returns the required bond for a given move kind.\\n    /// @param _position The position of the bonded interaction.\\n    /// @return requiredBond_ The required ETH bond for the given move, in wei.\\n    function getRequiredBond(Position _position) public view returns (uint256 requiredBond_) {\\n        if (msg.sender == claimData[0].claimant) {\\n            // The root claimant does not need to pay a bond. Since we already locked the prize in the pool.\\n            // Only the challenger needs to pay the bond.\\n            return 0;\\n        }\\n\\n        uint256 depth = uint256(_position.depth());\\n        if (depth > MAX_GAME_DEPTH) revert GameDepthExceeded();\\n\\n        // Values taken from Big Bonds v1.5 (TM) spec.\\n        uint256 assumedBaseFee = 200 gwei;\\n        uint256 baseGasCharged = 400_000;\\n        uint256 highGasCharged = 300_000_000;\\n\\n        // Goal here is to compute the fixed multiplier that will be applied to the base gas\\n        // charged to get the required gas amount for the given depth. We apply this multiplier\\n        // some `n` times where `n` is the depth of the position. We are looking for some number\\n        // that, when multiplied by itself `MAX_GAME_DEPTH` times and then multiplied by the base\\n        // gas charged, will give us the maximum gas that we want to charge.\\n        // We want to solve for (highGasCharged/baseGasCharged) ** (1/MAX_GAME_DEPTH).\\n        // We know that a ** (b/c) is equal to e ** (ln(a) * (b/c)).\\n        // We can compute e ** (ln(a) * (b/c)) quite easily with FixedPointMathLib.\\n\\n        // Set up a, b, and c.\\n        uint256 a = highGasCharged / baseGasCharged;\\n        uint256 b = FixedPointMathLib.WAD;\\n        uint256 c = MAX_GAME_DEPTH * FixedPointMathLib.WAD;\\n\\n        // Compute ln(a).\\n        // slither-disable-next-line divide-before-multiply\\n        uint256 lnA = uint256(FixedPointMathLib.lnWad(int256(a * FixedPointMathLib.WAD)));\\n\\n        // Computes (b / c) with full precision using WAD = 1e18.\\n        uint256 bOverC = FixedPointMathLib.divWad(b, c);\\n\\n        // Compute e ** (ln(a) * (b/c))\\n        // sMulWad can be used here since WAD = 1e18 maintains the same precision.\\n        uint256 numerator = FixedPointMathLib.mulWad(lnA, bOverC);\\n        int256 base = FixedPointMathLib.expWad(int256(numerator));\\n\\n        // Compute the required gas amount.\\n        int256 rawGas = FixedPointMathLib.powWad(base, int256(depth * FixedPointMathLib.WAD));\\n        uint256 requiredGas = FixedPointMathLib.mulWad(baseGasCharged, uint256(rawGas));\\n\\n        // Compute the required bond.\\n        requiredBond_ = assumedBaseFee * requiredGas;\\n    }\\n\\n    /// @notice Claim the credit belonging to the recipient address.\\n    /// @param _recipient The owner and recipient of the credit.\\n    function claimCredit(address _recipient) external {\\n        // Remove the credit from the recipient prior to performing the external call.\\n        uint256 recipientCredit = credit[_recipient];\\n        credit[_recipient] = 0;\\n\\n        // Revert if the recipient has no credit to claim.\\n        if (recipientCredit == 0) revert NoCreditToClaim();\\n\\n        // Try to withdraw the WETH amount so it can be used here.\\n        WETH.withdraw(_recipient, recipientCredit);\\n\\n        // Transfer the credit to the recipient.\\n        (bool success,) = _recipient.call{value : recipientCredit}(hex\\\"\\\");\\n        if (!success) revert BondTransferFailed();\\n    }\\n\\n    /// @notice Returns the amount of time elapsed on the potential challenger to `_claimIndex`'s chess clock. Maxes\\n    ///         out at `MAX_CLOCK_DURATION`.\\n    /// @param _claimIndex The index of the subgame root claim.\\n    /// @return duration_ The time elapsed on the potential challenger to `_claimIndex`'s chess clock.\\n    function getChallengerDuration(uint256 _claimIndex) public view returns (Duration duration_) {\\n        // INVARIANT: The game must be in progress to query the remaining time to respond to a given claim.\\n        if (status != GameStatus.IN_PROGRESS) {\\n            revert GameNotInProgress();\\n        }\\n\\n        // Fetch the subgame root claim.\\n        ClaimData storage subgameRootClaim = claimData[_claimIndex];\\n\\n        // Fetch the parent of the subgame root's clock, if it exists.\\n        Clock parentClock;\\n        if (subgameRootClaim.parentIndex != type(uint32).max) {\\n            parentClock = claimData[subgameRootClaim.parentIndex].clock;\\n        }\\n\\n        // Compute the duration elapsed of the potential challenger's clock.\\n        uint64 challengeDuration =\\n                            uint64(parentClock.duration().raw() + (block.timestamp - subgameRootClaim.clock.timestamp().raw()));\\n        duration_ = challengeDuration > MAX_CLOCK_DURATION.raw() ? MAX_CLOCK_DURATION : Duration.wrap(challengeDuration);\\n    }\\n\\n    /// @notice Returns the length of the `claimData` array.\\n    function claimDataLen() external view returns (uint256 len_) {\\n        len_ = claimData.length;\\n    }\\n\\n    ////////////////////////////////////////////////////////////////\\n    //                     IMMUTABLE GETTERS                      //\\n    ////////////////////////////////////////////////////////////////\\n\\n    /// @notice Returns the absolute prestate of the instruction trace.\\n    function absolutePrestate() external view returns (Claim absolutePrestate_) {\\n        absolutePrestate_ = ABSOLUTE_PRESTATE;\\n    }\\n\\n    /// @notice Returns the max game depth.\\n    function maxGameDepth() external view returns (uint256 maxGameDepth_) {\\n        maxGameDepth_ = MAX_GAME_DEPTH;\\n    }\\n\\n    /// @notice Returns the split depth.\\n    function splitDepth() external view returns (uint256 splitDepth_) {\\n        splitDepth_ = SPLIT_DEPTH;\\n    }\\n\\n    /// @notice Returns the max clock duration.\\n    function maxClockDuration() external view returns (Duration maxClockDuration_) {\\n        maxClockDuration_ = MAX_CLOCK_DURATION;\\n    }\\n\\n    /// @notice Returns the clock extension constant.\\n    function clockExtension() external view returns (Duration clockExtension_) {\\n        clockExtension_ = CLOCK_EXTENSION;\\n    }\\n\\n    /// @notice Returns the address of the VM.\\n    function vm() external view returns (IBigStepper vm_) {\\n        vm_ = VM;\\n    }\\n\\n    /// @notice Returns the WETH contract for holding ETH.\\n    function weth() external view returns (IDelayedWETH weth_) {\\n        weth_ = WETH;\\n    }\\n\\n    /// @notice Returns the anchor state registry contract.\\n    function scc() external view returns (IMVMStateCommitmentChain scc_) {\\n        scc_ = IMVMStateCommitmentChain(ADDRESS_MANAGER.getAddress(SCC_NAME));\\n    }\\n\\n    /// @notice Returns the chain ID of the L2 network this contract argues about.\\n    function l2ChainId() external view returns (uint256 l2ChainId_) {\\n        l2ChainId_ = L2_CHAIN_ID;\\n    }\\n\\n    ////////////////////////////////////////////////////////////////\\n    //                          HELPERS                           //\\n    ////////////////////////////////////////////////////////////////\\n\\n    /// @notice Pays out the bond of a claim to a given recipient.\\n    /// @param _recipient The recipient of the bond.\\n    /// @param _bonded The claim to pay out the bond of.\\n    function _distributeBond(address _recipient, ClaimData storage _bonded) internal {\\n        // Set all bits in the bond value to indicate that the bond has been paid out.\\n        uint256 bond = _bonded.bond;\\n\\n        // Increase the recipient's credit.\\n        credit[_recipient] += bond;\\n\\n        // Unlock the bond.\\n        WETH.unlock(_recipient, bond);\\n    }\\n\\n    /// @notice Verifies the integrity of an execution bisection subgame's root claim. Reverts if the claim\\n    ///         is invalid.\\n    /// @param _rootClaim The root claim of the execution bisection subgame.\\n    function _verifyExecBisectionRoot(\\n        Claim _rootClaim,\\n        uint256 _parentIdx,\\n        Position _parentPos,\\n        bool _isAttack\\n    )\\n    internal\\n    view\\n    {\\n        // The root claim of an execution trace bisection sub-game must:\\n        // 1. Signal that the VM panicked or resulted in an invalid transition if the disputed output root\\n        //    was made by the opposing party.\\n        // 2. Signal that the VM resulted in a valid transition if the disputed output root was made by the same party.\\n\\n        // If the move is a defense, the disputed output could have been made by either party. In this case, we\\n        // need to search for the parent output to determine what the expected status byte should be.\\n        Position disputedLeafPos = Position.wrap(_parentPos.raw() + 1);\\n        ClaimData storage disputed = _findTraceAncestor({_pos: disputedLeafPos, _start: _parentIdx, _global: true});\\n        uint8 vmStatus = uint8(_rootClaim.raw()[0]);\\n\\n        if (_isAttack || disputed.position.depth() % 2 == SPLIT_DEPTH % 2) {\\n            // If the move is an attack, the parent output is always deemed to be disputed. In this case, we only need\\n            // to check that the root claim signals that the VM panicked or resulted in an invalid transition.\\n            // If the move is a defense, and the disputed output and creator of the execution trace subgame disagree,\\n            // the root claim should also signal that the VM panicked or resulted in an invalid transition.\\n            if (!(vmStatus == VMStatuses.INVALID.raw() || vmStatus == VMStatuses.PANIC.raw())) {\\n                revert UnexpectedRootClaim(_rootClaim);\\n            }\\n        } else if (vmStatus != VMStatuses.VALID.raw()) {\\n            // The disputed output and the creator of the execution trace subgame agree. The status byte should\\n            // have signaled that the VM succeeded.\\n            revert UnexpectedRootClaim(_rootClaim);\\n        }\\n    }\\n\\n    /// @notice Finds the trace ancestor of a given position within the DAG.\\n    /// @param _pos The position to find the trace ancestor claim of.\\n    /// @param _start The index to start searching from.\\n    /// @param _global Whether or not to search the entire dag or just within an execution trace subgame. If set to\\n    ///                `true`, and `_pos` is at or above the split depth, this function will revert.\\n    /// @return ancestor_ The ancestor claim that commits to the same trace index as `_pos`.\\n    function _findTraceAncestor(\\n        Position _pos,\\n        uint256 _start,\\n        bool _global\\n    )\\n    internal\\n    view\\n    returns (ClaimData storage ancestor_)\\n    {\\n        // Grab the trace ancestor's expected position.\\n        Position traceAncestorPos = _global ? _pos.traceAncestor() : _pos.traceAncestorBounded(SPLIT_DEPTH);\\n\\n        // Walk up the DAG to find a claim that commits to the same trace index as `_pos`. It is\\n        // guaranteed that such a claim exists.\\n        ancestor_ = claimData[_start];\\n        while (ancestor_.position.raw() != traceAncestorPos.raw()) {\\n            ancestor_ = claimData[ancestor_.parentIndex];\\n        }\\n    }\\n\\n    /// @notice Finds the starting and disputed output root for a given `ClaimData` within the DAG. This\\n    ///         `ClaimData` must be below the `SPLIT_DEPTH`.\\n    /// @param _start The index within `claimData` of the claim to start searching from.\\n    /// @return startingClaim_ The starting output root claim.\\n    /// @return startingPos_ The starting output root position.\\n    /// @return disputedClaim_ The disputed output root claim.\\n    /// @return disputedPos_ The disputed output root position.\\n    function _findStartingAndDisputedOutputs(uint256 _start)\\n    internal\\n    view\\n    returns (Claim startingClaim_, Position startingPos_, Claim disputedClaim_, Position disputedPos_)\\n    {\\n        // Fatch the starting claim.\\n        uint256 claimIdx = _start;\\n        ClaimData storage claim = claimData[claimIdx];\\n\\n        // If the starting claim's depth is less than or equal to the split depth, we revert as this is UB.\\n        if (claim.position.depth() <= SPLIT_DEPTH) revert ClaimAboveSplit();\\n\\n        // We want to:\\n        // 1. Find the first claim at the split depth.\\n        // 2. Determine whether it was the starting or disputed output for the exec game.\\n        // 3. Find the complimentary claim depending on the info from #2 (pre or post).\\n\\n        // Walk up the DAG until the ancestor's depth is equal to the split depth.\\n        uint256 currentDepth;\\n        ClaimData storage execRootClaim = claim;\\n        while ((currentDepth = claim.position.depth()) > SPLIT_DEPTH) {\\n            uint256 parentIndex = claim.parentIndex;\\n\\n            // If we're currently at the split depth + 1, we're at the root of the execution sub-game.\\n            // We need to keep track of the root claim here to determine whether the execution sub-game was\\n            // started with an attack or defense against the output leaf claim.\\n            if (currentDepth == SPLIT_DEPTH + 1) execRootClaim = claim;\\n\\n            claim = claimData[parentIndex];\\n            claimIdx = parentIndex;\\n        }\\n\\n        // Determine whether the start of the execution sub-game was an attack or defense to the output root\\n        // above. This is important because it determines which claim is the starting output root and which\\n        // is the disputed output root.\\n        (Position execRootPos, Position outputPos) = (execRootClaim.position, claim.position);\\n        bool wasAttack = execRootPos.parent().raw() == outputPos.raw();\\n\\n        // Determine the starting and disputed output root indices.\\n        // 1. If it was an attack, the disputed output root is `claim`, and the starting output root is\\n        //    elsewhere in the DAG (it must commit to the block # index at depth of `outputPos - 1`).\\n        // 2. If it was a defense, the starting output root is `claim`, and the disputed output root is\\n        //    elsewhere in the DAG (it must commit to the block # index at depth of `outputPos + 1`).\\n        if (wasAttack) {\\n            // If this is an attack on the first output root (the block directly after the starting\\n            // block number), the starting claim nor position exists in the tree. We leave these as\\n            // 0, which can be easily identified due to 0 being an invalid Gindex.\\n            if (outputPos.indexAtDepth() > 0) {\\n                ClaimData storage starting = _findTraceAncestor(Position.wrap(outputPos.raw() - 1), claimIdx, true);\\n                (startingClaim_, startingPos_) = (starting.claim, starting.position);\\n            } else {\\n                startingClaim_ = Claim.wrap(startingOutputRoot.root.raw());\\n            }\\n            (disputedClaim_, disputedPos_) = (claim.claim, claim.position);\\n        } else {\\n            ClaimData storage disputed = _findTraceAncestor(Position.wrap(outputPos.raw() + 1), claimIdx, true);\\n            (startingClaim_, startingPos_) = (claim.claim, claim.position);\\n            (disputedClaim_, disputedPos_) = (disputed.claim, disputed.position);\\n        }\\n    }\\n\\n    /// @notice Finds the local context hash for a given claim index that is present in an execution trace subgame.\\n    /// @param _claimIndex The index of the claim to find the local context hash for.\\n    /// @return uuid_ The local context hash.\\n    function _findLocalContext(uint256 _claimIndex) internal view returns (Hash uuid_) {\\n        (Claim starting, Position startingPos, Claim disputed, Position disputedPos) =\\n                        _findStartingAndDisputedOutputs(_claimIndex);\\n        uuid_ = _computeLocalContext(starting, startingPos, disputed, disputedPos);\\n    }\\n\\n    /// @notice Computes the local context hash for a set of starting/disputed claim values and positions.\\n    /// @param _starting The starting claim.\\n    /// @param _startingPos The starting claim's position.\\n    /// @param _disputed The disputed claim.\\n    /// @param _disputedPos The disputed claim's position.\\n    /// @return uuid_ The local context hash.\\n    function _computeLocalContext(\\n        Claim _starting,\\n        Position _startingPos,\\n        Claim _disputed,\\n        Position _disputedPos\\n    )\\n    internal\\n    pure\\n    returns (Hash uuid_)\\n    {\\n        // A position of 0 indicates that the starting claim is the absolute prestate. In this special case,\\n        // we do not include the starting claim within the local context hash.\\n        uuid_ = _startingPos.raw() == 0\\n            ? Hash.wrap(keccak256(abi.encode(_disputed, _disputedPos)))\\n            : Hash.wrap(keccak256(abi.encode(_starting, _startingPos, _disputed, _disputedPos)));\\n    }\\n\\n    /// @notice Emitted when slashing fails\\n    event SlashingFailed(address indexed intendedRecipient, bytes reason);\\n}\\n\",\"keccak256\":\"0x1741a2122bdd18d06d8fce736b77c82f831b4e3ea17be5ab8d1aa6df2f99ed24\",\"license\":\"MIT\"},\"contracts/L1/dispute/PermissionedDisputeGame.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.15;\\n\\nimport { IDelayedWETH } from \\\"contracts/L1/dispute/interfaces/IDelayedWETH.sol\\\";\\nimport { IAnchorStateRegistry } from \\\"contracts/L1/dispute/interfaces/IAnchorStateRegistry.sol\\\";\\nimport { FaultDisputeGame, IFaultDisputeGame, IBigStepper, IInitializable } from \\\"contracts/L1/dispute/FaultDisputeGame.sol\\\";\\nimport { Lib_AddressManager } from \\\"../../libraries/resolver/Lib_AddressManager.sol\\\";\\nimport \\\"contracts/L1/dispute/lib/Types.sol\\\";\\nimport \\\"contracts/L1/dispute/lib/Errors.sol\\\";\\n\\n/// @title PermissionedDisputeGame\\n/// @notice PermissionedDisputeGame is a contract that inherits from `FaultDisputeGame`, and contains two roles:\\n///         - The `challenger` role, which is allowed to challenge a dispute.\\n///         - The `proposer` role, which is allowed to create proposals and participate in their game.\\n///         This contract exists as a way for networks to support the fault proof iteration of the OptimismPortal\\n///         contract without needing to support a fully permissionless system. Permissionless systems can introduce\\n///         costs that certain networks may not wish to support. This contract can also be used as a fallback mechanism\\n///         in case of a failure in the permissionless fault proof system in the stage one release.\\ncontract PermissionedDisputeGame is FaultDisputeGame {\\n    /// @notice The proposer role is allowed to create proposals and participate in the dispute game.\\n    address internal immutable PROPOSER;\\n\\n    /// @notice The challenger role is allowed to participate in the dispute game.\\n    address internal immutable CHALLENGER;\\n\\n    /// @notice Modifier that gates access to the `challenger` and `proposer` roles.\\n    modifier onlyAuthorized() {\\n        if (!(msg.sender == PROPOSER || msg.sender == CHALLENGER)) {\\n            revert BadAuth();\\n        }\\n        _;\\n    }\\n\\n    /// @param _gameType The type ID of the game.\\n    /// @param _absolutePrestate The absolute prestate of the instruction trace.\\n    /// @param _maxGameDepth The maximum depth of bisection.\\n    /// @param _splitDepth The final depth of the output bisection portion of the game.\\n    /// @param _clockExtension The clock extension to perform when the remaining duration is less than the extension.\\n    /// @param _maxClockDuration The maximum amount of time that may accumulate on a team's chess clock.\\n    /// @param _vm An onchain VM that performs single instruction steps on an FPP trace.\\n    /// @param _weth WETH contract for holding ETH.\\n    /// @param _addressManager Address manager contract.\\n    /// @param _l2ChainId Chain ID of the L2 network this contract argues about.\\n    /// @param _proposer Address that is allowed to create instances of this contract.\\n    /// @param _challenger Address that is allowed to challenge instances of this contract.\\n    constructor(\\n        GameType _gameType,\\n        Claim _absolutePrestate,\\n        uint256 _maxGameDepth,\\n        uint256 _splitDepth,\\n        Duration _clockExtension,\\n        Duration _maxClockDuration,\\n        IBigStepper _vm,\\n        IDelayedWETH _weth,\\n        Lib_AddressManager _addressManager,\\n        uint256 _l2ChainId,\\n        address _proposer,\\n        address _challenger\\n    )\\n    FaultDisputeGame(\\n    _gameType,\\n    _absolutePrestate,\\n    _maxGameDepth,\\n    _splitDepth,\\n    _clockExtension,\\n    _maxClockDuration,\\n    _vm,\\n    _weth,\\n    _addressManager,\\n    _l2ChainId\\n    )\\n    {\\n        PROPOSER = _proposer;\\n        CHALLENGER = _challenger;\\n    }\\n\\n    /// @inheritdoc IFaultDisputeGame\\n    function step(\\n        uint256 _claimIndex,\\n        bool _isAttack,\\n        bytes calldata _stateData,\\n        bytes calldata _proof\\n    )\\n    public\\n    override\\n    onlyAuthorized\\n    {\\n        super.step(_claimIndex, _isAttack, _stateData, _proof);\\n    }\\n\\n    /// @notice Generic move function, used for both `attack` and `defend` moves.\\n    /// @notice _disputed The disputed `Claim`.\\n    /// @param _challengeIndex The index of the claim being moved against. This must match the `_disputed` claim.\\n    /// @param _claim The claim at the next logical position in the game.\\n    /// @param _isAttack Whether or not the move is an attack or defense.\\n    function move(\\n        Claim _disputed,\\n        uint256 _challengeIndex,\\n        Claim _claim,\\n        bool _isAttack\\n    )\\n    public\\n    payable\\n    override\\n    onlyAuthorized\\n    {\\n        super.move(_disputed, _challengeIndex, _claim, _isAttack);\\n    }\\n\\n    /// @inheritdoc IInitializable\\n    function initialize() public payable override {\\n        // The creator of the dispute game must be the proposer EOA.\\n        if (tx.origin != PROPOSER) revert BadAuth();\\n\\n        // Fallthrough initialization.\\n        super.initialize();\\n    }\\n\\n    ////////////////////////////////////////////////////////////////\\n    //                     IMMUTABLE GETTERS                      //\\n    ////////////////////////////////////////////////////////////////\\n\\n    /// @notice Returns the proposer address.\\n    function proposer() external view returns (address proposer_) {\\n        proposer_ = PROPOSER;\\n    }\\n\\n    /// @notice Returns the challenger address.\\n    function challenger() external view returns (address challenger_) {\\n        challenger_ = CHALLENGER;\\n    }\\n}\\n\",\"keccak256\":\"0x529b3dfc6e19c4d9d3d88a61f0a60a5654d4a6d6ce038d4d6d08019f1bf3acac\",\"license\":\"MIT\"},\"contracts/L1/dispute/interfaces/IAnchorStateRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {IDisputeGameFactory} from \\\"./IDisputeGameFactory.sol\\\";\\nimport {IFaultDisputeGame} from \\\"./IFaultDisputeGame.sol\\\";\\n\\nimport \\\"contracts/L1/dispute/lib/Types.sol\\\";\\n\\n/// @title IAnchorStateRegistry\\n/// @notice Describes a contract that stores the anchor state for each game type.\\ninterface IAnchorStateRegistry {\\n    /// @notice Returns the anchor state for the given game type.\\n    /// @param _gameType The game type to get the anchor state for.\\n    /// @return The anchor state for the given game type.\\n    function anchors(GameType _gameType) external view returns (Hash, uint256);\\n\\n    /// @notice Returns the DisputeGameFactory address.\\n    /// @return DisputeGameFactory address.\\n    function disputeGameFactory() external view returns (IDisputeGameFactory);\\n\\n    /// @notice Callable by FaultDisputeGame contracts to update the anchor state. Pulls the anchor state directly from\\n    ///         the FaultDisputeGame contract and stores it in the registry if the new anchor state is valid and the\\n    ///         state is newer than the current anchor state.\\n    function tryUpdateAnchorState() external;\\n\\n    /// @notice Sets the anchor state given the game.\\n    /// @param _game The game to set the anchor state for.\\n    function setAnchorState(IFaultDisputeGame _game) external;\\n}\\n\",\"keccak256\":\"0x24db6f65c25d89916ebda36761b8535c79aee76fd12113c6260d8d0d097a3c9c\",\"license\":\"MIT\"},\"contracts/L1/dispute/interfaces/IBigStepper.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {IPreimageOracle} from \\\"../../cannon/interfaces/IPreimageOracle.sol\\\";\\n\\n/// @title IBigStepper\\n/// @notice Describes a state machine that can perform a single instruction step, provided a prestate and an optional\\n///         proof.\\n/// \\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u28c0\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\n/// \\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2880\\u28fc\\u2836\\u2885\\u2812\\u2884\\u2894\\u28f6\\u2866\\u28e4\\u2864\\u2804\\u28c0\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\n/// \\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2828\\u284f\\u2800\\u2800\\u2808\\u2822\\u28d9\\u28af\\u28c4\\u2800\\u28a8\\u282f\\u287a\\u2858\\u2884\\u2800\\u2800\\u2800\\u2800\\u2800\\n/// \\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u28c0\\u28f6\\u2846\\u2800\\u2800\\u2800\\u2800\\u2808\\u2813\\u282c\\u2852\\u2821\\u28c0\\u2899\\u285c\\u2840\\u2813\\u2804\\u2800\\u2800\\u2800\\n/// \\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u28b8\\u2877\\u283f\\u28e7\\u28c0\\u2840\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2809\\u2823\\u28de\\u2829\\u2825\\u2800\\u283c\\u2884\\u2800\\u2800\\n/// \\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u28b8\\u2847\\u2800\\u2800\\u2800\\u2809\\u28b9\\u28f6\\u2812\\u2812\\u2802\\u2808\\u2809\\u2801\\u2818\\u2846\\u2800\\u28ff\\u28ff\\u282b\\u2844\\u2800\\n/// \\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u28e0\\u28b6\\u28e4\\u28c0\\u2840\\u2800\\u2800\\u28b8\\u287f\\u2800\\u2800\\u2800\\u2800\\u2800\\u2880\\u281e\\u2800\\u2800\\u28a1\\u28a8\\u2880\\u2844\\u2800\\n/// \\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u28e0\\u2852\\u28ff\\u28bf\\u2864\\u281d\\u2863\\u2809\\u2801\\u281a\\u281b\\u2800\\u2824\\u2824\\u28c4\\u2870\\u2801\\u2800\\u2800\\u2800\\u2809\\u2819\\u28b8\\u2800\\u2800\\n/// \\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2880\\u2864\\u28af\\u284c\\u287f\\u2847\\u2818\\u2877\\u2800\\u2801\\u2800\\u2800\\u2880\\u28f0\\u2822\\u2832\\u281b\\u28c8\\u28f8\\u2826\\u2824\\u2836\\u2834\\u28ac\\u28d0\\u28ca\\u2842\\u2800\\n/// \\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2880\\u28e4\\u286a\\u2857\\u28ab\\u281e\\u2800\\u2806\\u28c0\\u283b\\u2824\\u2834\\u2810\\u281a\\u28c9\\u2880\\u2826\\u2802\\u280b\\u2801\\u2800\\u2801\\u2800\\u2800\\u2800\\u2800\\u288b\\u2809\\u2807\\u2800\\n/// \\u2800\\u2800\\u2800\\u2800\\u28c0\\u2864\\u2810\\u2812\\u2818\\u2879\\u2809\\u28b8\\u2807\\u2838\\u2800\\u2800\\u2800\\u2800\\u28c0\\u28e4\\u2834\\u281a\\u2809\\u2808\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u283c\\u2800\\u28fe\\u2800\\n/// \\u2800\\u2800\\u2800\\u2870\\u2800\\u2809\\u2809\\u2800\\u2801\\u2800\\u2800\\u2808\\u2887\\u2808\\u2812\\u2812\\u2818\\u2808\\u2880\\u28a1\\u2842\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u28b0\\u2800\\u28b8\\u2844\\n/// \\u2800\\u2800\\u2838\\u28ff\\u28c6\\u2824\\u2880\\u2840\\u2800\\u2800\\u2800\\u2800\\u2898\\u284c\\u2800\\u2800\\u28c0\\u28c0\\u28c0\\u2848\\u28e4\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u28b8\\u2800\\u28b8\\u2847\\n/// \\u2800\\u2800\\u28b8\\u28c0\\u2800\\u2809\\u2812\\u2810\\u281b\\u280b\\u282d\\u282d\\u280d\\u2809\\u281b\\u2812\\u2812\\u2812\\u2800\\u2812\\u281a\\u281b\\u281b\\u281b\\u2829\\u282d\\u282d\\u282d\\u282d\\u2824\\u2824\\u2824\\u2824\\u2824\\u282d\\u282d\\u2809\\u2813\\u2846\\n/// \\u2800\\u2800\\u2818\\u283f\\u28f7\\u28f6\\u28e4\\u28e4\\u28c0\\u28c0\\u2840\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u28e0\\u28e4\\u28c4\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2847\\n/// \\u2800\\u2800\\u2800\\u2800\\u2800\\u2809\\u2819\\u281b\\u281b\\u283b\\u283f\\u28bf\\u28ff\\u28ff\\u28f7\\u28f6\\u28f6\\u28f6\\u28e4\\u28e4\\u28c0\\u28c1\\u28db\\u28c3\\u28d2\\u283f\\u283f\\u283f\\u2824\\u2820\\u2804\\u2824\\u2824\\u28a4\\u28db\\u28d3\\u28c2\\u28fb\\u2847\\n/// \\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2808\\u2809\\u2809\\u2809\\u2819\\u281b\\u283b\\u283f\\u283f\\u283f\\u28bf\\u28ff\\u28ff\\u28ff\\u28f7\\u28f6\\u28f6\\u28fe\\u28ff\\u28ff\\u28ff\\u28ff\\u283f\\u281f\\u2801\\n/// \\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2800\\u2808\\u2808\\u2809\\u2809\\u2809\\u2809\\u2801\\u2800\\u2800\\u2800\\u2800\\u2800\\ninterface IBigStepper {\\n    /// @notice Performs the state transition from a given prestate and returns the hash of the post state witness.\\n    /// @param _stateData The raw opaque prestate data.\\n    /// @param _proof Opaque proof data, can be used to prove things about the prestate in relation to the state of the\\n    ///               interface's implementation.\\n    /// @param _localContext The local key context for the preimage oracle. Optional, can be set as a constant if the\\n    ///                      implementation only requires one set of local keys.\\n    /// @return postState_ The hash of the post state witness after the state transition.\\n    function step(\\n        bytes calldata _stateData,\\n        bytes calldata _proof,\\n        bytes32 _localContext\\n    )\\n    external\\n    returns (bytes32 postState_);\\n\\n    /// @notice Returns the preimage oracle used by the state machine.\\n    function oracle() external view returns (IPreimageOracle oracle_);\\n}\\n\",\"keccak256\":\"0x97dd8d81f495f98fc4aa32eedcb23195436c63707cd232d3bc33a9d03c71479a\",\"license\":\"MIT\"},\"contracts/L1/dispute/interfaces/IDelayedWETH.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {IWETH} from \\\"./IWETH.sol\\\";\\n\\n/// @title IDelayedWETH\\n/// @notice Interface for the DelayedWETH contract.\\ninterface IDelayedWETH is IWETH {\\n    /// @notice Represents a withdrawal request.\\n    struct WithdrawalRequest {\\n        uint256 amount;\\n        uint256 timestamp;\\n    }\\n\\n    /// @notice Emitted when an unwrap is started.\\n    /// @param src The address that started the unwrap.\\n    /// @param wad The amount of WETH that was unwrapped.\\n    event Unwrap(address indexed src, uint256 wad);\\n\\n    /// @notice Returns the withdrawal delay in seconds.\\n    /// @return The withdrawal delay in seconds.\\n    function delay() external view returns (uint256);\\n\\n    /// @notice Returns a withdrawal request for the given address.\\n    /// @param _owner The address to query the withdrawal request of.\\n    /// @param _guy Sub-account to query the withdrawal request of.\\n    /// @return The withdrawal request for the given address-subaccount pair.\\n    function withdrawals(address _owner, address _guy) external view returns (uint256, uint256);\\n\\n    /// @notice Unlocks withdrawals for the sender's account, after a time delay.\\n    /// @param _guy Sub-account to unlock.\\n    /// @param _wad The amount of WETH to unlock.\\n    function unlock(address _guy, uint256 _wad) external;\\n\\n    /// @notice Extension to withdrawal, must provide a sub-account to withdraw from.\\n    /// @param _guy Sub-account to withdraw from.\\n    /// @param _wad The amount of WETH to withdraw.\\n    function withdraw(address _guy, uint256 _wad) external;\\n\\n    /// @notice Allows the owner to recover from error cases by pulling ETH out of the contract.\\n    /// @param _wad The amount of WETH to recover.\\n    function recover(uint256 _wad) external;\\n\\n    /// @notice Allows the owner to recover from error cases by pulling ETH from a specific owner.\\n    /// @param _guy The address to recover the WETH from.\\n    /// @param _wad The amount of WETH to recover.\\n    function hold(address _guy, uint256 _wad) external;\\n}\\n\",\"keccak256\":\"0xeff6ccb0c0accc914e77c6177f317eb7a81bf7867e360fea6aacd2b69326eaf0\",\"license\":\"MIT\"},\"contracts/L1/dispute/interfaces/IDisputeGame.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {IInitializable} from \\\"./IInitializable.sol\\\";\\n\\nimport \\\"contracts/L1/dispute/lib/Types.sol\\\";\\n\\n/// @title IDisputeGame\\n/// @notice The generic interface for a DisputeGame contract.\\ninterface IDisputeGame is IInitializable {\\n    /// @notice Emitted when the game is resolved.\\n    /// @param status The status of the game after resolution.\\n    event Resolved(GameStatus indexed status);\\n\\n    /// @notice Returns the timestamp that the DisputeGame contract was created at.\\n    /// @return createdAt_ The timestamp that the DisputeGame contract was created at.\\n    function createdAt() external view returns (Timestamp createdAt_);\\n\\n    /// @notice Returns the timestamp that the DisputeGame contract was resolved at.\\n    /// @return resolvedAt_ The timestamp that the DisputeGame contract was resolved at.\\n    function resolvedAt() external view returns (Timestamp resolvedAt_);\\n\\n    /// @notice Returns the current status of the game.\\n    /// @return status_ The current status of the game.\\n    function status() external view returns (GameStatus status_);\\n\\n    /// @notice Getter for the game type.\\n    /// @dev The reference impl should be entirely different depending on the type (fault, validity)\\n    ///      i.e. The game type should indicate the security model.\\n    /// @return gameType_ The type of proof system being used.\\n    function gameType() external view returns (GameType gameType_);\\n\\n    /// @notice Getter for the creator of the dispute game.\\n    /// @dev `clones-with-immutable-args` argument #1\\n    /// @return creator_ The creator of the dispute game.\\n    function gameCreator() external pure returns (address creator_);\\n\\n    /// @notice Getter for the root claim.\\n    /// @dev `clones-with-immutable-args` argument #2\\n    /// @return rootClaim_ The root claim of the DisputeGame.\\n    function rootClaim() external pure returns (Claim rootClaim_);\\n\\n    /// @notice Getter for the parent hash of the L1 block when the dispute game was created.\\n    /// @dev `clones-with-immutable-args` argument #3\\n    /// @return l1Head_ The parent hash of the L1 block when the dispute game was created.\\n    function l1Head() external pure returns (Hash l1Head_);\\n\\n    /// @notice Getter for the extra data.\\n    /// @dev `clones-with-immutable-args` argument #4\\n    /// @return extraData_ Any extra data supplied to the dispute game contract by the creator.\\n    function extraData() external pure returns (bytes memory extraData_);\\n\\n    /// @notice If all necessary information has been gathered, this function should mark the game\\n    ///         status as either `CHALLENGER_WINS` or `DEFENDER_WINS` and return the status of\\n    ///         the resolved game. It is at this stage that the bonds should be awarded to the\\n    ///         necessary parties.\\n    /// @dev May only be called if the `status` is `IN_PROGRESS`.\\n    /// @return status_ The status of the game after resolution.\\n    function resolve() external returns (GameStatus status_);\\n\\n    /// @notice A compliant implementation of this interface should return the components of the\\n    ///         game UUID's preimage provided in the cwia payload. The preimage of the UUID is\\n    ///         constructed as `keccak256(gameType . rootClaim . extraData)` where `.` denotes\\n    ///         concatenation.\\n    /// @return gameType_ The type of proof system being used.\\n    /// @return rootClaim_ The root claim of the DisputeGame.\\n    /// @return extraData_ Any extra data supplied to the dispute game contract by the creator.\\n    function gameData() external view returns (GameType gameType_, Claim rootClaim_, bytes memory extraData_);\\n}\\n\",\"keccak256\":\"0x696a037c405f2ee4f785e45d4765f03066b489bec6a3d5a9c171837cd4696794\",\"license\":\"MIT\"},\"contracts/L1/dispute/interfaces/IDisputeGameFactory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {IDisputeGame} from \\\"./IDisputeGame.sol\\\";\\n\\nimport \\\"contracts/L1/dispute/lib/Types.sol\\\";\\n\\n/// @title IDisputeGameFactory\\n/// @notice The interface for a DisputeGameFactory contract.\\ninterface IDisputeGameFactory {\\n    /// @notice Emitted when a new dispute game is requested\\n    /// @param requestor The address of the requestor\\n    /// @param gameType The type of the dispute game\\n    /// @param bond The bond (in wei) for initializing the game type\\n    //. @param extraData Any extra data that should be provided to the created dispute game.\\n    event DisputeGameRequested(address indexed requestor, GameType indexed gameType, uint256 bond, bytes extraData);\\n\\n    /// @notice Emitted when a new dispute game is created\\n    /// @param disputeProxy The address of the dispute game proxy\\n    /// @param gameType The type of the dispute game proxy's implementation\\n    /// @param rootClaim The root claim of the dispute game\\n    event DisputeGameCreated(address indexed disputeProxy, GameType indexed gameType, Claim indexed rootClaim);\\n\\n    /// @notice Emitted when a new game implementation added to the factory\\n    /// @param impl The implementation contract for the given `GameType`.\\n    /// @param gameType The type of the DisputeGame.\\n    event ImplementationSet(address indexed impl, GameType indexed gameType);\\n\\n    /// @notice Emitted when a game type's initialization bond is updated\\n    /// @param gameType The type of the DisputeGame.\\n    /// @param newBond The new bond (in wei) for initializing the game type.\\n    event InitBondUpdated(GameType indexed gameType, uint256 indexed newBond);\\n\\n    /// @notice Information about a dispute game found in a `findLatestGames` search.\\n    struct GameSearchResult {\\n        uint256 index;\\n        GameId metadata;\\n        Timestamp timestamp;\\n        Claim rootClaim;\\n        bytes extraData;\\n    }\\n\\n    /// @notice The total number of dispute games created by this factory.\\n    /// @return gameCount_ The total number of dispute games created by this factory.\\n    function gameCount() external view returns (uint256 gameCount_);\\n\\n    /// @notice `games` queries an internal mapping that maps the hash of\\n    ///         `gameType ++ rootClaim ++ extraData` to the deployed `DisputeGame` clone.\\n    /// @dev `++` equates to concatenation.\\n    /// @param _gameType The type of the DisputeGame - used to decide the proxy implementation\\n    /// @param _rootClaim The root claim of the DisputeGame.\\n    /// @param _extraData Any extra data that should be provided to the created dispute game.\\n    /// @return proxy_ The clone of the `DisputeGame` created with the given parameters.\\n    ///         Returns `address(0)` if nonexistent.\\n    /// @return timestamp_ The timestamp of the creation of the dispute game.\\n    function games(\\n        GameType _gameType,\\n        Claim _rootClaim,\\n        bytes calldata _extraData\\n    )\\n    external\\n    view\\n    returns (IDisputeGame proxy_, Timestamp timestamp_);\\n\\n    /// @notice `gameAtIndex` returns the dispute game contract address and its creation timestamp\\n    ///          at the given index. Each created dispute game increments the underlying index.\\n    /// @param _index The index of the dispute game.\\n    /// @return gameType_ The type of the DisputeGame - used to decide the proxy implementation.\\n    /// @return timestamp_ The timestamp of the creation of the dispute game.\\n    /// @return proxy_ The clone of the `DisputeGame` created with the given parameters.\\n    ///         Returns `address(0)` if nonexistent.\\n    function gameAtIndex(uint256 _index)\\n    external\\n    view\\n    returns (GameType gameType_, Timestamp timestamp_, IDisputeGame proxy_);\\n\\n    /// @notice `gameImpls` is a mapping that maps `GameType`s to their respective\\n    ///         `IDisputeGame` implementations.\\n    /// @param _gameType The type of the dispute game.\\n    /// @return impl_ The address of the implementation of the game type.\\n    ///         Will be cloned on creation of a new dispute game with the given `gameType`.\\n    function gameImpls(GameType _gameType) external view returns (IDisputeGame impl_);\\n\\n    /// @notice Returns the required bonds for initializing a dispute game of the given type.\\n    /// @param _gameType The type of the dispute game.\\n    /// @return bond_ The required bond for initializing a dispute game of the given type.\\n    function initBonds(GameType _gameType) external view returns (uint256 bond_);\\n\\n    /// @notice Requests a new dispute game of the given type.\\n    /// @dev Emits a `DisputeGameRequested` event.\\n    /// @param _gameType The type of the dispute game.\\n    /// @param _extraData Any extra data that should be provided to the created dispute game.\\n    function dispute(GameType _gameType, bytes calldata _extraData) external payable;\\n\\n    /// @notice Creates a new DisputeGame proxy contract.\\n    /// @param _gameType The type of the DisputeGame - used to decide the proxy implementation.\\n    /// @param _rootClaim The root claim of the DisputeGame.\\n    /// @param _extraData Any extra data that should be provided to the created dispute game.\\n    /// @return proxy_ The address of the created DisputeGame proxy.\\n    function create(\\n        GameType _gameType,\\n        Claim _rootClaim,\\n        bytes calldata _extraData\\n    )\\n    external\\n    returns (IDisputeGame proxy_);\\n\\n    /// @notice Sets the implementation contract for a specific `GameType`.\\n    /// @dev May only be called by the `owner`.\\n    /// @param _gameType The type of the DisputeGame.\\n    /// @param _impl The implementation contract for the given `GameType`.\\n    function setImplementation(GameType _gameType, IDisputeGame _impl) external;\\n\\n    /// @notice Sets the bond (in wei) for initializing a game type.\\n    /// @dev May only be called by the `owner`.\\n    /// @param _gameType The type of the DisputeGame.\\n    /// @param _initBond The bond (in wei) for initializing a game type.\\n    function setInitBond(GameType _gameType, uint256 _initBond) external;\\n\\n    /// @notice Returns a unique identifier for the given dispute game parameters.\\n    /// @dev Hashes the concatenation of `gameType . rootClaim . extraData`\\n    ///      without expanding memory.\\n    /// @param _gameType The type of the DisputeGame.\\n    /// @param _rootClaim The root claim of the DisputeGame.\\n    /// @param _extraData Any extra data that should be provided to the created dispute game.\\n    /// @return uuid_ The unique identifier for the given dispute game parameters.\\n    function getGameUUID(\\n        GameType _gameType,\\n        Claim _rootClaim,\\n        bytes memory _extraData\\n    )\\n    external\\n    pure\\n    returns (Hash uuid_);\\n\\n    /// @notice Finds the `_n` most recent `GameId`'s of type `_gameType` starting at `_start`. If there are less than\\n    ///         `_n` games of type `_gameType` starting at `_start`, then the returned array will be shorter than `_n`.\\n    /// @param _gameType The type of game to find.\\n    /// @param _start The index to start the reverse search from.\\n    /// @param _n The number of games to find.\\n    function findLatestGames(\\n        GameType _gameType,\\n        uint256 _start,\\n        uint256 _n\\n    )\\n    external\\n    view\\n    returns (GameSearchResult[] memory games_);\\n}\\n\",\"keccak256\":\"0x290ddc5f8839e6df617519b2678f45d4b16fcffa61b6387beae482212020978b\",\"license\":\"MIT\"},\"contracts/L1/dispute/interfaces/IFaultDisputeGame.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {IDisputeGame} from \\\"./IDisputeGame.sol\\\";\\n\\nimport \\\"contracts/L1/dispute/lib/Types.sol\\\";\\n\\n/// @title IFaultDisputeGame\\n/// @notice The interface for a fault proof backed dispute game.\\ninterface IFaultDisputeGame is IDisputeGame {\\n    /// @notice The `ClaimData` struct represents the data associated with a Claim.\\n    struct ClaimData {\\n        uint32 parentIndex;\\n        address counteredBy;\\n        address claimant;\\n        uint128 bond;\\n        Claim claim;\\n        Position position;\\n        Clock clock;\\n    }\\n\\n    /// @notice The `ResolutionCheckpoint` struct represents the data associated with an in-progress claim resolution.\\n    struct ResolutionCheckpoint {\\n        bool initialCheckpointComplete;\\n        uint32 subgameIndex;\\n        Position leftmostPosition;\\n        address counteredBy;\\n    }\\n\\n    /// @notice Emitted when a new claim is added to the DAG by `claimant`\\n    /// @param parentIndex The index within the `claimData` array of the parent claim\\n    /// @param claim The claim being added\\n    /// @param claimant The address of the claimant\\n    event Move(uint256 indexed parentIndex, Claim indexed claim, address indexed claimant);\\n\\n    /// @notice Attack a disagreed upon `Claim`.\\n    /// @param _disputed The `Claim` being attacked.\\n    /// @param _parentIndex Index of the `Claim` to attack in the `claimData` array. This must match the `_disputed`\\n    /// claim.\\n    /// @param _claim The `Claim` at the relative attack position.\\n    function attack(Claim _disputed, uint256 _parentIndex, Claim _claim) external payable;\\n\\n    /// @notice Defend an agreed upon `Claim`.\\n    /// @notice _disputed The `Claim` being defended.\\n    /// @param _parentIndex Index of the claim to defend in the `claimData` array. This must match the `_disputed`\\n    /// claim.\\n    /// @param _claim The `Claim` at the relative defense position.\\n    function defend(Claim _disputed, uint256 _parentIndex, Claim _claim) external payable;\\n\\n    /// @notice Perform an instruction step via an on-chain fault proof processor.\\n    /// @dev This function should point to a fault proof processor in order to execute\\n    ///      a step in the fault proof program on-chain. The interface of the fault proof\\n    ///      processor contract should adhere to the `IBigStepper` interface.\\n    /// @param _claimIndex The index of the challenged claim within `claimData`.\\n    /// @param _isAttack Whether or not the step is an attack or a defense.\\n    /// @param _stateData The stateData of the step is the preimage of the claim at the given\\n    ///        prestate, which is at `_stateIndex` if the move is an attack and `_claimIndex` if\\n    ///        the move is a defense. If the step is an attack on the first instruction, it is\\n    ///        the absolute prestate of the fault proof VM.\\n    /// @param _proof Proof to access memory nodes in the VM's merkle state tree.\\n    function step(uint256 _claimIndex, bool _isAttack, bytes calldata _stateData, bytes calldata _proof) external;\\n\\n    /// @notice Posts the requested local data to the VM's `PreimageOralce`.\\n    /// @param _ident The local identifier of the data to post.\\n    /// @param _execLeafIdx The index of the leaf claim in an execution subgame that requires the local data for a step.\\n    /// @param _partOffset The offset of the data to post.\\n    function addLocalData(uint256 _ident, uint256 _execLeafIdx, uint256 _partOffset) external;\\n\\n    /// @notice Resolves the subgame rooted at the given claim index. `_numToResolve` specifies how many children of\\n    ///         the subgame will be checked in this call. If `_numToResolve` is less than the number of children, an\\n    ///         internal cursor will be updated and this function may be called again to complete resolution of the\\n    ///         subgame.\\n    /// @dev This function must be called bottom-up in the DAG\\n    ///      A subgame is a tree of claims that has a maximum depth of 1.\\n    ///      A subgame root claims is valid if, and only if, all of its child claims are invalid.\\n    ///      At the deepest level in the DAG, a claim is invalid if there's a successful step against it.\\n    /// @param _claimIndex The index of the subgame root claim to resolve.\\n    /// @param _numToResolve The number of subgames to resolve in this call. If the input is `0`, and this is the first\\n    ///                      page, this function will attempt to check all of the subgame's children at once.\\n    function resolveClaim(uint256 _claimIndex, uint256 _numToResolve) external;\\n\\n    /// @notice Returns the number of children that still need to be resolved in order to fully resolve a subgame rooted\\n    ///         at `_claimIndex`.\\n    /// @param _claimIndex The subgame root claim's index within `claimData`.\\n    /// @return numRemainingChildren_ The number of children that still need to be checked to resolve the subgame.\\n    function getNumToResolve(uint256 _claimIndex) external view returns (uint256 numRemainingChildren_);\\n\\n    /// @notice The l2BlockNumber of the disputed output root in the `L2OutputOracle`.\\n    function l2BlockNumber() external view returns (uint256 l2BlockNumber_);\\n\\n    /// @notice Starting output root and block number of the game.\\n    function startingOutputRoot() external view returns (Hash startingRoot_, uint256 l2BlockNumber_);\\n\\n    /// @notice Only the starting block number of the game.\\n    function startingBlockNumber() external view returns (uint256 startingBlockNumber_);\\n\\n    /// @notice Only the starting output root of the game.\\n    function startingRootHash() external view returns (Hash startingRootHash_);\\n}\\n\",\"keccak256\":\"0x9cf60036f5aa890fd5de1e9b825edc0a19b58afc0823c44f27a0895b923e5a83\",\"license\":\"MIT\"},\"contracts/L1/dispute/interfaces/IInitializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title IInitializable\\n/// @notice An interface for initializable contracts.\\ninterface IInitializable {\\n    /// @notice Initializes the contract.\\n    /// @dev This function may only be called once.\\n    function initialize() external payable;\\n}\\n\",\"keccak256\":\"0xbc553af6501a972850a98fc6284943f8e95a5183a7b4f64198c16fca2338c9dc\",\"license\":\"MIT\"},\"contracts/L1/dispute/interfaces/ILockingPool.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title ILockingPool\\n/// @notice Interface for the LockingPool contract\\ninterface ILockingPool {\\n    /// @notice Slashes a percentage of tokens from the pool\\n    /// @param _recipient Address to receive the slashed tokens\\n    function slash(address _recipient) external;\\n} \",\"keccak256\":\"0xadd5d45defdf3319e9d3bad7024c142bdeeb3644ff5ea3b6ddb567561121a8dc\",\"license\":\"MIT\"},\"contracts/L1/dispute/interfaces/IWETH.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title IWETH\\n/// @notice Interface for WETH9.\\ninterface IWETH {\\n    /// @notice Emitted when an approval is made.\\n    /// @param src The address that approved the transfer.\\n    /// @param guy The address that was approved to transfer.\\n    /// @param wad The amount that was approved to transfer.\\n    event Approval(address indexed src, address indexed guy, uint256 wad);\\n\\n    /// @notice Emitted when a transfer is made.\\n    /// @param src The address that transferred the WETH.\\n    /// @param dst The address that received the WETH.\\n    /// @param wad The amount of WETH that was transferred.\\n    event Transfer(address indexed src, address indexed dst, uint256 wad);\\n\\n    /// @notice Emitted when a deposit is made.\\n    /// @param dst The address that deposited the WETH.\\n    /// @param wad The amount of WETH that was deposited.\\n    event Deposit(address indexed dst, uint256 wad);\\n\\n    /// @notice Emitted when a withdrawal is made.\\n    /// @param src The address that withdrew the WETH.\\n    /// @param wad The amount of WETH that was withdrawn.\\n    event Withdrawal(address indexed src, uint256 wad);\\n\\n    /// @notice Returns the name of the token.\\n    /// @return The name of the token.\\n    function name() external view returns (string memory);\\n\\n    /// @notice Returns the symbol of the token.\\n    /// @return The symbol of the token.\\n    function symbol() external view returns (string memory);\\n\\n    /// @notice Returns the number of decimals the token uses.\\n    /// @return The number of decimals the token uses.\\n    function decimals() external pure returns (uint8);\\n\\n    /// @notice Returns the balance of the given address.\\n    /// @param owner The address to query the balance of.\\n    /// @return The balance of the given address.\\n    function balanceOf(address owner) external view returns (uint256);\\n\\n    /// @notice Returns the amount of WETH that the spender can transfer on behalf of the owner.\\n    /// @param owner The address that owns the WETH.\\n    /// @param spender The address that is approved to transfer the WETH.\\n    /// @return The amount of WETH that the spender can transfer on behalf of the owner.\\n    function allowance(address owner, address spender) external view returns (uint256);\\n\\n    /// @notice Allows WETH to be deposited by sending ether to the contract.\\n    function deposit() external payable;\\n\\n    /// @notice Withdraws an amount of ETH.\\n    /// @param wad The amount of ETH to withdraw.\\n    function withdraw(uint256 wad) external;\\n\\n    /// @notice Returns the total supply of WETH.\\n    /// @return The total supply of WETH.\\n    function totalSupply() external view returns (uint256);\\n\\n    /// @notice Approves the given address to transfer the WETH on behalf of the caller.\\n    /// @param guy The address that is approved to transfer the WETH.\\n    /// @param wad The amount that is approved to transfer.\\n    /// @return True if the approval was successful.\\n    function approve(address guy, uint256 wad) external returns (bool);\\n\\n    /// @notice Transfers the given amount of WETH to the given address.\\n    /// @param dst The address to transfer the WETH to.\\n    /// @param wad The amount of WETH to transfer.\\n    /// @return True if the transfer was successful.\\n    function transfer(address dst, uint256 wad) external returns (bool);\\n\\n    /// @notice Transfers the given amount of WETH from the given address to the given address.\\n    /// @param src The address to transfer the WETH from.\\n    /// @param dst The address to transfer the WETH to.\\n    /// @param wad The amount of WETH to transfer.\\n    /// @return True if the transfer was successful.\\n    function transferFrom(address src, address dst, uint256 wad) external returns (bool);\\n}\\n\",\"keccak256\":\"0x3858f6c0ce3ec7978b1ea1772484c25aec7c8c480ceaf18239f726fdd06fdd1f\",\"license\":\"MIT\"},\"contracts/L1/dispute/lib/Errors.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.15;\\n\\nimport \\\"./LibUDT.sol\\\";\\n\\n////////////////////////////////////////////////////////////////\\n//                `DisputeGameFactory` Errors                 //\\n////////////////////////////////////////////////////////////////\\n\\n/// @notice Thrown when a dispute game is attempted to be created with an unsupported game type.\\n/// @param gameType The unsupported game type.\\n    error NoImplementation(GameType gameType);\\n\\n/// @notice Thrown when a dispute game that already exists is attempted to be created.\\n/// @param uuid The UUID of the dispute game that already exists.\\n    error GameAlreadyExists(Hash uuid);\\n\\n/// @notice Thrown when the root claim has an unexpected VM status.\\n///         Some games can only start with a root-claim with a specific status.\\n/// @param rootClaim is the claim that was unexpected.\\n    error UnexpectedRootClaim(Claim rootClaim);\\n\\n/// @notice Thrown when no dispute game requested.\\n    error NoDisputeGameRequests();\\n\\n////////////////////////////////////////////////////////////////\\n//                 `FaultDisputeGame` Errors                  //\\n////////////////////////////////////////////////////////////////\\n\\n/// @notice Thrown when a dispute game has already been initialized.\\n    error AlreadyInitialized();\\n\\n/// @notice Thrown when a supplied bond is not equal to the required bond amount to cover the cost of the interaction.\\n    error IncorrectBondAmount();\\n\\n/// @notice Thrown when a credit claim is attempted for a value of 0.\\n    error NoCreditToClaim();\\n\\n/// @notice Thrown when the transfer of credit to a recipient account reverts.\\n    error BondTransferFailed();\\n\\n/// @notice Thrown when the `extraData` passed to the CWIA proxy is of improper length, or contains invalid information.\\n    error BadExtraData();\\n\\n/// @notice Thrown when a defense against the root claim is attempted.\\n    error CannotDefendRootClaim();\\n\\n/// @notice Thrown when a claim is attempting to be made that already exists.\\n    error ClaimAlreadyExists();\\n\\n/// @notice Thrown when a disputed claim does not match its index in the game.\\n    error InvalidDisputedClaimIndex();\\n\\n/// @notice Thrown when an action that requires the game to be `IN_PROGRESS` is invoked when\\n///         the game is not in progress.\\n    error GameNotInProgress();\\n\\n/// @notice Thrown when a move is attempted to be made after the clock has timed out.\\n    error ClockTimeExceeded();\\n\\n/// @notice Thrown when the game is attempted to be resolved too early.\\n    error ClockNotExpired();\\n\\n/// @notice Thrown when a move is attempted to be made at or greater than the max depth of the game.\\n    error GameDepthExceeded();\\n\\n/// @notice Thrown when a step is attempted above the maximum game depth.\\n    error InvalidParent();\\n\\n/// @notice Thrown when an invalid prestate is supplied to `step`.\\n    error InvalidPrestate();\\n\\n/// @notice Thrown when a step is made that computes the expected post state correctly.\\n    error ValidStep();\\n\\n/// @notice Thrown when a game is attempted to be initialized with an L1 head that does\\n///         not contain the disputed output root.\\n    error L1HeadTooOld();\\n\\n/// @notice Thrown when an invalid local identifier is passed to the `addLocalData` function.\\n    error InvalidLocalIdent();\\n\\n/// @notice Thrown when resolving claims out of order.\\n    error OutOfOrderResolution();\\n\\n/// @notice Thrown when resolving a claim that has already been resolved.\\n    error ClaimAlreadyResolved();\\n\\n/// @notice Thrown when a parent output root is attempted to be found on a claim that is in\\n///         the output root portion of the tree.\\n    error ClaimAboveSplit();\\n\\n/// @notice Thrown on deployment if the split depth is greater than or equal to the max\\n///         depth of the game.\\n    error InvalidSplitDepth();\\n\\n/// @notice Thrown on deployment if the max clock duration is less than or equal to the clock extension.\\n    error InvalidClockExtension();\\n\\n/// @notice Thrown on deployment if the PreimageOracle challenge period is too high.\\n    error InvalidChallengePeriod();\\n\\n/// @notice Thrown on deployment if the max depth is greater than `LibPosition.`\\n    error MaxDepthTooLarge();\\n\\n/// @notice Thrown when trying to step against a claim for a second time, after it has already been countered with\\n///         an instruction step.\\n    error DuplicateStep();\\n\\n/// @notice Thrown when an anchor root is not found for a given game type.\\n    error AnchorRootNotFound();\\n\\n/// @notice Thrown when an output root proof is invalid.\\n    error InvalidOutputRootProof();\\n\\n/// @notice Thrown when header RLP is invalid with respect to the block hash in an output root proof.\\n    error InvalidHeaderRLP();\\n\\n/// @notice Thrown when there is a match between the block number in the output root proof and the block number\\n///         claimed in the dispute game.\\n    error BlockNumberMatches();\\n\\n/// @notice Thrown when the L2 block number claim has already been challenged.\\n    error L2BlockNumberChallenged();\\n\\n////////////////////////////////////////////////////////////////\\n//              `PermissionedDisputeGame` Errors              //\\n////////////////////////////////////////////////////////////////\\n\\n/// @notice Thrown when an unauthorized address attempts to interact with the game.\\n    error BadAuth();\\n\\n////////////////////////////////////////////////////////////////\\n//              `AnchorStateRegistry` Errors                  //\\n////////////////////////////////////////////////////////////////\\n\\n/// @notice Thrown when attempting to set an anchor state using an unregistered game.\\n    error UnregisteredGame();\\n\\n/// @notice Thrown when attempting to set an anchor state using an invalid game result.\\n    error InvalidGameStatus();\\n\",\"keccak256\":\"0x03388f8b6d4b6b9aae083e8e6b348673feb74a9f53cb1e6659d4eca761eae959\",\"license\":\"MIT\"},\"contracts/L1/dispute/lib/LibPosition.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.15;\\n\\n    using LibPosition for Position global;\\n\\n/// @notice A `Position` represents a position of a claim within the game tree.\\n/// @dev This is represented as a \\\"generalized index\\\" where the high-order bit\\n/// is the level in the tree and the remaining bits is a unique bit pattern, allowing\\n/// a unique identifier for each node in the tree. Mathematically, it is calculated\\n/// as 2^{depth} + indexAtDepth.\\n    type Position is uint128;\\n\\n/// @title LibPosition\\n/// @notice This library contains helper functions for working with the `Position` type.\\nlibrary LibPosition {\\n    /// @notice the `MAX_POSITION_BITLEN` is the number of bits that the `Position` type, and the implementation of\\n    ///         its behavior within this library, can safely support.\\n    uint8 internal constant MAX_POSITION_BITLEN = 126;\\n\\n    /// @notice Computes a generalized index (2^{depth} + indexAtDepth).\\n    /// @param _depth The depth of the position.\\n    /// @param _indexAtDepth The index at the depth of the position.\\n    /// @return position_ The computed generalized index.\\n    function wrap(uint8 _depth, uint128 _indexAtDepth) internal pure returns (Position position_) {\\n        assembly {\\n        // gindex = 2^{_depth} + _indexAtDepth\\n            position_ := add(shl(_depth, 1), _indexAtDepth)\\n        }\\n    }\\n\\n    /// @notice Pulls the `depth` out of a `Position` type.\\n    /// @param _position The generalized index to get the `depth` of.\\n    /// @return depth_ The `depth` of the `position` gindex.\\n    /// @custom:attribution Solady <https://github.com/Vectorized/Solady>\\n    function depth(Position _position) internal pure returns (uint8 depth_) {\\n        // Return the most significant bit offset, which signifies the depth of the gindex.\\n        assembly {\\n            depth_ := or(depth_, shl(6, lt(0xffffffffffffffff, shr(depth_, _position))))\\n            depth_ := or(depth_, shl(5, lt(0xffffffff, shr(depth_, _position))))\\n\\n        // For the remaining 32 bits, use a De Bruijn lookup.\\n            _position := shr(depth_, _position)\\n            _position := or(_position, shr(1, _position))\\n            _position := or(_position, shr(2, _position))\\n            _position := or(_position, shr(4, _position))\\n            _position := or(_position, shr(8, _position))\\n            _position := or(_position, shr(16, _position))\\n\\n            depth_ :=\\n            or(\\n                depth_,\\n                byte(\\n                    shr(251, mul(_position, shl(224, 0x07c4acdd))),\\n                    0x0009010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f\\n                )\\n            )\\n        }\\n    }\\n\\n    /// @notice Pulls the `indexAtDepth` out of a `Position` type.\\n    ///         The `indexAtDepth` is the left/right index of a position at a specific depth within\\n    ///         the binary tree, starting from index 0. For example, at gindex 2, the `depth` = 1\\n    ///         and the `indexAtDepth` = 0.\\n    /// @param _position The generalized index to get the `indexAtDepth` of.\\n    /// @return indexAtDepth_ The `indexAtDepth` of the `position` gindex.\\n    function indexAtDepth(Position _position) internal pure returns (uint128 indexAtDepth_) {\\n        // Return bits p_{msb-1}...p_{0}. This effectively pulls the 2^{depth} out of the gindex,\\n        // leaving only the `indexAtDepth`.\\n        uint256 msb = depth(_position);\\n        assembly {\\n            indexAtDepth_ := sub(_position, shl(msb, 1))\\n        }\\n    }\\n\\n    /// @notice Get the left child of `_position`.\\n    /// @param _position The position to get the left position of.\\n    /// @return left_ The position to the left of `position`.\\n    function left(Position _position) internal pure returns (Position left_) {\\n        assembly {\\n            left_ := shl(1, _position)\\n        }\\n    }\\n\\n    /// @notice Get the right child of `_position`\\n    /// @param _position The position to get the right position of.\\n    /// @return right_ The position to the right of `position`.\\n    function right(Position _position) internal pure returns (Position right_) {\\n        assembly {\\n            right_ := or(1, shl(1, _position))\\n        }\\n    }\\n\\n    /// @notice Get the parent position of `_position`.\\n    /// @param _position The position to get the parent position of.\\n    /// @return parent_ The parent position of `position`.\\n    function parent(Position _position) internal pure returns (Position parent_) {\\n        assembly {\\n            parent_ := shr(1, _position)\\n        }\\n    }\\n\\n    /// @notice Get the deepest, right most gindex relative to the `position`. This is equivalent to\\n    ///         calling `right` on a position until the maximum depth is reached.\\n    /// @param _position The position to get the relative deepest, right most gindex of.\\n    /// @param _maxDepth The maximum depth of the game.\\n    /// @return rightIndex_ The deepest, right most gindex relative to the `position`.\\n    function rightIndex(Position _position, uint256 _maxDepth) internal pure returns (Position rightIndex_) {\\n        uint256 msb = depth(_position);\\n        assembly {\\n            let remaining := sub(_maxDepth, msb)\\n            rightIndex_ := or(shl(remaining, _position), sub(shl(remaining, 1), 1))\\n        }\\n    }\\n\\n    /// @notice Get the deepest, right most trace index relative to the `position`. This is\\n    ///         equivalent to calling `right` on a position until the maximum depth is reached and\\n    ///         then finding its index at depth.\\n    /// @param _position The position to get the relative trace index of.\\n    /// @param _maxDepth The maximum depth of the game.\\n    /// @return traceIndex_ The trace index relative to the `position`.\\n    function traceIndex(Position _position, uint256 _maxDepth) internal pure returns (uint256 traceIndex_) {\\n        uint256 msb = depth(_position);\\n        assembly {\\n            let remaining := sub(_maxDepth, msb)\\n            traceIndex_ := sub(or(shl(remaining, _position), sub(shl(remaining, 1), 1)), shl(_maxDepth, 1))\\n        }\\n    }\\n\\n    /// @notice Gets the position of the highest ancestor of `_position` that commits to the same\\n    ///         trace index.\\n    /// @param _position The position to get the highest ancestor of.\\n    /// @return ancestor_ The highest ancestor of `position` that commits to the same trace index.\\n    function traceAncestor(Position _position) internal pure returns (Position ancestor_) {\\n        // Create a field with only the lowest unset bit of `_position` set.\\n        Position lsb;\\n        assembly {\\n            lsb := and(not(_position), add(_position, 1))\\n        }\\n        // Find the index of the lowest unset bit within the field.\\n        uint256 msb = depth(lsb);\\n        // The highest ancestor that commits to the same trace index is the original position\\n        // shifted right by the index of the lowest unset bit.\\n        assembly {\\n            let a := shr(msb, _position)\\n        // Bound the ancestor to the minimum gindex, 1.\\n            ancestor_ := or(a, iszero(a))\\n        }\\n    }\\n\\n    /// @notice Gets the position of the highest ancestor of `_position` that commits to the same\\n    ///         trace index, while still being below `_upperBoundExclusive`.\\n    /// @param _position The position to get the highest ancestor of.\\n    /// @param _upperBoundExclusive The exclusive upper depth bound, used to inform where to stop in order\\n    ///                             to not escape a sub-tree.\\n    /// @return ancestor_ The highest ancestor of `position` that commits to the same trace index.\\n    function traceAncestorBounded(\\n        Position _position,\\n        uint256 _upperBoundExclusive\\n    )\\n    internal\\n    pure\\n    returns (Position ancestor_)\\n    {\\n        // This function only works for positions that are below the upper bound.\\n        if (_position.depth() <= _upperBoundExclusive) {\\n            assembly {\\n            // Revert with `ClaimAboveSplit()`\\n                mstore(0x00, 0xb34b5c22)\\n                revert(0x1C, 0x04)\\n            }\\n        }\\n\\n        // Grab the global trace ancestor.\\n        ancestor_ = traceAncestor(_position);\\n\\n        // If the ancestor is above or at the upper bound, shift it to be below the upper bound.\\n        // This should be a special case that only covers positions that commit to the final leaf\\n        // in a sub-tree.\\n        if (ancestor_.depth() <= _upperBoundExclusive) {\\n            ancestor_ = ancestor_.rightIndex(_upperBoundExclusive + 1);\\n        }\\n    }\\n\\n    /// @notice Get the move position of `_position`, which is the left child of:\\n    ///         1. `_position` if `_isAttack` is true.\\n    ///         2. `_position | 1` if `_isAttack` is false.\\n    /// @param _position The position to get the relative attack/defense position of.\\n    /// @param _isAttack Whether or not the move is an attack move.\\n    /// @return move_ The move position relative to `position`.\\n    function move(Position _position, bool _isAttack) internal pure returns (Position move_) {\\n        assembly {\\n            move_ := shl(1, or(iszero(_isAttack), _position))\\n        }\\n    }\\n\\n    /// @notice Get the value of a `Position` type in the form of the underlying uint128.\\n    /// @param _position The position to get the value of.\\n    /// @return raw_ The value of the `position` as a uint128 type.\\n    function raw(Position _position) internal pure returns (uint128 raw_) {\\n        assembly {\\n            raw_ := _position\\n        }\\n    }\\n}\\n\",\"keccak256\":\"0xa7636e69177d9cf2c4575d8e5b71442133e1267b750799f30e90ecd14a445219\",\"license\":\"MIT\"},\"contracts/L1/dispute/lib/LibUDT.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.15;\\n\\nimport \\\"./LibPosition.sol\\\";\\n\\nusing LibClaim for Claim global;\\nusing LibHash for Hash global;\\nusing LibDuration for Duration global;\\nusing LibClock for Clock global;\\nusing LibGameId for GameId global;\\nusing LibTimestamp for Timestamp global;\\nusing LibVMStatus for VMStatus global;\\nusing LibGameType for GameType global;\\n\\n/// @notice A `Clock` represents a packed `Duration` and `Timestamp`\\n/// @dev The packed layout of this type is as follows:\\n/// \\u250c\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u252c\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2510\\n/// \\u2502    Bits    \\u2502     Value      \\u2502\\n/// \\u251c\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u253c\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2524\\n/// \\u2502 [0, 64)    \\u2502 Duration       \\u2502\\n/// \\u2502 [64, 128)  \\u2502 Timestamp      \\u2502\\n/// \\u2514\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2534\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2518\\n    type Clock is uint128;\\n\\n/// @title LibClock\\n/// @notice This library contains helper functions for working with the `Clock` type.\\nlibrary LibClock {\\n    /// @notice Packs a `Duration` and `Timestamp` into a `Clock` type.\\n    /// @param _duration The `Duration` to pack into the `Clock` type.\\n    /// @param _timestamp The `Timestamp` to pack into the `Clock` type.\\n    /// @return clock_ The `Clock` containing the `_duration` and `_timestamp`.\\n    function wrap(Duration _duration, Timestamp _timestamp) internal pure returns (Clock clock_) {\\n        assembly {\\n            clock_ := or(shl(0x40, _duration), _timestamp)\\n        }\\n    }\\n\\n    /// @notice Pull the `Duration` out of a `Clock` type.\\n    /// @param _clock The `Clock` type to pull the `Duration` out of.\\n    /// @return duration_ The `Duration` pulled out of `_clock`.\\n    function duration(Clock _clock) internal pure returns (Duration duration_) {\\n        // Shift the high-order 64 bits into the low-order 64 bits, leaving only the `duration`.\\n        assembly {\\n            duration_ := shr(0x40, _clock)\\n        }\\n    }\\n\\n    /// @notice Pull the `Timestamp` out of a `Clock` type.\\n    /// @param _clock The `Clock` type to pull the `Timestamp` out of.\\n    /// @return timestamp_ The `Timestamp` pulled out of `_clock`.\\n    function timestamp(Clock _clock) internal pure returns (Timestamp timestamp_) {\\n        // Clean the high-order 192 bits by shifting the clock left and then right again, leaving\\n        // only the `timestamp`.\\n        assembly {\\n            timestamp_ := shr(0xC0, shl(0xC0, _clock))\\n        }\\n    }\\n\\n    /// @notice Get the value of a `Clock` type in the form of the underlying uint128.\\n    /// @param _clock The `Clock` type to get the value of.\\n    /// @return clock_ The value of the `Clock` type as a uint128 type.\\n    function raw(Clock _clock) internal pure returns (uint128 clock_) {\\n        assembly {\\n            clock_ := _clock\\n        }\\n    }\\n}\\n\\n/// @notice A `GameId` represents a packed 4 byte game ID, a 8 byte timestamp, and a 20 byte address.\\n/// @dev The packed layout of this type is as follows:\\n/// \\u250c\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u252c\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2510\\n/// \\u2502   Bits    \\u2502   Value   \\u2502\\n/// \\u251c\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u253c\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2524\\n/// \\u2502 [0, 32)   \\u2502 Game Type \\u2502\\n/// \\u2502 [32, 96)  \\u2502 Timestamp \\u2502\\n/// \\u2502 [96, 256) \\u2502 Address   \\u2502\\n/// \\u2514\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2534\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2518\\n    type GameId is bytes32;\\n\\n/// @title LibGameId\\n/// @notice Utility functions for packing and unpacking GameIds.\\nlibrary LibGameId {\\n    /// @notice Packs values into a 32 byte GameId type.\\n    /// @param _gameType The game type.\\n    /// @param _timestamp The timestamp of the game's creation.\\n    /// @param _gameProxy The game proxy address.\\n    /// @return gameId_ The packed GameId.\\n    function pack(\\n        GameType _gameType,\\n        Timestamp _timestamp,\\n        address _gameProxy\\n    )\\n    internal\\n    pure\\n    returns (GameId gameId_)\\n    {\\n        assembly {\\n            gameId_ := or(or(shl(224, _gameType), shl(160, _timestamp)), _gameProxy)\\n        }\\n    }\\n\\n    /// @notice Unpacks values from a 32 byte GameId type.\\n    /// @param _gameId The packed GameId.\\n    /// @return gameType_ The game type.\\n    /// @return timestamp_ The timestamp of the game's creation.\\n    /// @return gameProxy_ The game proxy address.\\n    function unpack(GameId _gameId)\\n    internal\\n    pure\\n    returns (GameType gameType_, Timestamp timestamp_, address gameProxy_)\\n    {\\n        assembly {\\n            gameType_ := shr(224, _gameId)\\n            timestamp_ := and(shr(160, _gameId), 0xFFFFFFFFFFFFFFFF)\\n            gameProxy_ := and(_gameId, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF)\\n        }\\n    }\\n}\\n\\n/// @notice A claim represents an MPT root representing the state of the fault proof program.\\n    type Claim is bytes32;\\n\\n/// @title LibClaim\\n/// @notice This library contains helper functions for working with the `Claim` type.\\nlibrary LibClaim {\\n    /// @notice Get the value of a `Claim` type in the form of the underlying bytes32.\\n    /// @param _claim The `Claim` type to get the value of.\\n    /// @return claim_ The value of the `Claim` type as a bytes32 type.\\n    function raw(Claim _claim) internal pure returns (bytes32 claim_) {\\n        assembly {\\n            claim_ := _claim\\n        }\\n    }\\n\\n    /// @notice Hashes a claim and a position together.\\n    /// @param _claim A Claim type.\\n    /// @param _position The position of `claim`.\\n    /// @param _challengeIndex The index of the claim being moved against.\\n    /// @return claimHash_ A hash of abi.encodePacked(claim, position|challengeIndex);\\n    function hashClaimPos(\\n        Claim _claim,\\n        Position _position,\\n        uint256 _challengeIndex\\n    )\\n    internal\\n    pure\\n    returns (Hash claimHash_)\\n    {\\n        assembly {\\n            mstore(0x00, _claim)\\n            mstore(0x20, or(shl(128, _position), and(0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF, _challengeIndex)))\\n            claimHash_ := keccak256(0x00, 0x40)\\n        }\\n    }\\n}\\n\\n/// @notice A dedicated duration type.\\n/// @dev Unit: seconds\\n    type Duration is uint64;\\n\\n/// @title LibDuration\\n/// @notice This library contains helper functions for working with the `Duration` type.\\nlibrary LibDuration {\\n    /// @notice Get the value of a `Duration` type in the form of the underlying uint64.\\n    /// @param _duration The `Duration` type to get the value of.\\n    /// @return duration_ The value of the `Duration` type as a uint64 type.\\n    function raw(Duration _duration) internal pure returns (uint64 duration_) {\\n        assembly {\\n            duration_ := _duration\\n        }\\n    }\\n}\\n\\n/// @notice A custom type for a generic hash.\\n    type Hash is bytes32;\\n\\n/// @title LibHash\\n/// @notice This library contains helper functions for working with the `Hash` type.\\nlibrary LibHash {\\n    /// @notice Get the value of a `Hash` type in the form of the underlying bytes32.\\n    /// @param _hash The `Hash` type to get the value of.\\n    /// @return hash_ The value of the `Hash` type as a bytes32 type.\\n    function raw(Hash _hash) internal pure returns (bytes32 hash_) {\\n        assembly {\\n            hash_ := _hash\\n        }\\n    }\\n}\\n\\n/// @notice A dedicated timestamp type.\\n    type Timestamp is uint64;\\n\\n/// @title LibTimestamp\\n/// @notice This library contains helper functions for working with the `Timestamp` type.\\nlibrary LibTimestamp {\\n    /// @notice Get the value of a `Timestamp` type in the form of the underlying uint64.\\n    /// @param _timestamp The `Timestamp` type to get the value of.\\n    /// @return timestamp_ The value of the `Timestamp` type as a uint64 type.\\n    function raw(Timestamp _timestamp) internal pure returns (uint64 timestamp_) {\\n        assembly {\\n            timestamp_ := _timestamp\\n        }\\n    }\\n}\\n\\n/// @notice A `VMStatus` represents the status of a VM execution.\\n    type VMStatus is uint8;\\n\\n/// @title LibVMStatus\\n/// @notice This library contains helper functions for working with the `VMStatus` type.\\nlibrary LibVMStatus {\\n    /// @notice Get the value of a `VMStatus` type in the form of the underlying uint8.\\n    /// @param _vmstatus The `VMStatus` type to get the value of.\\n    /// @return vmstatus_ The value of the `VMStatus` type as a uint8 type.\\n    function raw(VMStatus _vmstatus) internal pure returns (uint8 vmstatus_) {\\n        assembly {\\n            vmstatus_ := _vmstatus\\n        }\\n    }\\n}\\n\\n/// @notice A `GameType` represents the type of game being played.\\n    type GameType is uint32;\\n\\n/// @title LibGameType\\n/// @notice This library contains helper functions for working with the `GameType` type.\\nlibrary LibGameType {\\n    /// @notice Get the value of a `GameType` type in the form of the underlying uint32.\\n    /// @param _gametype The `GameType` type to get the value of.\\n    /// @return gametype_ The value of the `GameType` type as a uint32 type.\\n    function raw(GameType _gametype) internal pure returns (uint32 gametype_) {\\n        assembly {\\n            gametype_ := _gametype\\n        }\\n    }\\n}\\n\",\"keccak256\":\"0x91be468f622bdd9198209998e30e7079015037512946b600f5a18113acb957c0\",\"license\":\"MIT\"},\"contracts/L1/dispute/lib/Types.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.15;\\n\\nimport \\\"./LibUDT.sol\\\";\\n\\n/// @notice The current status of the dispute game.\\n    enum GameStatus {\\n        // The game is currently in progress, and has not been resolved.\\n        IN_PROGRESS,\\n        // The game has concluded, and the `rootClaim` was challenged successfully.\\n        CHALLENGER_WINS,\\n        // The game has concluded, and the `rootClaim` could not be contested.\\n        DEFENDER_WINS\\n    }\\n\\n/// @notice Represents an L2 output root and the L2 block number at which it was generated.\\n/// @custom:field root The output root.\\n/// @custom:field l2BlockNumber The L2 block number at which the output root was generated.\\n    struct OutputRoot {\\n        Hash root;\\n        uint256 l2BlockNumber;\\n    }\\n\\n/// @title GameTypes\\n/// @notice A library that defines the IDs of games that can be played.\\nlibrary GameTypes {\\n    /// @dev A dispute game type the uses the cannon vm.\\n    GameType internal constant CANNON = GameType.wrap(0);\\n\\n    /// @dev A permissioned dispute game type the uses the cannon vm.\\n    GameType internal constant PERMISSIONED_CANNON = GameType.wrap(1);\\n\\n    /// @notice A dispute game type the uses the asterisc VM\\n    GameType internal constant ASTERISC = GameType.wrap(2);\\n\\n    /// @notice A dispute game type with short game duration for testing withdrawals.\\n    ///         Not intended for production use.\\n    GameType internal constant FAST = GameType.wrap(254);\\n\\n    /// @notice A dispute game type that uses an alphabet vm.\\n    ///         Not intended for production use.\\n    GameType internal constant ALPHABET = GameType.wrap(255);\\n}\\n\\n/// @title VMStatuses\\n/// @notice Named type aliases for the various valid VM status bytes.\\nlibrary VMStatuses {\\n    /// @notice The VM has executed successfully and the outcome is valid.\\n    VMStatus internal constant VALID = VMStatus.wrap(0);\\n\\n    /// @notice The VM has executed successfully and the outcome is invalid.\\n    VMStatus internal constant INVALID = VMStatus.wrap(1);\\n\\n    /// @notice The VM has paniced.\\n    VMStatus internal constant PANIC = VMStatus.wrap(2);\\n\\n    /// @notice The VM execution is still in progress.\\n    VMStatus internal constant UNFINISHED = VMStatus.wrap(3);\\n}\\n\\n/// @title LocalPreimageKey\\n/// @notice Named type aliases for local `PreimageOracle` key identifiers.\\nlibrary LocalPreimageKey {\\n    /// @notice The identifier for the L1 head hash.\\n    uint256 internal constant L1_HEAD_HASH = 0x01;\\n\\n    /// @notice The identifier for the starting output root.\\n    uint256 internal constant STARTING_OUTPUT_ROOT = 0x02;\\n\\n    /// @notice The identifier for the disputed output root.\\n    uint256 internal constant DISPUTED_OUTPUT_ROOT = 0x03;\\n\\n    /// @notice The identifier for the disputed L2 block number.\\n    uint256 internal constant DISPUTED_L2_BLOCK_NUMBER = 0x04;\\n\\n    /// @notice The identifier for the chain ID.\\n    uint256 internal constant CHAIN_ID = 0x05;\\n}\\n\",\"keccak256\":\"0xc3ceda512a854337428c30ef8458f66fa28cb507649d388a3435caf3e9b219c3\",\"license\":\"MIT\"},\"contracts/L1/rollup/ICanonicalTransactionChain.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity >0.5.0 <0.9.0;\\n\\n/* Library Imports */\\nimport { Lib_OVMCodec } from \\\"../../libraries/codec/Lib_OVMCodec.sol\\\";\\n\\n/* Interface Imports */\\nimport { IChainStorageContainer } from \\\"./IChainStorageContainer.sol\\\";\\n\\n/**\\n * @title ICanonicalTransactionChain\\n */\\ninterface ICanonicalTransactionChain {\\n    /**********\\n     * Events *\\n     **********/\\n    event QueueGlobalMetadataSet(address _sender, uint256 _chainId, bytes27 _globalMetadata);\\n\\n    event QueuePushed(address _sender, uint256 _chainId, Lib_OVMCodec.QueueElement _object);\\n\\n    event QueueSetted(\\n        address _sender,\\n        uint256 _chainId,\\n        uint256 _index,\\n        Lib_OVMCodec.QueueElement _object\\n    );\\n\\n    event QueueElementDeleted(\\n        address _sender,\\n        uint256 _chainId,\\n        uint256 _index,\\n        bytes27 _globalMetadata\\n    );\\n\\n    event BatchesGlobalMetadataSet(address _sender, uint256 _chainId, bytes27 _globalMetadata);\\n\\n    event BatchPushed(address _sender, uint256 _chainId, bytes32 _object, bytes27 _globalMetadata);\\n\\n    event BatchSetted(address _sender, uint256 _chainId, uint256 _index, bytes32 _object);\\n\\n    event BatchElementDeleted(\\n        address _sender,\\n        uint256 _chainId,\\n        uint256 _index,\\n        bytes27 _globalMetadata\\n    );\\n\\n    event L2GasParamsUpdated(\\n        uint256 l2GasDiscountDivisor,\\n        uint256 enqueueGasCost,\\n        uint256 enqueueL2GasPrepaid\\n    );\\n\\n    event TransactionEnqueued(\\n        uint256 _chainId,\\n        address indexed _l1TxOrigin,\\n        address indexed _target,\\n        uint256 _gasLimit,\\n        bytes _data,\\n        uint256 indexed _queueIndex,\\n        uint256 _timestamp\\n    );\\n\\n    event QueueBatchAppended(\\n        uint256 _chainId,\\n        uint256 _startingQueueIndex,\\n        uint256 _numQueueElements,\\n        uint256 _totalElements\\n    );\\n\\n    event SequencerBatchAppended(\\n        uint256 _chainId,\\n        uint256 _startingQueueIndex,\\n        uint256 _numQueueElements,\\n        uint256 _totalElements\\n    );\\n\\n    event TransactionBatchAppended(\\n        uint256 _chainId,\\n        uint256 indexed _batchIndex,\\n        bytes32 _batchRoot,\\n        uint256 _batchSize,\\n        uint256 _prevTotalElements,\\n        bytes _extraData\\n    );\\n\\n    /***********\\n     * Structs *\\n     ***********/\\n\\n    struct BatchContext {\\n        uint256 numSequencedTransactions;\\n        uint256 numSubsequentQueueTransactions;\\n        uint256 timestamp;\\n        uint256 blockNumber;\\n    }\\n\\n    /*******************************\\n     * Authorized Setter Functions *\\n     *******************************/\\n\\n    /**\\n     * Allows the Burn Admin to update the parameters which determine the amount of gas to burn.\\n     * The value of enqueueL2GasPrepaid is immediately updated as well.\\n     */\\n    function setGasParams(uint256 _l2GasDiscountDivisor, uint256 _enqueueGasCost) external;\\n\\n    /********************\\n     * Public Functions *\\n     ********************/\\n\\n    /**\\n     * Accesses the batch storage container.\\n     * @return Reference to the batch storage container.\\n     */\\n    function batches() external view returns (IChainStorageContainer);\\n\\n    /**\\n     * Retrieves the total number of elements submitted.\\n     * @return _totalElements Total submitted elements.\\n     */\\n    function getTotalElements() external view returns (uint256 _totalElements);\\n\\n    /**\\n     * Retrieves the total number of batches submitted.\\n     * @return _totalBatches Total submitted batches.\\n     */\\n    function getTotalBatches() external view returns (uint256 _totalBatches);\\n\\n    /**\\n     * Returns the index of the next element to be enqueued.\\n     * @return Index for the next queue element.\\n     */\\n    function getNextQueueIndex() external view returns (uint40);\\n\\n    /**\\n     * Gets the queue element at a particular index.\\n     * @param _index Index of the queue element to access.\\n     * @return _element Queue element at the given index.\\n     */\\n    function getQueueElement(uint256 _index)\\n        external\\n        view\\n        returns (Lib_OVMCodec.QueueElement memory _element);\\n\\n    /**\\n     * Returns the timestamp of the last transaction.\\n     * @return Timestamp for the last transaction.\\n     */\\n    function getLastTimestamp() external view returns (uint40);\\n\\n    /**\\n     * Returns the blocknumber of the last transaction.\\n     * @return Blocknumber for the last transaction.\\n     */\\n    function getLastBlockNumber() external view returns (uint40);\\n\\n    /**\\n     * Get the number of queue elements which have not yet been included.\\n     * @return Number of pending queue elements.\\n     */\\n    function getNumPendingQueueElements() external view returns (uint40);\\n\\n    /**\\n     * Retrieves the length of the queue, including\\n     * both pending and canonical transactions.\\n     * @return Length of the queue.\\n     */\\n    function getQueueLength() external view returns (uint40);\\n\\n    /**\\n     * Adds a transaction to the queue.\\n     * @param _target Target contract to send the transaction to.\\n     * @param _gasLimit Gas limit for the given transaction.\\n     * @param _data Transaction data.\\n     */\\n    function enqueue(\\n        address _target,\\n        uint256 _gasLimit,\\n        bytes memory _data\\n    ) external;\\n\\n    /**\\n     * Allows the sequencer to append a batch of transactions.\\n     * @dev This function uses a custom encoding scheme for efficiency reasons.\\n     * .param _shouldStartAtElement Specific batch we expect to start appending to.\\n     * .param _totalElementsToAppend Total number of batch elements we expect to append.\\n     * .param _contexts Array of batch contexts.\\n     * .param _transactionDataFields Array of raw transaction data.\\n     */\\n    function appendSequencerBatch(\\n        // uint40 _shouldStartAtElement,\\n        // uint24 _totalElementsToAppend,\\n        // BatchContext[] _contexts,\\n        // bytes[] _transactionDataFields\\n    ) external;\\n\\n    //added chain id function\\n\\n    /**\\n     * Retrieves the total number of elements submitted.\\n     * @param _chainId identity for the l2 chain.\\n     * @return _totalElements Total submitted elements.\\n     */\\n    function getTotalElementsByChainId(uint256 _chainId)\\n        external\\n        view\\n        returns (uint256 _totalElements);\\n\\n    /**\\n     * Retrieves the total number of batches submitted.\\n     * @param _chainId identity for the l2 chain.\\n     * @return _totalBatches Total submitted batches.\\n     */\\n    function getTotalBatchesByChainId(uint256 _chainId)\\n        external\\n        view\\n        returns (uint256 _totalBatches);\\n\\n    /**\\n     * Returns the index of the next element to be enqueued.\\n     * @param _chainId identity for the l2 chain.\\n     * @return Index for the next queue element.\\n     */\\n    function getNextQueueIndexByChainId(uint256 _chainId) external view returns (uint40);\\n\\n    /**\\n     * Gets the queue element at a particular index.\\n     * @param _chainId identity for the l2 chain.\\n     * @param _index Index of the queue element to access.\\n     * @return _element Queue element at the given index.\\n     */\\n    function getQueueElementByChainId(uint256 _chainId, uint256 _index)\\n        external\\n        view\\n        returns (Lib_OVMCodec.QueueElement memory _element);\\n\\n    /**\\n     * Returns the timestamp of the last transaction.\\n     * @param _chainId identity for the l2 chain.\\n     * @return Timestamp for the last transaction.\\n     */\\n    function getLastTimestampByChainId(uint256 _chainId) external view returns (uint40);\\n\\n    /**\\n     * Returns the blocknumber of the last transaction.\\n     * @param _chainId identity for the l2 chain.\\n     * @return Blocknumber for the last transaction.\\n     */\\n    function getLastBlockNumberByChainId(uint256 _chainId) external view returns (uint40);\\n\\n    /**\\n     * Get the number of queue elements which have not yet been included.\\n     * @param _chainId identity for the l2 chain.\\n     * @return Number of pending queue elements.\\n     */\\n    function getNumPendingQueueElementsByChainId(uint256 _chainId) external view returns (uint40);\\n\\n    /**\\n     * Retrieves the length of the queue, including\\n     * both pending and canonical transactions.\\n     * @param _chainId identity for the l2 chain.\\n     * @return Length of the queue.\\n     */\\n    function getQueueLengthByChainId(uint256 _chainId) external view returns (uint40);\\n\\n    /**\\n     * Adds a transaction to the queue.\\n     * @param _chainId identity for the l2 chain.\\n     * @param _target Target contract to send the transaction to.\\n     * @param _gasLimit Gas limit for the given transaction.\\n     * @param _data Transaction data.\\n     */\\n    function enqueueByChainId(\\n        uint256 _chainId,\\n        address _target,\\n        uint256 _gasLimit,\\n        bytes memory _data\\n    ) external;\\n\\n    /**\\n     * Allows the sequencer to append a batch of transactions.\\n     * @dev This function uses a custom encoding scheme for efficiency reasons.\\n     * .param _chainId identity for the l2 chain.\\n     * .param _shouldStartAtElement Specific batch we expect to start appending to.\\n     * .param _totalElementsToAppend Total number of batch elements we expect to append.\\n     * .param _contexts Array of batch contexts.\\n     * .param _transactionDataFields Array of raw transaction data.\\n     */\\n    function appendSequencerBatchByChainId(\\n        // uint256 _chainId,\\n        // uint40 _shouldStartAtElement,\\n        // uint24 _totalElementsToAppend,\\n        // BatchContext[] _contexts,\\n        // bytes[] _transactionDataFields\\n    ) external;\\n\\n    function pushQueueByChainId(uint256 _chainId, Lib_OVMCodec.QueueElement calldata _object)\\n        external;\\n\\n    function setQueueByChainId(\\n        uint256 _chainId,\\n        uint256 _index,\\n        Lib_OVMCodec.QueueElement calldata _object\\n    ) external;\\n\\n    function setBatchGlobalMetadataByChainId(uint256 _chainId, bytes27 _globalMetadata) external;\\n\\n    function getBatchGlobalMetadataByChainId(uint256 _chainId) external view returns (bytes27);\\n\\n    function lengthBatchByChainId(uint256 _chainId) external view returns (uint256);\\n\\n    function pushBatchByChainId(\\n        uint256 _chainId,\\n        bytes32 _object,\\n        bytes27 _globalMetadata\\n    ) external;\\n\\n    function setBatchByChainId(\\n        uint256 _chainId,\\n        uint256 _index,\\n        bytes32 _object\\n    ) external;\\n\\n    function getBatchByChainId(uint256 _chainId, uint256 _index) external view returns (bytes32);\\n\\n    function deleteBatchElementsAfterInclusiveByChainId(\\n        uint256 _chainId,\\n        uint256 _index,\\n        bytes27 _globalMetadata\\n    ) external;\\n}\\n\",\"keccak256\":\"0x43c29bda6d5f8fb8f47a2ec0c6807b03e06462c3c3d3a20825a74e03efeaab10\",\"license\":\"MIT\"},\"contracts/L1/rollup/IChainStorageContainer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity >0.5.0 <0.9.0;\\n\\n/**\\n * @title IChainStorageContainer\\n */\\ninterface IChainStorageContainer {\\n    /********************\\n     * Public Functions *\\n     ********************/\\n\\n    /**\\n     * Sets the container's global metadata field. We're using `bytes27` here because we use five\\n     * bytes to maintain the length of the underlying data structure, meaning we have an extra\\n     * 27 bytes to store arbitrary data.\\n     * @param _globalMetadata New global metadata to set.\\n     */\\n    function setGlobalMetadata(bytes27 _globalMetadata) external;\\n\\n    /**\\n     * Retrieves the container's global metadata field.\\n     * @return Container global metadata field.\\n     */\\n    function getGlobalMetadata() external view returns (bytes27);\\n\\n    /**\\n     * Retrieves the number of objects stored in the container.\\n     * @return Number of objects in the container.\\n     */\\n    function length() external view returns (uint256);\\n\\n    /**\\n     * Pushes an object into the container.\\n     * @param _object A 32 byte value to insert into the container.\\n     */\\n    function push(bytes32 _object) external;\\n\\n    /**\\n     * Pushes an object into the container. Function allows setting the global metadata since\\n     * we'll need to touch the \\\"length\\\" storage slot anyway, which also contains the global\\n     * metadata (it's an optimization).\\n     * @param _object A 32 byte value to insert into the container.\\n     * @param _globalMetadata New global metadata for the container.\\n     */\\n    function push(bytes32 _object, bytes27 _globalMetadata) external;\\n\\n    /**\\n     * Set an object into the container. Function allows setting the global metadata since\\n     * we'll need to touch the \\\"length\\\" storage slot anyway, which also contains the global\\n     * metadata (it's an optimization).\\n     * @param _index position.\\n     * @param _object A 32 byte value to insert into the container.\\n     */\\n    function setByChainId(\\n        uint256 _chainId,\\n        uint256 _index,\\n        bytes32 _object\\n    ) external;\\n\\n    /**\\n     * Retrieves an object from the container.\\n     * @param _index Index of the particular object to access.\\n     * @return 32 byte object value.\\n     */\\n    function get(uint256 _index) external view returns (bytes32);\\n\\n    /**\\n     * Removes all objects after and including a given index.\\n     * @param _index Object index to delete from.\\n     */\\n    function deleteElementsAfterInclusive(uint256 _index) external;\\n\\n    /**\\n     * Removes all objects after and including a given index. Also allows setting the global\\n     * metadata field.\\n     * @param _index Object index to delete from.\\n     * @param _globalMetadata New global metadata for the container.\\n     */\\n    function deleteElementsAfterInclusive(uint256 _index, bytes27 _globalMetadata) external;\\n\\n    /**\\n     * Sets the container's global metadata field. We're using `bytes27` here because we use five\\n     * bytes to maintain the length of the underlying data structure, meaning we have an extra\\n     * 27 bytes to store arbitrary data.\\n     * @param _chainId identity for the l2 chain.\\n     * @param _globalMetadata New global metadata to set.\\n     */\\n    function setGlobalMetadataByChainId(uint256 _chainId, bytes27 _globalMetadata) external;\\n\\n    /**\\n     * Retrieves the container's global metadata field.\\n     * @param _chainId identity for the l2 chain.\\n     * @return Container global metadata field.\\n     */\\n    function getGlobalMetadataByChainId(uint256 _chainId) external view returns (bytes27);\\n\\n    /**\\n     * Retrieves the number of objects stored in the container.\\n     * @param _chainId identity for the l2 chain.\\n     * @return Number of objects in the container.\\n     */\\n    function lengthByChainId(uint256 _chainId) external view returns (uint256);\\n\\n    /**\\n     * Pushes an object into the container.\\n     * @param _chainId identity for the l2 chain.\\n     * @param _object A 32 byte value to insert into the container.\\n     */\\n    function pushByChainId(uint256 _chainId, bytes32 _object) external;\\n\\n    /**\\n     * Pushes an object into the container. Function allows setting the global metadata since\\n     * we'll need to touch the \\\"length\\\" storage slot anyway, which also contains the global\\n     * metadata (it's an optimization).\\n     * @param _chainId identity for the l2 chain.\\n     * @param _object A 32 byte value to insert into the container.\\n     * @param _globalMetadata New global metadata for the container.\\n     */\\n    function pushByChainId(\\n        uint256 _chainId,\\n        bytes32 _object,\\n        bytes27 _globalMetadata\\n    ) external;\\n\\n    /**\\n     * Retrieves an object from the container.\\n     * @param _chainId identity for the l2 chain.\\n     * @param _index Index of the particular object to access.\\n     * @return 32 byte object value.\\n     */\\n    function getByChainId(uint256 _chainId, uint256 _index) external view returns (bytes32);\\n\\n    /**\\n     * Removes all objects after and including a given index.\\n     * @param _chainId identity for the l2 chain.\\n     * @param _index Object index to delete from.\\n     */\\n    function deleteElementsAfterInclusiveByChainId(uint256 _chainId, uint256 _index) external;\\n\\n    /**\\n     * Removes all objects after and including a given index. Also allows setting the global\\n     * metadata field.\\n     * @param _chainId identity for the l2 chain.\\n     * @param _index Object index to delete from.\\n     * @param _globalMetadata New global metadata for the container.\\n     */\\n    function deleteElementsAfterInclusiveByChainId(\\n        uint256 _chainId,\\n        uint256 _index,\\n        bytes27 _globalMetadata\\n    ) external;\\n}\\n\",\"keccak256\":\"0x6e5473cd0f460bd5386c5f111c03d091b165b1b9391394d25326d30174b17fa4\",\"license\":\"MIT\"},\"contracts/L1/rollup/IMVMStateCommitmentChain.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity >0.5.0 <0.9.0;\\n\\n/* Library Imports */\\nimport { Lib_OVMCodec } from \\\"../../libraries/codec/Lib_OVMCodec.sol\\\";\\nimport { IChainStorageContainer } from \\\"./IChainStorageContainer.sol\\\";\\n\\n/**\\n * @title IStateCommitmentChain\\n */\\ninterface IMVMStateCommitmentChain {\\n    /**********\\n     * Events *\\n     **********/\\n\\n    event StateBatchAppended(\\n        uint256 _chainId,\\n        uint256 indexed _batchIndex,\\n        bytes32 _batchRoot,\\n        uint256 _batchSize,\\n        uint256 _prevTotalElements,\\n        bytes _extraData\\n    );\\n\\n    event StateBatchDeleted(uint256 _chainId, uint256 indexed _batchIndex, bytes32 _batchRoot);\\n\\n    /********************\\n     * Public Functions *\\n     ********************/\\n\\n    /**\\n     * Get the earliest disputable state root.\\n     * @param _chainId chain id for the l2 chain.\\n     * @return _earliestDisputableBatch Earliest disputable state root.\\n     */\\n    function findEarliestDisputableBatch(uint256 _chainId) external view returns (bytes32 _earliestDisputableBatch, uint256 blockNumber);\\n\\n    function batches() external view returns (IChainStorageContainer);\\n\\n    /**\\n     * Retrieves the total number of elements submitted.\\n     * @return _totalElements Total submitted elements.\\n     */\\n    function getTotalElements() external view returns (uint256 _totalElements);\\n\\n    /**\\n     * Retrieves the total number of batches submitted.\\n     * @return _totalBatches Total submitted batches.\\n     */\\n    function getTotalBatches() external view returns (uint256 _totalBatches);\\n\\n    /**\\n     * Retrieves the timestamp of the last batch submitted by the sequencer.\\n     * @return _lastSequencerTimestamp Last sequencer batch timestamp.\\n     */\\n    function getLastSequencerTimestamp() external view returns (uint256 _lastSequencerTimestamp);\\n\\n    /**\\n     * Appends a batch of state roots to the chain.\\n     * @param _batch Batch of state roots.\\n     * @param _shouldStartAtElement Index of the element at which this batch should start.\\n     * @param _lastBatchBlockHash Block hash of the last batch.\\n     * @param _lastBatchBlockNumber Block number of the last batch.\\n     */\\n    function appendStateBatch(bytes32[] calldata _batch, uint256 _shouldStartAtElement, bytes32 _lastBatchBlockHash, uint256 _lastBatchBlockNumber) external;\\n\\n    /**\\n     * Deletes all state roots after (and including) a given batch.\\n     * @param _batchHeader Header of the batch to start deleting from.\\n     */\\n    function deleteStateBatch(Lib_OVMCodec.ChainBatchHeader memory _batchHeader) external;\\n\\n    /**\\n     * Verifies a batch inclusion proof.\\n     * @param _element Hash of the element to verify a proof for.\\n     * @param _batchHeader Header of the batch in which the element was included.\\n     * @param _proof Merkle inclusion proof for the element.\\n     */\\n    function verifyStateCommitment(\\n        bytes32 _element,\\n        Lib_OVMCodec.ChainBatchHeader memory _batchHeader,\\n        Lib_OVMCodec.ChainInclusionProof memory _proof\\n    ) external view returns (bool _verified);\\n\\n    /**\\n     * Checks whether a given batch is still inside its fraud proof window.\\n     * @param _batchHeader Header of the batch to check.\\n     * @return _inside Whether or not the batch is inside the fraud proof window.\\n     */\\n    function insideFraudProofWindow(Lib_OVMCodec.ChainBatchHeader memory _batchHeader)\\n        external\\n        view\\n        returns (bool _inside);\\n\\n    /**\\n     * Saves a batch as disputed.\\n     * @param stateHeaderHash Hash of the disputed state header.\\n     */\\n    function saveDisputedBatch(bytes32 stateHeaderHash) external;\\n\\n    /**\\n     * Checks if a batch is disputed.\\n     * @param stateHeaderHash Hash of the disputed state header.\\n     * @return _disputed Whether or not the batch is disputed.\\n     */\\n    function isDisputedBatch(bytes32 stateHeaderHash) external view returns (bool _disputed);\\n\\n    /********************\\n     * chain id added func *\\n     ********************/\\n\\n    /**\\n     * Retrieves the total number of elements submitted.\\n     * @param _chainId identity for the l2 chain.\\n     * @return _totalElements Total submitted elements.\\n     */\\n    function getTotalElementsByChainId(uint256 _chainId)\\n        external\\n        view\\n        returns (uint256 _totalElements);\\n\\n    /**\\n     * Retrieves the total number of batches submitted.\\n     * @param _chainId identity for the l2 chain.\\n     * @return _totalBatches Total submitted batches.\\n     */\\n    function getTotalBatchesByChainId(uint256 _chainId)\\n        external\\n        view\\n        returns (uint256 _totalBatches);\\n\\n    /**\\n     * Retrieves the timestamp of the last batch submitted by the sequencer.\\n     * @param _chainId identity for the l2 chain.\\n     * @return _lastSequencerTimestamp Last sequencer batch timestamp.\\n     */\\n    function getLastSequencerTimestampByChainId(uint256 _chainId)\\n        external\\n        view\\n        returns (uint256 _lastSequencerTimestamp);\\n\\n    /**\\n     * Appends a batch of state roots to the chain.\\n     * @param _chainId identity for the l2 chain.\\n     * @param _batch Batch of state roots.\\n     * @param _shouldStartAtElement Index of the element at which this batch should start.\\n     * @param _proposer proposer of the batch\\n     * @param _lastBatchBlockHash Block hash of the last batch.\\n     * @param _lastBatchBlockNumber Block number of the last batch.\\n     */\\n    function appendStateBatchByChainId(\\n        uint256 _chainId,\\n        bytes32[] calldata _batch,\\n        uint256 _shouldStartAtElement,\\n        string calldata _proposer,\\n        bytes32 _lastBatchBlockHash,\\n        uint256 _lastBatchBlockNumber\\n    ) external;\\n\\n    /**\\n     * Deletes all state roots after (and including) a given batch.\\n     * @param _chainId identity for the l2 chain.\\n     * @param _batchHeader Header of the batch to start deleting from.\\n     */\\n    function deleteStateBatchByChainId(\\n        uint256 _chainId,\\n        Lib_OVMCodec.ChainBatchHeader memory _batchHeader\\n    ) external;\\n\\n    /**\\n     * Verifies a batch inclusion proof.\\n     * @param _chainId identity for the l2 chain.\\n     * @param _element Hash of the element to verify a proof for.\\n     * @param _batchHeader Header of the batch in which the element was included.\\n     * @param _proof Merkle inclusion proof for the element.\\n     */\\n    function verifyStateCommitmentByChainId(\\n        uint256 _chainId,\\n        bytes32 _element,\\n        Lib_OVMCodec.ChainBatchHeader memory _batchHeader,\\n        Lib_OVMCodec.ChainInclusionProof memory _proof\\n    ) external view returns (bool _verified);\\n\\n    /**\\n     * Checks whether a given batch is still inside its fraud proof window.\\n     * @param _chainId identity for the l2 chain.\\n     * @param _batchHeader Header of the batch to check.\\n     * @return _inside Whether or not the batch is inside the fraud proof window.\\n     */\\n    function insideFraudProofWindowByChainId(\\n        uint256 _chainId,\\n        Lib_OVMCodec.ChainBatchHeader memory _batchHeader\\n    ) external view returns (bool _inside);\\n}\\n\",\"keccak256\":\"0x365d0a36d3aeb338ac5ad63fcf08c9ee26dc0712eb438d00579d6bf57e391642\",\"license\":\"MIT\"},\"contracts/L1/rollup/IStateCommitmentChain.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity >0.5.0 <0.9.0;\\n\\n/* Library Imports */\\nimport { Lib_OVMCodec } from \\\"../../libraries/codec/Lib_OVMCodec.sol\\\";\\nimport { IChainStorageContainer } from \\\"./IChainStorageContainer.sol\\\";\\n\\n/**\\n * @title IStateCommitmentChain\\n */\\ninterface IStateCommitmentChain {\\n    /**********\\n     * Events *\\n     **********/\\n\\n    event StateBatchAppended(\\n        uint256 _chainId,\\n        uint256 indexed _batchIndex,\\n        bytes32 _batchRoot,\\n        uint256 _batchSize,\\n        uint256 _prevTotalElements,\\n        bytes _extraData\\n    );\\n\\n    event StateBatchDeleted(uint256 _chainId, uint256 indexed _batchIndex, bytes32 _batchRoot);\\n\\n    /********************\\n     * Public Functions *\\n     ********************/\\n\\n    function batches() external view returns (IChainStorageContainer);\\n\\n    /**\\n     * Retrieves the total number of elements submitted.\\n     * @return _totalElements Total submitted elements.\\n     */\\n    function getTotalElements() external view returns (uint256 _totalElements);\\n\\n    /**\\n     * Retrieves the total number of batches submitted.\\n     * @return _totalBatches Total submitted batches.\\n     */\\n    function getTotalBatches() external view returns (uint256 _totalBatches);\\n\\n    /**\\n     * Retrieves the timestamp of the last batch submitted by the sequencer.\\n     * @return _lastSequencerTimestamp Last sequencer batch timestamp.\\n     */\\n    function getLastSequencerTimestamp() external view returns (uint256 _lastSequencerTimestamp);\\n\\n    /**\\n     * Appends a batch of state roots to the chain.\\n     * @param _batch Batch of state roots.\\n     * @param _shouldStartAtElement Index of the element at which this batch should start.\\n     */\\n    function appendStateBatch(bytes32[] calldata _batch, uint256 _shouldStartAtElement) external;\\n\\n    /**\\n     * Deletes all state roots after (and including) a given batch.\\n     * @param _batchHeader Header of the batch to start deleting from.\\n     */\\n    function deleteStateBatch(Lib_OVMCodec.ChainBatchHeader memory _batchHeader) external;\\n\\n    /**\\n     * Verifies a batch inclusion proof.\\n     * @param _element Hash of the element to verify a proof for.\\n     * @param _batchHeader Header of the batch in which the element was included.\\n     * @param _proof Merkle inclusion proof for the element.\\n     */\\n    function verifyStateCommitment(\\n        bytes32 _element,\\n        Lib_OVMCodec.ChainBatchHeader memory _batchHeader,\\n        Lib_OVMCodec.ChainInclusionProof memory _proof\\n    ) external view returns (bool _verified);\\n\\n    /**\\n     * Checks whether a given batch is still inside its fraud proof window.\\n     * @param _batchHeader Header of the batch to check.\\n     * @return _inside Whether or not the batch is inside the fraud proof window.\\n     */\\n    function insideFraudProofWindow(Lib_OVMCodec.ChainBatchHeader memory _batchHeader)\\n        external\\n        view\\n        returns (bool _inside);\\n\\n    /********************\\n     * chain id added func *\\n     ********************/\\n\\n    /**\\n     * Retrieves the total number of elements submitted.\\n     * @param _chainId identity for the l2 chain.\\n     * @return _totalElements Total submitted elements.\\n     */\\n    function getTotalElementsByChainId(uint256 _chainId)\\n        external\\n        view\\n        returns (uint256 _totalElements);\\n\\n    /**\\n     * Retrieves the total number of batches submitted.\\n     * @param _chainId identity for the l2 chain.\\n     * @return _totalBatches Total submitted batches.\\n     */\\n    function getTotalBatchesByChainId(uint256 _chainId)\\n        external\\n        view\\n        returns (uint256 _totalBatches);\\n\\n    /**\\n     * Retrieves the timestamp of the last batch submitted by the sequencer.\\n     * @param _chainId identity for the l2 chain.\\n     * @return _lastSequencerTimestamp Last sequencer batch timestamp.\\n     */\\n    function getLastSequencerTimestampByChainId(uint256 _chainId)\\n        external\\n        view\\n        returns (uint256 _lastSequencerTimestamp);\\n\\n    /**\\n     * Appends a batch of state roots to the chain.\\n     * @param _chainId identity for the l2 chain.\\n     * @param _batch Batch of state roots.\\n     * @param _shouldStartAtElement Index of the element at which this batch should start.\\n     */\\n    function appendStateBatchByChainId(\\n        uint256 _chainId,\\n        bytes32[] calldata _batch,\\n        uint256 _shouldStartAtElement,\\n        string calldata proposer\\n    ) external;\\n\\n    /**\\n     * Deletes all state roots after (and including) a given batch.\\n     * @param _chainId identity for the l2 chain.\\n     * @param _batchHeader Header of the batch to start deleting from.\\n     */\\n    function deleteStateBatchByChainId(\\n        uint256 _chainId,\\n        Lib_OVMCodec.ChainBatchHeader memory _batchHeader\\n    ) external;\\n\\n    /**\\n     * Verifies a batch inclusion proof.\\n     * @param _chainId identity for the l2 chain.\\n     * @param _element Hash of the element to verify a proof for.\\n     * @param _batchHeader Header of the batch in which the element was included.\\n     * @param _proof Merkle inclusion proof for the element.\\n     */\\n    function verifyStateCommitmentByChainId(\\n        uint256 _chainId,\\n        bytes32 _element,\\n        Lib_OVMCodec.ChainBatchHeader memory _batchHeader,\\n        Lib_OVMCodec.ChainInclusionProof memory _proof\\n    ) external view returns (bool _verified);\\n\\n    /**\\n     * Checks whether a given batch is still inside its fraud proof window.\\n     * @param _chainId identity for the l2 chain.\\n     * @param _batchHeader Header of the batch to check.\\n     * @return _inside Whether or not the batch is inside the fraud proof window.\\n     */\\n    function insideFraudProofWindowByChainId(\\n        uint256 _chainId,\\n        Lib_OVMCodec.ChainBatchHeader memory _batchHeader\\n    ) external view returns (bool _inside);\\n}\\n\",\"keccak256\":\"0xa7e8ab4f2dca0197e1a37ef99fe615449e7c3adabece3677ab9a5aee91510c07\",\"license\":\"MIT\"},\"contracts/L1/rollup/StateCommitmentChain.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.9;\\n\\n/* Library Imports */\\nimport { Lib_OVMCodec } from \\\"../../libraries/codec/Lib_OVMCodec.sol\\\";\\nimport { Lib_AddressResolver } from \\\"../../libraries/resolver/Lib_AddressResolver.sol\\\";\\nimport { Lib_MerkleTree } from \\\"../../libraries/utils/Lib_MerkleTree.sol\\\";\\nimport { Lib_Uint } from \\\"../../libraries/utils/Lib_Uint.sol\\\";\\n\\n/* Interface Imports */\\nimport { IStateCommitmentChain } from \\\"./IStateCommitmentChain.sol\\\";\\nimport { ICanonicalTransactionChain } from \\\"./ICanonicalTransactionChain.sol\\\";\\nimport { IBondManager } from \\\"../verification/IBondManager.sol\\\";\\nimport { IChainStorageContainer } from \\\"./IChainStorageContainer.sol\\\";\\n\\n/**\\n * @title StateCommitmentChain\\n * @dev The State Commitment Chain (SCC) contract contains a list of proposed state roots which\\n * Proposers assert to be a result of each transaction in the Canonical Transaction Chain (CTC).\\n * Elements here have a 1:1 correspondence with transactions in the CTC, and should be the unique\\n * state root calculated off-chain by applying the canonical transactions one by one.\\n *\\n * Runtime target: EVM\\n */\\ncontract StateCommitmentChain is IStateCommitmentChain, Lib_AddressResolver {\\n    /*************\\n     * Constants *\\n     *************/\\n\\n    uint256 public FRAUD_PROOF_WINDOW;\\n    uint256 public SEQUENCER_PUBLISH_WINDOW;\\n\\n    uint256 public DEFAULT_CHAINID = 1088;\\n\\n    /***************\\n     * Constructor *\\n     ***************/\\n\\n    /**\\n     * @param _libAddressManager Address of the Address Manager.\\n     */\\n    constructor(\\n        address _libAddressManager,\\n        uint256 _fraudProofWindow,\\n        uint256 _sequencerPublishWindow\\n    ) Lib_AddressResolver(_libAddressManager) {\\n        FRAUD_PROOF_WINDOW = _fraudProofWindow;\\n        SEQUENCER_PUBLISH_WINDOW = _sequencerPublishWindow;\\n    }\\n\\n    function setFraudProofWindow(uint256 window) external {\\n        require(msg.sender == resolve(\\\"METIS_MANAGER\\\"), \\\"now allowed\\\");\\n        FRAUD_PROOF_WINDOW = window;\\n    }\\n\\n    /********************\\n     * Public Functions *\\n     ********************/\\n\\n    /**\\n     * Accesses the batch storage container.\\n     * @return Reference to the batch storage container.\\n     */\\n    function batches() public view returns (IChainStorageContainer) {\\n        return IChainStorageContainer(resolve(\\\"ChainStorageContainer-SCC-batches\\\"));\\n    }\\n\\n    /**\\n     * @inheritdoc IStateCommitmentChain\\n     */\\n    function getTotalElements() external view returns (uint256 _totalElements) {\\n        return getTotalElementsByChainId(DEFAULT_CHAINID);\\n    }\\n\\n    /**\\n     * @inheritdoc IStateCommitmentChain\\n     */\\n    function getTotalBatches() external view returns (uint256 _totalBatches) {\\n        return getTotalBatchesByChainId(DEFAULT_CHAINID);\\n    }\\n\\n    /**\\n     * @inheritdoc IStateCommitmentChain\\n     */\\n    function getLastSequencerTimestamp() external view returns (uint256 _lastSequencerTimestamp) {\\n        return getLastSequencerTimestampByChainId(DEFAULT_CHAINID);\\n    }\\n\\n    /**\\n     * @inheritdoc IStateCommitmentChain\\n     */\\n    function appendStateBatch(bytes32[] memory _batch, uint256 _shouldStartAtElement) external {\\n        //require (1==0, \\\"don't use\\\");\\n        string memory proposer = string(\\n            abi.encodePacked(Lib_Uint.uint2str(DEFAULT_CHAINID), \\\"_MVM_Proposer\\\")\\n        );\\n        appendStateBatchByChainId(DEFAULT_CHAINID, _batch, _shouldStartAtElement, proposer);\\n    }\\n\\n    /**\\n     * @inheritdoc IStateCommitmentChain\\n     */\\n    function deleteStateBatch(Lib_OVMCodec.ChainBatchHeader memory _batchHeader) external {\\n        deleteStateBatchByChainId(DEFAULT_CHAINID, _batchHeader);\\n    }\\n\\n    /**\\n     * @inheritdoc IStateCommitmentChain\\n     */\\n    function verifyStateCommitment(\\n        bytes32 _element,\\n        Lib_OVMCodec.ChainBatchHeader memory _batchHeader,\\n        Lib_OVMCodec.ChainInclusionProof memory _proof\\n    ) external view returns (bool) {\\n        return verifyStateCommitmentByChainId(DEFAULT_CHAINID, _element, _batchHeader, _proof);\\n    }\\n\\n    /**\\n     * @inheritdoc IStateCommitmentChain\\n     */\\n    function insideFraudProofWindow(Lib_OVMCodec.ChainBatchHeader memory _batchHeader)\\n        public\\n        view\\n        returns (bool _inside)\\n    {\\n        (uint256 timestamp, ) = abi.decode(_batchHeader.extraData, (uint256, address));\\n\\n        require(timestamp != 0, \\\"Batch header timestamp cannot be zero\\\");\\n        return (timestamp + FRAUD_PROOF_WINDOW) > block.timestamp;\\n    }\\n\\n    /**********************\\n     * Internal Functions *\\n     **********************/\\n\\n    /**\\n     * Parses the batch context from the extra data.\\n     * @return Total number of elements submitted.\\n     * @return Timestamp of the last batch submitted by the sequencer.\\n     */\\n    function _getBatchExtraData() internal view returns (uint40, uint40) {\\n        // bytes27 extraData = batches().getGlobalMetadata();\\n\\n        // // solhint-disable max-line-length\\n        // uint40 totalElements;\\n        // uint40 lastSequencerTimestamp;\\n        // assembly {\\n        //     extraData := shr(40, extraData)\\n        //     totalElements := and(\\n        //         extraData,\\n        //         0x000000000000000000000000000000000000000000000000000000FFFFFFFFFF\\n        //     )\\n        //     lastSequencerTimestamp := shr(\\n        //         40,\\n        //         and(extraData, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000000000)\\n        //     )\\n        // }\\n        // // solhint-enable max-line-length\\n\\n        // return (totalElements, lastSequencerTimestamp);\\n\\n        return _getBatchExtraDataByChainId(DEFAULT_CHAINID);\\n    }\\n\\n    /**\\n     * Encodes the batch context for the extra data.\\n     * @param _totalElements Total number of elements submitted.\\n     * @param _lastSequencerTimestamp Timestamp of the last batch submitted by the sequencer.\\n     * @return Encoded batch context.\\n     */\\n    function _makeBatchExtraData(uint40 _totalElements, uint40 _lastSequencerTimestamp)\\n        internal\\n        pure\\n        returns (bytes27)\\n    {\\n        bytes27 extraData;\\n        assembly {\\n            extraData := _totalElements\\n            extraData := or(extraData, shl(40, _lastSequencerTimestamp))\\n            extraData := shl(40, extraData)\\n        }\\n\\n        return extraData;\\n    }\\n\\n    /**\\n     * @inheritdoc IStateCommitmentChain\\n     */\\n    function getTotalElementsByChainId(uint256 _chainId)\\n        public\\n        view\\n        override\\n        returns (uint256 _totalElements)\\n    {\\n        (uint40 totalElements, ) = _getBatchExtraDataByChainId(_chainId);\\n        return uint256(totalElements);\\n    }\\n\\n    /**\\n     * @inheritdoc IStateCommitmentChain\\n     */\\n    function getTotalBatchesByChainId(uint256 _chainId)\\n        public\\n        view\\n        override\\n        returns (uint256 _totalBatches)\\n    {\\n        return batches().lengthByChainId(_chainId);\\n    }\\n\\n    /**\\n     * @inheritdoc IStateCommitmentChain\\n     */\\n    function getLastSequencerTimestampByChainId(uint256 _chainId)\\n        public\\n        view\\n        override\\n        returns (uint256 _lastSequencerTimestamp)\\n    {\\n        (, uint40 lastSequencerTimestamp) = _getBatchExtraDataByChainId(_chainId);\\n        return uint256(lastSequencerTimestamp);\\n    }\\n\\n    /**\\n     * @inheritdoc IStateCommitmentChain\\n     */\\n    function appendStateBatchByChainId(\\n        uint256 _chainId,\\n        bytes32[] memory _batch,\\n        uint256 _shouldStartAtElement,\\n        string memory proposer\\n    ) public override {\\n        // Fail fast in to make sure our batch roots aren't accidentally made fraudulent by the\\n        // publication of batches by some other user.\\n        require(\\n            _shouldStartAtElement == getTotalElementsByChainId(_chainId),\\n            \\\"Actual batch start index does not match expected start index.\\\"\\n        );\\n\\n        address proposerAddr = resolve(proposer);\\n\\n        // Proposers must have previously staked at the BondManager\\n        require(\\n            IBondManager(resolve(\\\"BondManager\\\")).isCollateralizedByChainId(\\n                _chainId,\\n                msg.sender,\\n                proposerAddr\\n            ),\\n            \\\"Proposer does not have enough collateral posted\\\"\\n        );\\n\\n        require(_batch.length > 0, \\\"Cannot submit an empty state batch.\\\");\\n\\n//        require(\\n//            getTotalElementsByChainId(_chainId) + _batch.length <=\\n//                ICanonicalTransactionChain(resolve(\\\"CanonicalTransactionChain\\\"))\\n//                    .getTotalElementsByChainId(_chainId),\\n//            \\\"Number of state roots cannot exceed the number of canonical transactions.\\\"\\n//        );\\n\\n        // Pass the block's timestamp and the publisher of the data\\n        // to be used in the fraud proofs\\n        _appendBatchByChainId(\\n            _chainId,\\n            _batch,\\n            abi.encode(block.timestamp, msg.sender),\\n            proposerAddr\\n        );\\n    }\\n\\n    /**\\n     * @inheritdoc IStateCommitmentChain\\n     */\\n    function deleteStateBatchByChainId(\\n        uint256 _chainId,\\n        Lib_OVMCodec.ChainBatchHeader memory _batchHeader\\n    ) public override {\\n        require(\\n            msg.sender ==\\n                resolve(\\n                    string(abi.encodePacked(Lib_Uint.uint2str(_chainId), \\\"_MVM_FraudVerifier\\\"))\\n                ),\\n            \\\"State batches can only be deleted by the MVM_FraudVerifier.\\\"\\n        );\\n\\n        require(\\n            insideFraudProofWindow(_batchHeader),\\n            \\\"State batches can only be deleted within the fraud proof window.\\\"\\n        );\\n\\n        _deleteBatchByChainId(_chainId, _batchHeader);\\n    }\\n\\n    /**\\n     * @inheritdoc IStateCommitmentChain\\n     */\\n    function verifyStateCommitmentByChainId(\\n        uint256 _chainId,\\n        bytes32 _element,\\n        Lib_OVMCodec.ChainBatchHeader memory _batchHeader,\\n        Lib_OVMCodec.ChainInclusionProof memory _proof\\n    ) public view override returns (bool) {\\n        require(_isValidBatchHeaderByChainId(_chainId, _batchHeader), \\\"Invalid batch header.\\\");\\n\\n        require(\\n            Lib_MerkleTree.verify(\\n                _batchHeader.batchRoot,\\n                _element,\\n                _proof.index,\\n                _proof.siblings,\\n                _batchHeader.batchSize\\n            ),\\n            \\\"Invalid inclusion proof.\\\"\\n        );\\n\\n        return true;\\n    }\\n\\n    /**\\n     * @inheritdoc IStateCommitmentChain\\n     */\\n    function insideFraudProofWindowByChainId(\\n        uint256,\\n        Lib_OVMCodec.ChainBatchHeader memory _batchHeader\\n    ) public view override returns (bool _inside) {\\n        (uint256 timestamp, ) = abi.decode(_batchHeader.extraData, (uint256, address));\\n\\n        require(timestamp != 0, \\\"Batch header timestamp cannot be zero\\\");\\n        return timestamp + FRAUD_PROOF_WINDOW > block.timestamp;\\n    }\\n\\n    /**********************\\n     * Internal Functions *\\n     **********************/\\n\\n    /**\\n     * Parses the batch context from the extra data.\\n     * @return Total number of elements submitted.\\n     * @return Timestamp of the last batch submitted by the sequencer.\\n     */\\n    function _getBatchExtraDataByChainId(uint256 _chainId) internal view returns (uint40, uint40) {\\n        bytes27 extraData = batches().getGlobalMetadataByChainId(_chainId);\\n\\n        uint40 totalElements;\\n        uint40 lastSequencerTimestamp;\\n        assembly {\\n            extraData := shr(40, extraData)\\n            totalElements := and(\\n                extraData,\\n                0x000000000000000000000000000000000000000000000000000000FFFFFFFFFF\\n            )\\n            lastSequencerTimestamp := shr(\\n                40,\\n                and(extraData, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000000000)\\n            )\\n        }\\n\\n        return (totalElements, lastSequencerTimestamp);\\n    }\\n\\n    /**\\n     * Encodes the batch context for the extra data.\\n     * @param _totalElements Total number of elements submitted.\\n     * @param _lastSequencerTimestamp Timestamp of the last batch submitted by the sequencer.\\n     * @return Encoded batch context.\\n     */\\n    function _makeBatchExtraDataByChainId(uint40 _totalElements, uint40 _lastSequencerTimestamp)\\n        internal\\n        pure\\n        returns (bytes27)\\n    {\\n        bytes27 extraData;\\n        assembly {\\n            extraData := _totalElements\\n            extraData := or(extraData, shl(40, _lastSequencerTimestamp))\\n            extraData := shl(40, extraData)\\n        }\\n\\n        return extraData;\\n    }\\n\\n    /**\\n     * Appends a batch to the chain.\\n     * @param _batch Elements within the batch.\\n     * @param _extraData Any extra data to append to the batch.\\n     */\\n    function _appendBatchByChainId(\\n        uint256 _chainId,\\n        bytes32[] memory _batch,\\n        bytes memory _extraData,\\n        address\\n    ) internal {\\n        (uint40 totalElements, uint40 lastSequencerTimestamp) = _getBatchExtraDataByChainId(\\n            _chainId\\n        );\\n\\n        lastSequencerTimestamp = uint40(block.timestamp);\\n\\n        // if (msg.sender == proposer) {\\n        //     lastSequencerTimestamp = uint40(block.timestamp);\\n        // } else {\\n        //     // We keep track of the last batch submitted by the sequencer so there's a window in\\n        //     // which only the sequencer can publish state roots. A window like this just reduces\\n        //     // the chance of \\\"system breaking\\\" state roots being published while we're still in\\n        //     // testing mode. This window should be removed or significantly reduced in the future.\\n        //     require(\\n        //         lastSequencerTimestamp + SEQUENCER_PUBLISH_WINDOW < block.timestamp,\\n        //         \\\"Cannot publish state roots within the sequencer publication window.\\\"\\n        //     );\\n        // }\\n\\n        // For efficiency reasons getMerkleRoot modifies the `_batch` argument in place\\n        // while calculating the root hash therefore any arguments passed to it must not\\n        // be used again afterwards\\n        Lib_OVMCodec.ChainBatchHeader memory batchHeader = Lib_OVMCodec.ChainBatchHeader({\\n            batchIndex: getTotalBatchesByChainId(_chainId),\\n            batchRoot: Lib_MerkleTree.getMerkleRoot(_batch),\\n            batchSize: _batch.length,\\n            prevTotalElements: totalElements,\\n            extraData: _extraData\\n        });\\n\\n        emit StateBatchAppended(\\n            _chainId,\\n            batchHeader.batchIndex,\\n            batchHeader.batchRoot,\\n            batchHeader.batchSize,\\n            batchHeader.prevTotalElements,\\n            batchHeader.extraData\\n        );\\n\\n        batches().pushByChainId(\\n            _chainId,\\n            Lib_OVMCodec.hashBatchHeader(batchHeader),\\n            _makeBatchExtraDataByChainId(\\n                uint40(batchHeader.prevTotalElements + batchHeader.batchSize),\\n                lastSequencerTimestamp\\n            )\\n        );\\n    }\\n\\n    /**\\n     * Removes a batch and all subsequent batches from the chain.\\n     * @param _batchHeader Header of the batch to remove.\\n     */\\n    function _deleteBatchByChainId(\\n        uint256 _chainId,\\n        Lib_OVMCodec.ChainBatchHeader memory _batchHeader\\n    ) internal {\\n        require(\\n            _batchHeader.batchIndex < batches().lengthByChainId(_chainId),\\n            \\\"Invalid batch index.\\\"\\n        );\\n\\n        require(_isValidBatchHeaderByChainId(_chainId, _batchHeader), \\\"Invalid batch header.\\\");\\n\\n        batches().deleteElementsAfterInclusiveByChainId(\\n            _chainId,\\n            _batchHeader.batchIndex,\\n            _makeBatchExtraDataByChainId(uint40(_batchHeader.prevTotalElements), 0)\\n        );\\n\\n        emit StateBatchDeleted(_chainId, _batchHeader.batchIndex, _batchHeader.batchRoot);\\n    }\\n\\n    /**\\n     * Checks that a batch header matches the stored hash for the given index.\\n     * @param _batchHeader Batch header to validate.\\n     * @return Whether or not the header matches the stored one.\\n     */\\n    function _isValidBatchHeaderByChainId(\\n        uint256 _chainId,\\n        Lib_OVMCodec.ChainBatchHeader memory _batchHeader\\n    ) internal view returns (bool) {\\n        return\\n            Lib_OVMCodec.hashBatchHeader(_batchHeader) ==\\n            batches().getByChainId(_chainId, _batchHeader.batchIndex);\\n    }\\n}\\n\",\"keccak256\":\"0xc0753360e2112c40353e59d017f572f02e52ea9574cd313f8d388eab0496e6a6\",\"license\":\"MIT\"},\"contracts/L1/verification/IBondManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.9;\\n\\n/**\\n * @title IBondManager\\n */\\ninterface IBondManager {\\n    /********************\\n     * Public Functions *\\n     ********************/\\n\\n    function isCollateralized(address _who) external view returns (bool);\\n\\n    function isCollateralizedByChainId(\\n        uint256 _chainId,\\n        address _who,\\n        address _prop\\n    ) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x666cc1401df59fb833615dbe53193fe664ddbb39ec0e5c5812b009fe38c29c08\",\"license\":\"MIT\"},\"contracts/libraries/Encoding.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {Hashing} from \\\"./Hashing.sol\\\";\\nimport {Types} from \\\"./Types.sol\\\";\\nimport {Lib_RLPWriter as RLPWriter} from \\\"./rlp/Lib_RLPWriter.sol\\\";\\n\\n/// @title Encoding\\n/// @notice Encoding handles Optimism's various different encoding schemes.\\nlibrary Encoding {\\n    /// @notice RLP encodes the L2 transaction that would be generated when a given deposit is sent\\n    ///         to the L2 system. Useful for searching for a deposit in the L2 system. The\\n    ///         transaction is prefixed with 0x7e to identify its EIP-2718 type.\\n    /// @param _tx User deposit transaction to encode.\\n    /// @return RLP encoded L2 deposit transaction.\\n    function encodeDepositTransaction(Types.UserDepositTransaction memory _tx) internal pure returns (bytes memory) {\\n        bytes32 source = Hashing.hashDepositSource(_tx.l1BlockHash, _tx.logIndex);\\n        bytes[] memory raw = new bytes[](8);\\n        raw[0] = RLPWriter.writeBytes(abi.encodePacked(source));\\n        raw[1] = RLPWriter.writeAddress(_tx.from);\\n        raw[2] = _tx.isCreation ? RLPWriter.writeBytes(\\\"\\\") : RLPWriter.writeAddress(_tx.to);\\n        raw[3] = RLPWriter.writeUint(_tx.mint);\\n        raw[4] = RLPWriter.writeUint(_tx.value);\\n        raw[5] = RLPWriter.writeUint(uint256(_tx.gasLimit));\\n        raw[6] = RLPWriter.writeBool(false);\\n        raw[7] = RLPWriter.writeBytes(_tx.data);\\n        return abi.encodePacked(uint8(0x7e), RLPWriter.writeList(raw));\\n    }\\n\\n    /// @notice Encodes the cross domain message based on the version that is encoded into the\\n    ///         message nonce.\\n    /// @param _nonce    Message nonce with version encoded into the first two bytes.\\n    /// @param _sender   Address of the sender of the message.\\n    /// @param _target   Address of the target of the message.\\n    /// @param _value    ETH value to send to the target.\\n    /// @param _gasLimit Gas limit to use for the message.\\n    /// @param _data     Data to send with the message.\\n    /// @return Encoded cross domain message.\\n    function encodeCrossDomainMessage(\\n        uint256 _nonce,\\n        address _sender,\\n        address _target,\\n        uint256 _value,\\n        uint256 _gasLimit,\\n        bytes memory _data\\n    )\\n    internal\\n    pure\\n    returns (bytes memory)\\n    {\\n        (, uint16 version) = decodeVersionedNonce(_nonce);\\n        if (version == 0) {\\n            return encodeCrossDomainMessageV0(_target, _sender, _data, _nonce);\\n        } else if (version == 1) {\\n            return encodeCrossDomainMessageV1(_nonce, _sender, _target, _value, _gasLimit, _data);\\n        } else {\\n            revert(\\\"Encoding: unknown cross domain message version\\\");\\n        }\\n    }\\n\\n    /// @notice Encodes a cross domain message based on the V0 (legacy) encoding.\\n    /// @param _target Address of the target of the message.\\n    /// @param _sender Address of the sender of the message.\\n    /// @param _data   Data to send with the message.\\n    /// @param _nonce  Message nonce.\\n    /// @return Encoded cross domain message.\\n    function encodeCrossDomainMessageV0(\\n        address _target,\\n        address _sender,\\n        bytes memory _data,\\n        uint256 _nonce\\n    )\\n    internal\\n    pure\\n    returns (bytes memory)\\n    {\\n        return abi.encodeWithSignature(\\\"relayMessage(address,address,bytes,uint256)\\\", _target, _sender, _data, _nonce);\\n    }\\n\\n    /// @notice Encodes a cross domain message based on the V1 (current) encoding.\\n    /// @param _nonce    Message nonce.\\n    /// @param _sender   Address of the sender of the message.\\n    /// @param _target   Address of the target of the message.\\n    /// @param _value    ETH value to send to the target.\\n    /// @param _gasLimit Gas limit to use for the message.\\n    /// @param _data     Data to send with the message.\\n    /// @return Encoded cross domain message.\\n    function encodeCrossDomainMessageV1(\\n        uint256 _nonce,\\n        address _sender,\\n        address _target,\\n        uint256 _value,\\n        uint256 _gasLimit,\\n        bytes memory _data\\n    )\\n    internal\\n    pure\\n    returns (bytes memory)\\n    {\\n        return abi.encodeWithSignature(\\n            \\\"relayMessage(uint256,address,address,uint256,uint256,bytes)\\\",\\n            _nonce,\\n            _sender,\\n            _target,\\n            _value,\\n            _gasLimit,\\n            _data\\n        );\\n    }\\n\\n    /// @notice Adds a version number into the first two bytes of a message nonce.\\n    /// @param _nonce   Message nonce to encode into.\\n    /// @param _version Version number to encode into the message nonce.\\n    /// @return Message nonce with version encoded into the first two bytes.\\n    function encodeVersionedNonce(uint240 _nonce, uint16 _version) internal pure returns (uint256) {\\n        uint256 nonce;\\n        assembly {\\n            nonce := or(shl(240, _version), _nonce)\\n        }\\n        return nonce;\\n    }\\n\\n    /// @notice Pulls the version out of a version-encoded nonce.\\n    /// @param _nonce Message nonce with version encoded into the first two bytes.\\n    /// @return Nonce without encoded version.\\n    /// @return Version of the message.\\n    function decodeVersionedNonce(uint256 _nonce) internal pure returns (uint240, uint16) {\\n        uint240 nonce;\\n        uint16 version;\\n        assembly {\\n            nonce := and(_nonce, 0x0000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)\\n            version := shr(240, _nonce)\\n        }\\n        return (nonce, version);\\n    }\\n\\n    /// @notice Returns an appropriately encoded call to L1Block.setL1BlockValuesEcotone\\n    /// @param baseFeeScalar       L1 base fee Scalar\\n    /// @param blobBaseFeeScalar   L1 blob base fee Scalar\\n    /// @param sequenceNumber      Number of L2 blocks since epoch start.\\n    /// @param timestamp           L1 timestamp.\\n    /// @param number              L1 blocknumber.\\n    /// @param baseFee             L1 base fee.\\n    /// @param blobBaseFee         L1 blob base fee.\\n    /// @param hash                L1 blockhash.\\n    /// @param batcherHash         Versioned hash to authenticate batcher by.\\n    function encodeSetL1BlockValuesEcotone(\\n        uint32 baseFeeScalar,\\n        uint32 blobBaseFeeScalar,\\n        uint64 sequenceNumber,\\n        uint64 timestamp,\\n        uint64 number,\\n        uint256 baseFee,\\n        uint256 blobBaseFee,\\n        bytes32 hash,\\n        bytes32 batcherHash\\n    )\\n    internal\\n    pure\\n    returns (bytes memory)\\n    {\\n        bytes4 functionSignature = bytes4(keccak256(\\\"setL1BlockValuesEcotone()\\\"));\\n        return abi.encodePacked(\\n            functionSignature,\\n            baseFeeScalar,\\n            blobBaseFeeScalar,\\n            sequenceNumber,\\n            timestamp,\\n            number,\\n            baseFee,\\n            blobBaseFee,\\n            hash,\\n            batcherHash\\n        );\\n    }\\n\\n    /// @notice Returns an appropriately encoded call to L1Block.setL1BlockValuesInterop\\n    /// @param _baseFeeScalar       L1 base fee Scalar\\n    /// @param _blobBaseFeeScalar   L1 blob base fee Scalar\\n    /// @param _sequenceNumber      Number of L2 blocks since epoch start.\\n    /// @param _timestamp           L1 timestamp.\\n    /// @param _number              L1 blocknumber.\\n    /// @param _baseFee             L1 base fee.\\n    /// @param _blobBaseFee         L1 blob base fee.\\n    /// @param _hash                L1 blockhash.\\n    /// @param _batcherHash         Versioned hash to authenticate batcher by.\\n    /// @param _dependencySet       Array of the chain IDs in the interop dependency set.\\n    function encodeSetL1BlockValuesInterop(\\n        uint32 _baseFeeScalar,\\n        uint32 _blobBaseFeeScalar,\\n        uint64 _sequenceNumber,\\n        uint64 _timestamp,\\n        uint64 _number,\\n        uint256 _baseFee,\\n        uint256 _blobBaseFee,\\n        bytes32 _hash,\\n        bytes32 _batcherHash,\\n        uint256[] memory _dependencySet\\n    )\\n    internal\\n    pure\\n    returns (bytes memory)\\n    {\\n        require(_dependencySet.length <= type(uint8).max, \\\"Encoding: dependency set length is too large\\\");\\n        // Check that the batcher hash is just the address with 0 padding to the left for version 0.\\n        require(uint160(uint256(_batcherHash)) == uint256(_batcherHash), \\\"Encoding: invalid batcher hash\\\");\\n\\n        bytes4 functionSignature = bytes4(keccak256(\\\"setL1BlockValuesInterop()\\\"));\\n        return abi.encodePacked(\\n            functionSignature,\\n            _baseFeeScalar,\\n            _blobBaseFeeScalar,\\n            _sequenceNumber,\\n            _timestamp,\\n            _number,\\n            _baseFee,\\n            _blobBaseFee,\\n            _hash,\\n            _batcherHash,\\n            uint8(_dependencySet.length),\\n            _dependencySet\\n        );\\n    }\\n}\\n\",\"keccak256\":\"0x8895cd1557866061f84345fff839b0831100e973a0cfa0f466f1c1755261cac3\",\"license\":\"MIT\"},\"contracts/libraries/Hashing.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {Encoding} from \\\"./Encoding.sol\\\";\\nimport {Types} from \\\"./Types.sol\\\";\\n\\n/// @title Hashing\\n/// @notice Hashing handles Optimism's various different hashing schemes.\\nlibrary Hashing {\\n    /// @notice Computes the hash of the RLP encoded L2 transaction that would be generated when a\\n    ///         given deposit is sent to the L2 system. Useful for searching for a deposit in the L2\\n    ///         system.\\n    /// @param _tx User deposit transaction to hash.\\n    /// @return Hash of the RLP encoded L2 deposit transaction.\\n    function hashDepositTransaction(Types.UserDepositTransaction memory _tx) internal pure returns (bytes32) {\\n        return keccak256(Encoding.encodeDepositTransaction(_tx));\\n    }\\n\\n    /// @notice Computes the deposit transaction's \\\"source hash\\\", a value that guarantees the hash\\n    ///         of the L2 transaction that corresponds to a deposit is unique and is\\n    ///         deterministically generated from L1 transaction data.\\n    /// @param _l1BlockHash Hash of the L1 block where the deposit was included.\\n    /// @param _logIndex    The index of the log that created the deposit transaction.\\n    /// @return Hash of the deposit transaction's \\\"source hash\\\".\\n    function hashDepositSource(bytes32 _l1BlockHash, uint256 _logIndex) internal pure returns (bytes32) {\\n        bytes32 depositId = keccak256(abi.encode(_l1BlockHash, _logIndex));\\n        return keccak256(abi.encode(bytes32(0), depositId));\\n    }\\n\\n    /// @notice Hashes the cross domain message based on the version that is encoded into the\\n    ///         message nonce.\\n    /// @param _nonce    Message nonce with version encoded into the first two bytes.\\n    /// @param _sender   Address of the sender of the message.\\n    /// @param _target   Address of the target of the message.\\n    /// @param _value    ETH value to send to the target.\\n    /// @param _gasLimit Gas limit to use for the message.\\n    /// @param _data     Data to send with the message.\\n    /// @return Hashed cross domain message.\\n    function hashCrossDomainMessage(\\n        uint256 _nonce,\\n        address _sender,\\n        address _target,\\n        uint256 _value,\\n        uint256 _gasLimit,\\n        bytes memory _data\\n    )\\n    internal\\n    pure\\n    returns (bytes32)\\n    {\\n        (, uint16 version) = Encoding.decodeVersionedNonce(_nonce);\\n        if (version == 0) {\\n            return hashCrossDomainMessageV0(_target, _sender, _data, _nonce);\\n        } else if (version == 1) {\\n            return hashCrossDomainMessageV1(_nonce, _sender, _target, _value, _gasLimit, _data);\\n        } else {\\n            revert(\\\"Hashing: unknown cross domain message version\\\");\\n        }\\n    }\\n\\n    /// @notice Hashes a cross domain message based on the V0 (legacy) encoding.\\n    /// @param _target Address of the target of the message.\\n    /// @param _sender Address of the sender of the message.\\n    /// @param _data   Data to send with the message.\\n    /// @param _nonce  Message nonce.\\n    /// @return Hashed cross domain message.\\n    function hashCrossDomainMessageV0(\\n        address _target,\\n        address _sender,\\n        bytes memory _data,\\n        uint256 _nonce\\n    )\\n    internal\\n    pure\\n    returns (bytes32)\\n    {\\n        return keccak256(Encoding.encodeCrossDomainMessageV0(_target, _sender, _data, _nonce));\\n    }\\n\\n    /// @notice Hashes a cross domain message based on the V1 (current) encoding.\\n    /// @param _nonce    Message nonce.\\n    /// @param _sender   Address of the sender of the message.\\n    /// @param _target   Address of the target of the message.\\n    /// @param _value    ETH value to send to the target.\\n    /// @param _gasLimit Gas limit to use for the message.\\n    /// @param _data     Data to send with the message.\\n    /// @return Hashed cross domain message.\\n    function hashCrossDomainMessageV1(\\n        uint256 _nonce,\\n        address _sender,\\n        address _target,\\n        uint256 _value,\\n        uint256 _gasLimit,\\n        bytes memory _data\\n    )\\n    internal\\n    pure\\n    returns (bytes32)\\n    {\\n        return keccak256(Encoding.encodeCrossDomainMessageV1(_nonce, _sender, _target, _value, _gasLimit, _data));\\n    }\\n\\n    /// @notice Derives the withdrawal hash according to the encoding in the L2 Withdrawer contract\\n    /// @param _tx Withdrawal transaction to hash.\\n    /// @return Hashed withdrawal transaction.\\n    function hashWithdrawal(Types.WithdrawalTransaction memory _tx) internal pure returns (bytes32) {\\n        return keccak256(abi.encode(_tx.nonce, _tx.sender, _tx.target, _tx.value, _tx.gasLimit, _tx.data));\\n    }\\n\\n    /// @notice Hashes the various elements of an output root proof into an output root hash which\\n    ///         can be used to check if the proof is valid.\\n    /// @param _outputRootProof Output root proof which should hash to an output root.\\n    /// @return Hashed output root proof.\\n    function hashOutputRootProof(Types.OutputRootProof memory _outputRootProof) internal pure returns (bytes32) {\\n        return keccak256(\\n            abi.encode(\\n                _outputRootProof.version,\\n                _outputRootProof.stateRoot,\\n                _outputRootProof.messagePasserStorageRoot,\\n                _outputRootProof.latestBlockhash\\n            )\\n        );\\n    }\\n}\\n\",\"keccak256\":\"0x206199be242d8cb511d5e99c26285a62b8ad0b40ea068a7d4a2265990baada0f\",\"license\":\"MIT\"},\"contracts/libraries/Types.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Types\\n/// @notice Contains various types used throughout the Optimism contract system.\\nlibrary Types {\\n    /// @notice OutputProposal represents a commitment to the L2 state. The timestamp is the L1\\n    ///         timestamp that the output root is posted. This timestamp is used to verify that the\\n    ///         finalization period has passed since the output root was submitted.\\n    /// @custom:field outputRoot    Hash of the L2 output.\\n    /// @custom:field timestamp     Timestamp of the L1 block that the output root was submitted in.\\n    /// @custom:field l2BlockNumber L2 block number that the output corresponds to.\\n    struct OutputProposal {\\n        bytes32 outputRoot;\\n        uint128 timestamp;\\n        uint128 l2BlockNumber;\\n    }\\n\\n    /// @notice Struct representing the elements that are hashed together to generate an output root\\n    ///         which itself represents a snapshot of the L2 state.\\n    /// @custom:field version                  Version of the output root.\\n    /// @custom:field stateRoot                Root of the state trie at the block of this output.\\n    /// @custom:field messagePasserStorageRoot Root of the message passer storage trie.\\n    /// @custom:field latestBlockhash          Hash of the block this output was generated from.\\n    struct OutputRootProof {\\n        bytes32 version;\\n        bytes32 stateRoot;\\n        bytes32 messagePasserStorageRoot;\\n        bytes32 latestBlockhash;\\n    }\\n\\n    /// @notice Struct representing a deposit transaction (L1 => L2 transaction) created by an end\\n    ///         user (as opposed to a system deposit transaction generated by the system).\\n    /// @custom:field from        Address of the sender of the transaction.\\n    /// @custom:field to          Address of the recipient of the transaction.\\n    /// @custom:field isCreation  True if the transaction is a contract creation.\\n    /// @custom:field value       Value to send to the recipient.\\n    /// @custom:field mint        Amount of ETH to mint.\\n    /// @custom:field gasLimit    Gas limit of the transaction.\\n    /// @custom:field data        Data of the transaction.\\n    /// @custom:field l1BlockHash Hash of the block the transaction was submitted in.\\n    /// @custom:field logIndex    Index of the log in the block the transaction was submitted in.\\n    struct UserDepositTransaction {\\n        address from;\\n        address to;\\n        bool isCreation;\\n        uint256 value;\\n        uint256 mint;\\n        uint64 gasLimit;\\n        bytes data;\\n        bytes32 l1BlockHash;\\n        uint256 logIndex;\\n    }\\n\\n    /// @notice Struct representing a withdrawal transaction.\\n    /// @custom:field nonce    Nonce of the withdrawal transaction\\n    /// @custom:field sender   Address of the sender of the transaction.\\n    /// @custom:field target   Address of the recipient of the transaction.\\n    /// @custom:field value    Value to send to the recipient.\\n    /// @custom:field gasLimit Gas limit of the transaction.\\n    /// @custom:field data     Data of the transaction.\\n    struct WithdrawalTransaction {\\n        uint256 nonce;\\n        address sender;\\n        address target;\\n        uint256 value;\\n        uint256 gasLimit;\\n        bytes data;\\n    }\\n}\\n\",\"keccak256\":\"0x75900d651301940d24c00d14f0b3b6cbd6dcf379173ceaa31d9bf5be934a9aa4\",\"license\":\"MIT\"},\"contracts/libraries/codec/Lib_OVMCodec.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.9;\\n\\n/* Library Imports */\\nimport { Lib_RLPReader } from \\\"../rlp/Lib_RLPReader.sol\\\";\\n\\n/**\\n * @title Lib_OVMCodec\\n */\\nlibrary Lib_OVMCodec {\\n    /*********\\n     * Enums *\\n     *********/\\n\\n    enum QueueOrigin {\\n        SEQUENCER_QUEUE,\\n        L1TOL2_QUEUE\\n    }\\n\\n    /***********\\n     * Structs *\\n     ***********/\\n\\n    struct EVMAccount {\\n        uint256 nonce;\\n        uint256 balance;\\n        bytes32 storageRoot;\\n        bytes32 codeHash;\\n    }\\n\\n    struct ChainBatchHeader {\\n        uint256 batchIndex;\\n        bytes32 batchRoot;\\n        uint256 batchSize;\\n        uint256 prevTotalElements;\\n        bytes extraData;\\n    }\\n\\n    struct ChainInclusionProof {\\n        uint256 index;\\n        bytes32[] siblings;\\n    }\\n\\n    struct Transaction {\\n        uint256 timestamp;\\n        uint256 blockNumber;\\n        QueueOrigin l1QueueOrigin;\\n        address l1TxOrigin;\\n        address entrypoint;\\n        uint256 gasLimit;\\n        bytes data;\\n    }\\n\\n    struct TransactionChainElement {\\n        bool isSequenced;\\n        uint256 queueIndex; // QUEUED TX ONLY\\n        uint256 timestamp; // SEQUENCER TX ONLY\\n        uint256 blockNumber; // SEQUENCER TX ONLY\\n        bytes txData; // SEQUENCER TX ONLY\\n    }\\n\\n    struct QueueElement {\\n        bytes32 transactionHash;\\n        uint40 timestamp;\\n        uint40 blockNumber;\\n    }\\n\\n    /**********************\\n     * Internal Functions *\\n     **********************/\\n\\n    /**\\n     * Encodes a standard OVM transaction.\\n     * @param _transaction OVM transaction to encode.\\n     * @return Encoded transaction bytes.\\n     */\\n    function encodeTransaction(Transaction memory _transaction)\\n        internal\\n        pure\\n        returns (bytes memory)\\n    {\\n        return\\n            abi.encodePacked(\\n                _transaction.timestamp,\\n                _transaction.blockNumber,\\n                _transaction.l1QueueOrigin,\\n                _transaction.l1TxOrigin,\\n                _transaction.entrypoint,\\n                _transaction.gasLimit,\\n                _transaction.data\\n            );\\n    }\\n\\n    /**\\n     * Hashes a standard OVM transaction.\\n     * @param _transaction OVM transaction to encode.\\n     * @return Hashed transaction\\n     */\\n    function hashTransaction(Transaction memory _transaction) internal pure returns (bytes32) {\\n        return keccak256(encodeTransaction(_transaction));\\n    }\\n\\n    /**\\n     * @notice Decodes an RLP-encoded account state into a useful struct.\\n     * @param _encoded RLP-encoded account state.\\n     * @return Account state struct.\\n     */\\n    function decodeEVMAccount(bytes memory _encoded) internal pure returns (EVMAccount memory) {\\n        Lib_RLPReader.RLPItem[] memory accountState = Lib_RLPReader.readList(_encoded);\\n\\n        return\\n            EVMAccount({\\n                nonce: Lib_RLPReader.readUint256(accountState[0]),\\n                balance: Lib_RLPReader.readUint256(accountState[1]),\\n                storageRoot: Lib_RLPReader.readBytes32(accountState[2]),\\n                codeHash: Lib_RLPReader.readBytes32(accountState[3])\\n            });\\n    }\\n\\n    /**\\n     * Calculates a hash for a given batch header.\\n     * @param _batchHeader Header to hash.\\n     * @return Hash of the header.\\n     */\\n    function hashBatchHeader(Lib_OVMCodec.ChainBatchHeader memory _batchHeader)\\n        internal\\n        pure\\n        returns (bytes32)\\n    {\\n        return\\n            keccak256(\\n                abi.encode(\\n                    _batchHeader.batchRoot,\\n                    _batchHeader.batchSize,\\n                    _batchHeader.prevTotalElements,\\n                    _batchHeader.extraData\\n                )\\n            );\\n    }\\n}\\n\",\"keccak256\":\"0xd727df7cc99ff84e9c5722120163e7bf0077170758a4c9b0aa90b8e3abb0e134\",\"license\":\"MIT\"},\"contracts/libraries/resolver/Lib_AddressManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.9;\\n\\n/* External Imports */\\nimport { Ownable } from \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\n\\n/**\\n * @title Lib_AddressManager\\n */\\ncontract Lib_AddressManager is Ownable {\\n    /**********\\n     * Events *\\n     **********/\\n\\n    event AddressSet(string indexed _name, address _newAddress, address _oldAddress);\\n\\n    /*************\\n     * Variables *\\n     *************/\\n\\n    mapping(bytes32 => address) private addresses;\\n\\n    /********************\\n     * Public Functions *\\n     ********************/\\n\\n    /**\\n     * Changes the address associated with a particular name.\\n     * @param _name String name to associate an address with.\\n     * @param _address Address to associate with the name.\\n     */\\n    function setAddress(string memory _name, address _address) external onlyOwner {\\n        bytes32 nameHash = _getNameHash(_name);\\n        address oldAddress = addresses[nameHash];\\n        addresses[nameHash] = _address;\\n\\n        emit AddressSet(_name, _address, oldAddress);\\n    }\\n\\n    /**\\n     * Retrieves the address associated with a given name.\\n     * @param _name Name to retrieve an address for.\\n     * @return Address associated with the given name.\\n     */\\n    function getAddress(string memory _name) external view returns (address) {\\n        return addresses[_getNameHash(_name)];\\n    }\\n\\n    /**********************\\n     * Internal Functions *\\n     **********************/\\n\\n    /**\\n     * Computes the hash of a name.\\n     * @param _name Name to compute a hash for.\\n     * @return Hash of the given name.\\n     */\\n    function _getNameHash(string memory _name) internal pure returns (bytes32) {\\n        return keccak256(abi.encodePacked(_name));\\n    }\\n}\\n\",\"keccak256\":\"0xcde9b29429d512c549f7c1b8a033f161fa71c18cda08b241748663854196ae14\",\"license\":\"MIT\"},\"contracts/libraries/resolver/Lib_AddressResolver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.9;\\n\\n/* Library Imports */\\nimport { Lib_AddressManager } from \\\"./Lib_AddressManager.sol\\\";\\n\\n/**\\n * @title Lib_AddressResolver\\n */\\nabstract contract Lib_AddressResolver {\\n    /*************\\n     * Variables *\\n     *************/\\n\\n    Lib_AddressManager public libAddressManager;\\n\\n    /***************\\n     * Constructor *\\n     ***************/\\n\\n    /**\\n     * @param _libAddressManager Address of the Lib_AddressManager.\\n     */\\n    constructor(address _libAddressManager) {\\n        libAddressManager = Lib_AddressManager(_libAddressManager);\\n    }\\n\\n    /********************\\n     * Public Functions *\\n     ********************/\\n\\n    /**\\n     * Resolves the address associated with a given name.\\n     * @param _name Name to resolve an address for.\\n     * @return Address associated with the given name.\\n     */\\n    function resolve(string memory _name) public view returns (address) {\\n        return libAddressManager.getAddress(_name);\\n    }\\n}\\n\",\"keccak256\":\"0x515c4db671a28e2fe180201f6d11c0208c05f582ca3489fb6b8e81c27659bc62\",\"license\":\"MIT\"},\"contracts/libraries/rlp/Lib_RLPReader.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.9;\\n\\n/**\\n * @title Lib_RLPReader\\n * @dev Adapted from \\\"RLPReader\\\" by Hamdi Allam (hamdi.allam97@gmail.com).\\n */\\nlibrary Lib_RLPReader {\\n    /*************\\n     * Constants *\\n     *************/\\n\\n    uint256 internal constant MAX_LIST_LENGTH = 32;\\n\\n    /*********\\n     * Enums *\\n     *********/\\n\\n    enum RLPItemType {\\n        DATA_ITEM,\\n        LIST_ITEM\\n    }\\n\\n    /***********\\n     * Structs *\\n     ***********/\\n\\n    struct RLPItem {\\n        uint256 length;\\n        uint256 ptr;\\n    }\\n\\n    /**********************\\n     * Internal Functions *\\n     **********************/\\n\\n    /**\\n     * Converts bytes to a reference to memory position and length.\\n     * @param _in Input bytes to convert.\\n     * @return Output memory reference.\\n     */\\n    function toRLPItem(bytes memory _in) internal pure returns (RLPItem memory) {\\n        uint256 ptr;\\n        assembly {\\n            ptr := add(_in, 32)\\n        }\\n\\n        return RLPItem({ length: _in.length, ptr: ptr });\\n    }\\n\\n    /**\\n     * Reads an RLP list value into a list of RLP items.\\n     * @param _in RLP list value.\\n     * @return Decoded RLP list items.\\n     */\\n    function readList(RLPItem memory _in) internal pure returns (RLPItem[] memory) {\\n        (uint256 listOffset, , RLPItemType itemType) = _decodeLength(_in);\\n\\n        require(itemType == RLPItemType.LIST_ITEM, \\\"Invalid RLP list value.\\\");\\n\\n        // Solidity in-memory arrays can't be increased in size, but *can* be decreased in size by\\n        // writing to the length. Since we can't know the number of RLP items without looping over\\n        // the entire input, we'd have to loop twice to accurately size this array. It's easier to\\n        // simply set a reasonable maximum list length and decrease the size before we finish.\\n        RLPItem[] memory out = new RLPItem[](MAX_LIST_LENGTH);\\n\\n        uint256 itemCount = 0;\\n        uint256 offset = listOffset;\\n        while (offset < _in.length) {\\n            require(itemCount < MAX_LIST_LENGTH, \\\"Provided RLP list exceeds max list length.\\\");\\n\\n            (uint256 itemOffset, uint256 itemLength, ) = _decodeLength(\\n                RLPItem({ length: _in.length - offset, ptr: _in.ptr + offset })\\n            );\\n\\n            out[itemCount] = RLPItem({ length: itemLength + itemOffset, ptr: _in.ptr + offset });\\n\\n            itemCount += 1;\\n            offset += itemOffset + itemLength;\\n        }\\n\\n        // Decrease the array size to match the actual item count.\\n        assembly {\\n            mstore(out, itemCount)\\n        }\\n\\n        return out;\\n    }\\n\\n    /**\\n     * Reads an RLP list value into a list of RLP items.\\n     * @param _in RLP list value.\\n     * @return Decoded RLP list items.\\n     */\\n    function readList(bytes memory _in) internal pure returns (RLPItem[] memory) {\\n        return readList(toRLPItem(_in));\\n    }\\n\\n    /**\\n     * Reads an RLP bytes value into bytes.\\n     * @param _in RLP bytes value.\\n     * @return Decoded bytes.\\n     */\\n    function readBytes(RLPItem memory _in) internal pure returns (bytes memory) {\\n        (uint256 itemOffset, uint256 itemLength, RLPItemType itemType) = _decodeLength(_in);\\n\\n        require(itemType == RLPItemType.DATA_ITEM, \\\"Invalid RLP bytes value.\\\");\\n\\n        return _copy(_in.ptr, itemOffset, itemLength);\\n    }\\n\\n    /**\\n     * Reads an RLP bytes value into bytes.\\n     * @param _in RLP bytes value.\\n     * @return Decoded bytes.\\n     */\\n    function readBytes(bytes memory _in) internal pure returns (bytes memory) {\\n        return readBytes(toRLPItem(_in));\\n    }\\n\\n    /**\\n     * Reads an RLP string value into a string.\\n     * @param _in RLP string value.\\n     * @return Decoded string.\\n     */\\n    function readString(RLPItem memory _in) internal pure returns (string memory) {\\n        return string(readBytes(_in));\\n    }\\n\\n    /**\\n     * Reads an RLP string value into a string.\\n     * @param _in RLP string value.\\n     * @return Decoded string.\\n     */\\n    function readString(bytes memory _in) internal pure returns (string memory) {\\n        return readString(toRLPItem(_in));\\n    }\\n\\n    /**\\n     * Reads an RLP bytes32 value into a bytes32.\\n     * @param _in RLP bytes32 value.\\n     * @return Decoded bytes32.\\n     */\\n    function readBytes32(RLPItem memory _in) internal pure returns (bytes32) {\\n        require(_in.length <= 33, \\\"Invalid RLP bytes32 value.\\\");\\n\\n        (uint256 itemOffset, uint256 itemLength, RLPItemType itemType) = _decodeLength(_in);\\n\\n        require(itemType == RLPItemType.DATA_ITEM, \\\"Invalid RLP bytes32 value.\\\");\\n\\n        uint256 ptr = _in.ptr + itemOffset;\\n        bytes32 out;\\n        assembly {\\n            out := mload(ptr)\\n\\n            // Shift the bytes over to match the item size.\\n            if lt(itemLength, 32) {\\n                out := div(out, exp(256, sub(32, itemLength)))\\n            }\\n        }\\n\\n        return out;\\n    }\\n\\n    /**\\n     * Reads an RLP bytes32 value into a bytes32.\\n     * @param _in RLP bytes32 value.\\n     * @return Decoded bytes32.\\n     */\\n    function readBytes32(bytes memory _in) internal pure returns (bytes32) {\\n        return readBytes32(toRLPItem(_in));\\n    }\\n\\n    /**\\n     * Reads an RLP uint256 value into a uint256.\\n     * @param _in RLP uint256 value.\\n     * @return Decoded uint256.\\n     */\\n    function readUint256(RLPItem memory _in) internal pure returns (uint256) {\\n        return uint256(readBytes32(_in));\\n    }\\n\\n    /**\\n     * Reads an RLP uint256 value into a uint256.\\n     * @param _in RLP uint256 value.\\n     * @return Decoded uint256.\\n     */\\n    function readUint256(bytes memory _in) internal pure returns (uint256) {\\n        return readUint256(toRLPItem(_in));\\n    }\\n\\n    /**\\n     * Reads an RLP bool value into a bool.\\n     * @param _in RLP bool value.\\n     * @return Decoded bool.\\n     */\\n    function readBool(RLPItem memory _in) internal pure returns (bool) {\\n        require(_in.length == 1, \\\"Invalid RLP boolean value.\\\");\\n\\n        uint256 ptr = _in.ptr;\\n        uint256 out;\\n        assembly {\\n            out := byte(0, mload(ptr))\\n        }\\n\\n        require(out == 0 || out == 1, \\\"Lib_RLPReader: Invalid RLP boolean value, must be 0 or 1\\\");\\n\\n        return out != 0;\\n    }\\n\\n    /**\\n     * Reads an RLP bool value into a bool.\\n     * @param _in RLP bool value.\\n     * @return Decoded bool.\\n     */\\n    function readBool(bytes memory _in) internal pure returns (bool) {\\n        return readBool(toRLPItem(_in));\\n    }\\n\\n    /**\\n     * Reads an RLP address value into a address.\\n     * @param _in RLP address value.\\n     * @return Decoded address.\\n     */\\n    function readAddress(RLPItem memory _in) internal pure returns (address) {\\n        if (_in.length == 1) {\\n            return address(0);\\n        }\\n\\n        require(_in.length == 21, \\\"Invalid RLP address value.\\\");\\n\\n        return address(uint160(readUint256(_in)));\\n    }\\n\\n    /**\\n     * Reads an RLP address value into a address.\\n     * @param _in RLP address value.\\n     * @return Decoded address.\\n     */\\n    function readAddress(bytes memory _in) internal pure returns (address) {\\n        return readAddress(toRLPItem(_in));\\n    }\\n\\n    /**\\n     * Reads the raw bytes of an RLP item.\\n     * @param _in RLP item to read.\\n     * @return Raw RLP bytes.\\n     */\\n    function readRawBytes(RLPItem memory _in) internal pure returns (bytes memory) {\\n        return _copy(_in);\\n    }\\n\\n    /*********************\\n     * Private Functions *\\n     *********************/\\n\\n    /**\\n     * Decodes the length of an RLP item.\\n     * @param _in RLP item to decode.\\n     * @return Offset of the encoded data.\\n     * @return Length of the encoded data.\\n     * @return RLP item type (LIST_ITEM or DATA_ITEM).\\n     */\\n    function _decodeLength(RLPItem memory _in)\\n        private\\n        pure\\n        returns (\\n            uint256,\\n            uint256,\\n            RLPItemType\\n        )\\n    {\\n        require(_in.length > 0, \\\"RLP item cannot be null.\\\");\\n\\n        uint256 ptr = _in.ptr;\\n        uint256 prefix;\\n        assembly {\\n            prefix := byte(0, mload(ptr))\\n        }\\n\\n        if (prefix <= 0x7f) {\\n            // Single byte.\\n\\n            return (0, 1, RLPItemType.DATA_ITEM);\\n        } else if (prefix <= 0xb7) {\\n            // Short string.\\n\\n            uint256 strLen = prefix - 0x80;\\n\\n            require(_in.length > strLen, \\\"Invalid RLP short string.\\\");\\n\\n            return (1, strLen, RLPItemType.DATA_ITEM);\\n        } else if (prefix <= 0xbf) {\\n            // Long string.\\n            uint256 lenOfStrLen = prefix - 0xb7;\\n\\n            require(_in.length > lenOfStrLen, \\\"Invalid RLP long string length.\\\");\\n\\n            uint256 strLen;\\n            assembly {\\n                // Pick out the string length.\\n                strLen := div(mload(add(ptr, 1)), exp(256, sub(32, lenOfStrLen)))\\n            }\\n\\n            require(_in.length > lenOfStrLen + strLen, \\\"Invalid RLP long string.\\\");\\n\\n            return (1 + lenOfStrLen, strLen, RLPItemType.DATA_ITEM);\\n        } else if (prefix <= 0xf7) {\\n            // Short list.\\n            uint256 listLen = prefix - 0xc0;\\n\\n            require(_in.length > listLen, \\\"Invalid RLP short list.\\\");\\n\\n            return (1, listLen, RLPItemType.LIST_ITEM);\\n        } else {\\n            // Long list.\\n            uint256 lenOfListLen = prefix - 0xf7;\\n\\n            require(_in.length > lenOfListLen, \\\"Invalid RLP long list length.\\\");\\n\\n            uint256 listLen;\\n            assembly {\\n                // Pick out the list length.\\n                listLen := div(mload(add(ptr, 1)), exp(256, sub(32, lenOfListLen)))\\n            }\\n\\n            require(_in.length > lenOfListLen + listLen, \\\"Invalid RLP long list.\\\");\\n\\n            return (1 + lenOfListLen, listLen, RLPItemType.LIST_ITEM);\\n        }\\n    }\\n\\n    /**\\n     * Copies the bytes from a memory location.\\n     * @param _src Pointer to the location to read from.\\n     * @param _offset Offset to start reading from.\\n     * @param _length Number of bytes to read.\\n     * @return Copied bytes.\\n     */\\n    function _copy(\\n        uint256 _src,\\n        uint256 _offset,\\n        uint256 _length\\n    ) private pure returns (bytes memory) {\\n        bytes memory out = new bytes(_length);\\n        if (out.length == 0) {\\n            return out;\\n        }\\n\\n        uint256 src = _src + _offset;\\n        uint256 dest;\\n        assembly {\\n            dest := add(out, 32)\\n        }\\n\\n        // Copy over as many complete words as we can.\\n        for (uint256 i = 0; i < _length / 32; i++) {\\n            assembly {\\n                mstore(dest, mload(src))\\n            }\\n\\n            src += 32;\\n            dest += 32;\\n        }\\n\\n        // Pick out the remaining bytes.\\n        uint256 mask;\\n        unchecked {\\n            mask = 256**(32 - (_length % 32)) - 1;\\n        }\\n\\n        assembly {\\n            mstore(dest, or(and(mload(src), not(mask)), and(mload(dest), mask)))\\n        }\\n        return out;\\n    }\\n\\n    /**\\n     * Copies an RLP item into bytes.\\n     * @param _in RLP item to copy.\\n     * @return Copied bytes.\\n     */\\n    function _copy(RLPItem memory _in) private pure returns (bytes memory) {\\n        return _copy(_in.ptr, 0, _in.length);\\n    }\\n}\\n\",\"keccak256\":\"0xde4a27577a23b2b11b21e8af3e1a0df50b0b27f08864795f7a84b1e3c230da33\",\"license\":\"MIT\"},\"contracts/libraries/rlp/Lib_RLPWriter.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.9;\\n\\n/**\\n * @title Lib_RLPWriter\\n * @author Bakaoh (with modifications)\\n */\\nlibrary Lib_RLPWriter {\\n    /**********************\\n     * Internal Functions *\\n     **********************/\\n\\n    /**\\n     * RLP encodes a byte string.\\n     * @param _in The byte string to encode.\\n     * @return The RLP encoded string in bytes.\\n     */\\n    function writeBytes(bytes memory _in) internal pure returns (bytes memory) {\\n        bytes memory encoded;\\n\\n        if (_in.length == 1 && uint8(_in[0]) < 128) {\\n            encoded = _in;\\n        } else {\\n            encoded = abi.encodePacked(_writeLength(_in.length, 128), _in);\\n        }\\n\\n        return encoded;\\n    }\\n\\n    /**\\n     * RLP encodes a list of RLP encoded byte byte strings.\\n     * @param _in The list of RLP encoded byte strings.\\n     * @return The RLP encoded list of items in bytes.\\n     */\\n    function writeList(bytes[] memory _in) internal pure returns (bytes memory) {\\n        bytes memory list = _flatten(_in);\\n        return abi.encodePacked(_writeLength(list.length, 192), list);\\n    }\\n\\n    /**\\n     * RLP encodes a string.\\n     * @param _in The string to encode.\\n     * @return The RLP encoded string in bytes.\\n     */\\n    function writeString(string memory _in) internal pure returns (bytes memory) {\\n        return writeBytes(bytes(_in));\\n    }\\n\\n    /**\\n     * RLP encodes an address.\\n     * @param _in The address to encode.\\n     * @return The RLP encoded address in bytes.\\n     */\\n    function writeAddress(address _in) internal pure returns (bytes memory) {\\n        return writeBytes(abi.encodePacked(_in));\\n    }\\n\\n    /**\\n     * RLP encodes a uint.\\n     * @param _in The uint256 to encode.\\n     * @return The RLP encoded uint256 in bytes.\\n     */\\n    function writeUint(uint256 _in) internal pure returns (bytes memory) {\\n        return writeBytes(_toBinary(_in));\\n    }\\n\\n    /**\\n     * RLP encodes a bool.\\n     * @param _in The bool to encode.\\n     * @return The RLP encoded bool in bytes.\\n     */\\n    function writeBool(bool _in) internal pure returns (bytes memory) {\\n        bytes memory encoded = new bytes(1);\\n        encoded[0] = (_in ? bytes1(0x01) : bytes1(0x80));\\n        return encoded;\\n    }\\n\\n    /*********************\\n     * Private Functions *\\n     *********************/\\n\\n    /**\\n     * Encode the first byte, followed by the `len` in binary form if `length` is more than 55.\\n     * @param _len The length of the string or the payload.\\n     * @param _offset 128 if item is string, 192 if item is list.\\n     * @return RLP encoded bytes.\\n     */\\n    function _writeLength(uint256 _len, uint256 _offset) private pure returns (bytes memory) {\\n        bytes memory encoded;\\n\\n        if (_len < 56) {\\n            encoded = new bytes(1);\\n            encoded[0] = bytes1(uint8(_len) + uint8(_offset));\\n        } else {\\n            uint256 lenLen;\\n            uint256 i = 1;\\n            while (_len / i != 0) {\\n                lenLen++;\\n                i *= 256;\\n            }\\n\\n            encoded = new bytes(lenLen + 1);\\n            encoded[0] = bytes1(uint8(lenLen) + uint8(_offset) + 55);\\n            for (i = 1; i <= lenLen; i++) {\\n                encoded[i] = bytes1(uint8((_len / (256**(lenLen - i))) % 256));\\n            }\\n        }\\n\\n        return encoded;\\n    }\\n\\n    /**\\n     * Encode integer in big endian binary form with no leading zeroes.\\n     * @notice TODO: This should be optimized with assembly to save gas costs.\\n     * @param _x The integer to encode.\\n     * @return RLP encoded bytes.\\n     */\\n    function _toBinary(uint256 _x) private pure returns (bytes memory) {\\n        bytes memory b = abi.encodePacked(_x);\\n\\n        uint256 i = 0;\\n        for (; i < 32; i++) {\\n            if (b[i] != 0) {\\n                break;\\n            }\\n        }\\n\\n        bytes memory res = new bytes(32 - i);\\n        for (uint256 j = 0; j < res.length; j++) {\\n            res[j] = b[i++];\\n        }\\n\\n        return res;\\n    }\\n\\n    /**\\n     * Copies a piece of memory to another location.\\n     * @notice From: https://github.com/Arachnid/solidity-stringutils/blob/master/src/strings.sol.\\n     * @param _dest Destination location.\\n     * @param _src Source location.\\n     * @param _len Length of memory to copy.\\n     */\\n    function _memcpy(\\n        uint256 _dest,\\n        uint256 _src,\\n        uint256 _len\\n    ) private pure {\\n        uint256 dest = _dest;\\n        uint256 src = _src;\\n        uint256 len = _len;\\n\\n        for (; len >= 32; len -= 32) {\\n            assembly {\\n                mstore(dest, mload(src))\\n            }\\n            dest += 32;\\n            src += 32;\\n        }\\n\\n        uint256 mask;\\n        unchecked {\\n            mask = 256**(32 - len) - 1;\\n        }\\n        assembly {\\n            let srcpart := and(mload(src), not(mask))\\n            let destpart := and(mload(dest), mask)\\n            mstore(dest, or(destpart, srcpart))\\n        }\\n    }\\n\\n    /**\\n     * Flattens a list of byte strings into one byte string.\\n     * @notice From: https://github.com/sammayo/solidity-rlp-encoder/blob/master/RLPEncode.sol.\\n     * @param _list List of byte strings to flatten.\\n     * @return The flattened byte string.\\n     */\\n    function _flatten(bytes[] memory _list) private pure returns (bytes memory) {\\n        if (_list.length == 0) {\\n            return new bytes(0);\\n        }\\n\\n        uint256 len;\\n        uint256 i = 0;\\n        for (; i < _list.length; i++) {\\n            len += _list[i].length;\\n        }\\n\\n        bytes memory flattened = new bytes(len);\\n        uint256 flattenedPtr;\\n        assembly {\\n            flattenedPtr := add(flattened, 0x20)\\n        }\\n\\n        for (i = 0; i < _list.length; i++) {\\n            bytes memory item = _list[i];\\n\\n            uint256 listPtr;\\n            assembly {\\n                listPtr := add(item, 0x20)\\n            }\\n\\n            _memcpy(flattenedPtr, listPtr, item.length);\\n            flattenedPtr += _list[i].length;\\n        }\\n\\n        return flattened;\\n    }\\n}\\n\",\"keccak256\":\"0x215b90672ce126effc3f2df61ca0cdf52d2b1cc9be602877e637829b0bf229fd\",\"license\":\"MIT\"},\"contracts/libraries/utils/Lib_MerkleTree.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.9;\\n\\n/**\\n * @title Lib_MerkleTree\\n * @author River Keefer\\n */\\nlibrary Lib_MerkleTree {\\n    /**********************\\n     * Internal Functions *\\n     **********************/\\n\\n    /**\\n     * Calculates a merkle root for a list of 32-byte leaf hashes.  WARNING: If the number\\n     * of leaves passed in is not a power of two, it pads out the tree with zero hashes.\\n     * If you do not know the original length of elements for the tree you are verifying, then\\n     * this may allow empty leaves past _elements.length to pass a verification check down the line.\\n     * Note that the _elements argument is modified, therefore it must not be used again afterwards\\n     * @param _elements Array of hashes from which to generate a merkle root.\\n     * @return Merkle root of the leaves, with zero hashes for non-powers-of-two (see above).\\n     */\\n    function getMerkleRoot(bytes32[] memory _elements) internal pure returns (bytes32) {\\n        require(_elements.length > 0, \\\"Lib_MerkleTree: Must provide at least one leaf hash.\\\");\\n\\n        if (_elements.length == 1) {\\n            return _elements[0];\\n        }\\n\\n        uint256[16] memory defaults = [\\n            0x290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563,\\n            0x633dc4d7da7256660a892f8f1604a44b5432649cc8ec5cb3ced4c4e6ac94dd1d,\\n            0x890740a8eb06ce9be422cb8da5cdafc2b58c0a5e24036c578de2a433c828ff7d,\\n            0x3b8ec09e026fdc305365dfc94e189a81b38c7597b3d941c279f042e8206e0bd8,\\n            0xecd50eee38e386bd62be9bedb990706951b65fe053bd9d8a521af753d139e2da,\\n            0xdefff6d330bb5403f63b14f33b578274160de3a50df4efecf0e0db73bcdd3da5,\\n            0x617bdd11f7c0a11f49db22f629387a12da7596f9d1704d7465177c63d88ec7d7,\\n            0x292c23a9aa1d8bea7e2435e555a4a60e379a5a35f3f452bae60121073fb6eead,\\n            0xe1cea92ed99acdcb045a6726b2f87107e8a61620a232cf4d7d5b5766b3952e10,\\n            0x7ad66c0a68c72cb89e4fb4303841966e4062a76ab97451e3b9fb526a5ceb7f82,\\n            0xe026cc5a4aed3c22a58cbd3d2ac754c9352c5436f638042dca99034e83636516,\\n            0x3d04cffd8b46a874edf5cfae63077de85f849a660426697b06a829c70dd1409c,\\n            0xad676aa337a485e4728a0b240d92b3ef7b3c372d06d189322bfd5f61f1e7203e,\\n            0xa2fca4a49658f9fab7aa63289c91b7c7b6c832a6d0e69334ff5b0a3483d09dab,\\n            0x4ebfd9cd7bca2505f7bef59cc1c12ecc708fff26ae4af19abe852afe9e20c862,\\n            0x2def10d13dd169f550f578bda343d9717a138562e0093b380a1120789d53cf10\\n        ];\\n\\n        // Reserve memory space for our hashes.\\n        bytes memory buf = new bytes(64);\\n\\n        // We'll need to keep track of left and right siblings.\\n        bytes32 leftSibling;\\n        bytes32 rightSibling;\\n\\n        // Number of non-empty nodes at the current depth.\\n        uint256 rowSize = _elements.length;\\n\\n        // Current depth, counting from 0 at the leaves\\n        uint256 depth = 0;\\n\\n        // Common sub-expressions\\n        uint256 halfRowSize; // rowSize / 2\\n        bool rowSizeIsOdd; // rowSize % 2 == 1\\n\\n        while (rowSize > 1) {\\n            halfRowSize = rowSize / 2;\\n            rowSizeIsOdd = rowSize % 2 == 1;\\n\\n            for (uint256 i = 0; i < halfRowSize; i++) {\\n                leftSibling = _elements[(2 * i)];\\n                rightSibling = _elements[(2 * i) + 1];\\n                assembly {\\n                    mstore(add(buf, 32), leftSibling)\\n                    mstore(add(buf, 64), rightSibling)\\n                }\\n\\n                _elements[i] = keccak256(buf);\\n            }\\n\\n            if (rowSizeIsOdd) {\\n                leftSibling = _elements[rowSize - 1];\\n                rightSibling = bytes32(defaults[depth]);\\n                assembly {\\n                    mstore(add(buf, 32), leftSibling)\\n                    mstore(add(buf, 64), rightSibling)\\n                }\\n\\n                _elements[halfRowSize] = keccak256(buf);\\n            }\\n\\n            rowSize = halfRowSize + (rowSizeIsOdd ? 1 : 0);\\n            depth++;\\n        }\\n\\n        return _elements[0];\\n    }\\n\\n    /**\\n     * Verifies a merkle branch for the given leaf hash.  Assumes the original length\\n     * of leaves generated is a known, correct input, and does not return true for indices\\n     * extending past that index (even if _siblings would be otherwise valid.)\\n     * @param _root The Merkle root to verify against.\\n     * @param _leaf The leaf hash to verify inclusion of.\\n     * @param _index The index in the tree of this leaf.\\n     * @param _siblings Array of sibline nodes in the inclusion proof, starting from depth 0\\n     * (bottom of the tree).\\n     * @param _totalLeaves The total number of leaves originally passed into.\\n     * @return Whether or not the merkle branch and leaf passes verification.\\n     */\\n    function verify(\\n        bytes32 _root,\\n        bytes32 _leaf,\\n        uint256 _index,\\n        bytes32[] memory _siblings,\\n        uint256 _totalLeaves\\n    ) internal pure returns (bool) {\\n        require(_totalLeaves > 0, \\\"Lib_MerkleTree: Total leaves must be greater than zero.\\\");\\n\\n        require(_index < _totalLeaves, \\\"Lib_MerkleTree: Index out of bounds.\\\");\\n\\n        require(\\n            _siblings.length == _ceilLog2(_totalLeaves),\\n            \\\"Lib_MerkleTree: Total siblings does not correctly correspond to total leaves.\\\"\\n        );\\n\\n        bytes32 computedRoot = _leaf;\\n\\n        for (uint256 i = 0; i < _siblings.length; i++) {\\n            if ((_index & 1) == 1) {\\n                computedRoot = keccak256(abi.encodePacked(_siblings[i], computedRoot));\\n            } else {\\n                computedRoot = keccak256(abi.encodePacked(computedRoot, _siblings[i]));\\n            }\\n\\n            _index >>= 1;\\n        }\\n\\n        return _root == computedRoot;\\n    }\\n\\n    /*********************\\n     * Private Functions *\\n     *********************/\\n\\n    /**\\n     * Calculates the integer ceiling of the log base 2 of an input.\\n     * @param _in Unsigned input to calculate the log.\\n     * @return ceil(log_base_2(_in))\\n     */\\n    function _ceilLog2(uint256 _in) private pure returns (uint256) {\\n        require(_in > 0, \\\"Lib_MerkleTree: Cannot compute ceil(log_2) of 0.\\\");\\n\\n        if (_in == 1) {\\n            return 0;\\n        }\\n\\n        // Find the highest set bit (will be floor(log_2)).\\n        // Borrowed with <3 from https://github.com/ethereum/solidity-examples\\n        uint256 val = _in;\\n        uint256 highest = 0;\\n        for (uint256 i = 128; i >= 1; i >>= 1) {\\n            if (val & (((uint256(1) << i) - 1) << i) != 0) {\\n                highest += i;\\n                val >>= i;\\n            }\\n        }\\n\\n        // Increment by one if this is not a perfect logarithm.\\n        if ((uint256(1) << highest) != _in) {\\n            highest += 1;\\n        }\\n\\n        return highest;\\n    }\\n}\\n\",\"keccak256\":\"0x84351e7b8be5007b77a67c1e3f34f46ed0c1ddc67e4e76797fd06f01ca9325aa\",\"license\":\"MIT\"},\"contracts/libraries/utils/Lib_Uint.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.9;\\n\\n/**\\n * @title Lib_Uint\\n * @author\\n */\\nlibrary Lib_Uint {\\n    /**********************\\n     * Internal Functions *\\n     **********************/\\n\\n    /**\\n     * Convert uint to string\\n     * @param _i uint value.\\n     * @return _uintAsString string momery value.\\n     */\\n    function uint2str(uint256 _i) internal pure returns (string memory _uintAsString) {\\n        if (_i == 0) {\\n            return \\\"0\\\";\\n        }\\n        uint256 j = _i;\\n        uint256 len;\\n        while (j != 0) {\\n            len++;\\n            j /= 10;\\n        }\\n        bytes memory bstr = new bytes(len);\\n        uint256 k = len;\\n        while (_i != 0) {\\n            k = k - 1;\\n            uint8 temp = (48 + uint8(_i - (_i / 10) * 10));\\n            bytes1 b1 = bytes1(temp);\\n            bstr[k] = b1;\\n            _i /= 10;\\n        }\\n        return string(bstr);\\n    }\\n}\\n\",\"keccak256\":\"0x00408d812fdd202f5693796c9b67821b5c7114aca93484c88cdc63b0caa3c288\",\"license\":\"MIT\"},\"contracts/universal/ISemver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title ISemver\\n/// @notice ISemver is a simple contract for ensuring that contracts are\\n///         versioned using semantic versioning.\\ninterface ISemver {\\n    /// @notice Getter for the semantic version of the contract. This is not\\n    ///         meant to be used onchain but instead meant to be used by offchain\\n    ///         tooling.\\n    /// @return Semver contract version as a string.\\n    function version() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xba34562a8026f59886d2e07d1d58d90b9691d00e0788c6263cef6c22740cab44\",\"license\":\"MIT\"},\"solady/src/utils/Clone.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.4;\\n\\n/// @notice Class with helper read functions for clone with immutable args.\\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/Clone.sol)\\n/// @author Adapted from clones with immutable args by zefram.eth, Saw-mon & Natalie\\n/// (https://github.com/Saw-mon-and-Natalie/clones-with-immutable-args)\\nabstract contract Clone {\\n    /// @dev Reads all of the immutable args.\\n    function _getArgBytes() internal pure returns (bytes memory arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := mload(0x40)\\n            let length := sub(calldatasize(), add(2, offset)) // 2 bytes are used for the length.\\n            mstore(arg, length) // Store the length.\\n            calldatacopy(add(arg, 0x20), offset, length)\\n            let o := add(add(arg, 0x20), length)\\n            mstore(o, 0) // Zeroize the slot after the bytes.\\n            mstore(0x40, add(o, 0x20)) // Allocate the memory.\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type bytes.\\n    function _getArgBytes(uint256 argOffset, uint256 length)\\n        internal\\n        pure\\n        returns (bytes memory arg)\\n    {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := mload(0x40)\\n            mstore(arg, length) // Store the length.\\n            calldatacopy(add(arg, 0x20), add(offset, argOffset), length)\\n            let o := add(add(arg, 0x20), length)\\n            mstore(o, 0) // Zeroize the slot after the bytes.\\n            mstore(0x40, add(o, 0x20)) // Allocate the memory.\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type address.\\n    function _getArgAddress(uint256 argOffset) internal pure returns (address arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(96, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads a uint256 array stored in the immutable args.\\n    function _getArgUint256Array(uint256 argOffset, uint256 length)\\n        internal\\n        pure\\n        returns (uint256[] memory arg)\\n    {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := mload(0x40)\\n            mstore(arg, length) // Store the length.\\n            calldatacopy(add(arg, 0x20), add(offset, argOffset), shl(5, length))\\n            mstore(0x40, add(add(arg, 0x20), shl(5, length))) // Allocate the memory.\\n        }\\n    }\\n\\n    /// @dev Reads a bytes32 array stored in the immutable args.\\n    function _getArgBytes32Array(uint256 argOffset, uint256 length)\\n        internal\\n        pure\\n        returns (bytes32[] memory arg)\\n    {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := mload(0x40)\\n            mstore(arg, length) // Store the length.\\n            calldatacopy(add(arg, 0x20), add(offset, argOffset), shl(5, length))\\n            mstore(0x40, add(add(arg, 0x20), shl(5, length))) // Allocate the memory.\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type bytes32.\\n    function _getArgBytes32(uint256 argOffset) internal pure returns (bytes32 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := calldataload(add(offset, argOffset))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint256.\\n    function _getArgUint256(uint256 argOffset) internal pure returns (uint256 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := calldataload(add(offset, argOffset))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint248.\\n    function _getArgUint248(uint256 argOffset) internal pure returns (uint248 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(8, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint240.\\n    function _getArgUint240(uint256 argOffset) internal pure returns (uint240 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(16, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint232.\\n    function _getArgUint232(uint256 argOffset) internal pure returns (uint232 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(24, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint224.\\n    function _getArgUint224(uint256 argOffset) internal pure returns (uint224 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(0x20, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint216.\\n    function _getArgUint216(uint256 argOffset) internal pure returns (uint216 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(40, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint208.\\n    function _getArgUint208(uint256 argOffset) internal pure returns (uint208 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(48, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint200.\\n    function _getArgUint200(uint256 argOffset) internal pure returns (uint200 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(56, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint192.\\n    function _getArgUint192(uint256 argOffset) internal pure returns (uint192 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(64, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint184.\\n    function _getArgUint184(uint256 argOffset) internal pure returns (uint184 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(72, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint176.\\n    function _getArgUint176(uint256 argOffset) internal pure returns (uint176 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(80, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint168.\\n    function _getArgUint168(uint256 argOffset) internal pure returns (uint168 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(88, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint160.\\n    function _getArgUint160(uint256 argOffset) internal pure returns (uint160 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(96, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint152.\\n    function _getArgUint152(uint256 argOffset) internal pure returns (uint152 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(104, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint144.\\n    function _getArgUint144(uint256 argOffset) internal pure returns (uint144 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(112, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint136.\\n    function _getArgUint136(uint256 argOffset) internal pure returns (uint136 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(120, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint128.\\n    function _getArgUint128(uint256 argOffset) internal pure returns (uint128 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(128, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint120.\\n    function _getArgUint120(uint256 argOffset) internal pure returns (uint120 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(136, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint112.\\n    function _getArgUint112(uint256 argOffset) internal pure returns (uint112 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(144, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint104.\\n    function _getArgUint104(uint256 argOffset) internal pure returns (uint104 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(152, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint96.\\n    function _getArgUint96(uint256 argOffset) internal pure returns (uint96 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(160, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint88.\\n    function _getArgUint88(uint256 argOffset) internal pure returns (uint88 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(168, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint80.\\n    function _getArgUint80(uint256 argOffset) internal pure returns (uint80 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(176, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint72.\\n    function _getArgUint72(uint256 argOffset) internal pure returns (uint72 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(184, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint64.\\n    function _getArgUint64(uint256 argOffset) internal pure returns (uint64 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(192, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint56.\\n    function _getArgUint56(uint256 argOffset) internal pure returns (uint56 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(200, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint48.\\n    function _getArgUint48(uint256 argOffset) internal pure returns (uint48 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(208, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint40.\\n    function _getArgUint40(uint256 argOffset) internal pure returns (uint40 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(216, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint32.\\n    function _getArgUint32(uint256 argOffset) internal pure returns (uint32 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(224, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint24.\\n    function _getArgUint24(uint256 argOffset) internal pure returns (uint24 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(232, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint16.\\n    function _getArgUint16(uint256 argOffset) internal pure returns (uint16 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(240, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @dev Reads an immutable arg with type uint8.\\n    function _getArgUint8(uint256 argOffset) internal pure returns (uint8 arg) {\\n        uint256 offset = _getImmutableArgsOffset();\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            arg := shr(248, calldataload(add(offset, argOffset)))\\n        }\\n    }\\n\\n    /// @return offset The offset of the packed immutable args in calldata.\\n    function _getImmutableArgsOffset() internal pure returns (uint256 offset) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            offset := sub(calldatasize(), shr(240, calldataload(sub(calldatasize(), 2))))\\n        }\\n    }\\n}\\n\",\"keccak256\":\"0xb408dc90294bacd394e59c83619e7dc76f45c83ad6f8e923eb07d3a5bab89f22\",\"license\":\"MIT\"},\"solady/src/utils/FixedPointMathLib.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.4;\\n\\n/// @notice Arithmetic library with operations for fixed-point numbers.\\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/FixedPointMathLib.sol)\\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/FixedPointMathLib.sol)\\nlibrary FixedPointMathLib {\\n    /*\\u00b4:\\u00b0\\u2022.\\u00b0+.*\\u2022\\u00b4.*:\\u02da.\\u00b0*.\\u02da\\u2022\\u00b4.\\u00b0:\\u00b0\\u2022.\\u00b0\\u2022.*\\u2022\\u00b4.*:\\u02da.\\u00b0*.\\u02da\\u2022\\u00b4.\\u00b0:\\u00b0\\u2022.\\u00b0+.*\\u2022\\u00b4.*:*/\\n    /*                       CUSTOM ERRORS                        */\\n    /*.\\u2022\\u00b0:\\u00b0.\\u00b4+\\u02da.*\\u00b0.\\u02da:*.\\u00b4\\u2022*.+\\u00b0.\\u2022\\u00b0:\\u00b4*.\\u00b4\\u2022*.\\u2022\\u00b0.\\u2022\\u00b0:\\u00b0.\\u00b4:\\u2022\\u02da\\u00b0.*\\u00b0.\\u02da:*.\\u00b4+\\u00b0.\\u2022*/\\n\\n    /// @dev The operation failed, as the output exceeds the maximum value of uint256.\\n    error ExpOverflow();\\n\\n    /// @dev The operation failed, as the output exceeds the maximum value of uint256.\\n    error FactorialOverflow();\\n\\n    /// @dev The operation failed, due to an overflow.\\n    error RPowOverflow();\\n\\n    /// @dev The mantissa is too big to fit.\\n    error MantissaOverflow();\\n\\n    /// @dev The operation failed, due to an multiplication overflow.\\n    error MulWadFailed();\\n\\n    /// @dev The operation failed, due to an multiplication overflow.\\n    error SMulWadFailed();\\n\\n    /// @dev The operation failed, either due to a multiplication overflow, or a division by a zero.\\n    error DivWadFailed();\\n\\n    /// @dev The operation failed, either due to a multiplication overflow, or a division by a zero.\\n    error SDivWadFailed();\\n\\n    /// @dev The operation failed, either due to a multiplication overflow, or a division by a zero.\\n    error MulDivFailed();\\n\\n    /// @dev The division failed, as the denominator is zero.\\n    error DivFailed();\\n\\n    /// @dev The full precision multiply-divide operation failed, either due\\n    /// to the result being larger than 256 bits, or a division by a zero.\\n    error FullMulDivFailed();\\n\\n    /// @dev The output is undefined, as the input is less-than-or-equal to zero.\\n    error LnWadUndefined();\\n\\n    /// @dev The input outside the acceptable domain.\\n    error OutOfDomain();\\n\\n    /*\\u00b4:\\u00b0\\u2022.\\u00b0+.*\\u2022\\u00b4.*:\\u02da.\\u00b0*.\\u02da\\u2022\\u00b4.\\u00b0:\\u00b0\\u2022.\\u00b0\\u2022.*\\u2022\\u00b4.*:\\u02da.\\u00b0*.\\u02da\\u2022\\u00b4.\\u00b0:\\u00b0\\u2022.\\u00b0+.*\\u2022\\u00b4.*:*/\\n    /*                         CONSTANTS                          */\\n    /*.\\u2022\\u00b0:\\u00b0.\\u00b4+\\u02da.*\\u00b0.\\u02da:*.\\u00b4\\u2022*.+\\u00b0.\\u2022\\u00b0:\\u00b4*.\\u00b4\\u2022*.\\u2022\\u00b0.\\u2022\\u00b0:\\u00b0.\\u00b4:\\u2022\\u02da\\u00b0.*\\u00b0.\\u02da:*.\\u00b4+\\u00b0.\\u2022*/\\n\\n    /// @dev The scalar of ETH and most ERC20s.\\n    uint256 internal constant WAD = 1e18;\\n\\n    /*\\u00b4:\\u00b0\\u2022.\\u00b0+.*\\u2022\\u00b4.*:\\u02da.\\u00b0*.\\u02da\\u2022\\u00b4.\\u00b0:\\u00b0\\u2022.\\u00b0\\u2022.*\\u2022\\u00b4.*:\\u02da.\\u00b0*.\\u02da\\u2022\\u00b4.\\u00b0:\\u00b0\\u2022.\\u00b0+.*\\u2022\\u00b4.*:*/\\n    /*              SIMPLIFIED FIXED POINT OPERATIONS             */\\n    /*.\\u2022\\u00b0:\\u00b0.\\u00b4+\\u02da.*\\u00b0.\\u02da:*.\\u00b4\\u2022*.+\\u00b0.\\u2022\\u00b0:\\u00b4*.\\u00b4\\u2022*.\\u2022\\u00b0.\\u2022\\u00b0:\\u00b0.\\u00b4:\\u2022\\u02da\\u00b0.*\\u00b0.\\u02da:*.\\u00b4+\\u00b0.\\u2022*/\\n\\n    /// @dev Equivalent to `(x * y) / WAD` rounded down.\\n    function mulWad(uint256 x, uint256 y) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            // Equivalent to `require(y == 0 || x <= type(uint256).max / y)`.\\n            if mul(y, gt(x, div(not(0), y))) {\\n                mstore(0x00, 0xbac65e5b) // `MulWadFailed()`.\\n                revert(0x1c, 0x04)\\n            }\\n            z := div(mul(x, y), WAD)\\n        }\\n    }\\n\\n    /// @dev Equivalent to `(x * y) / WAD` rounded down.\\n    function sMulWad(int256 x, int256 y) internal pure returns (int256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := mul(x, y)\\n            // Equivalent to `require((x == 0 || z / x == y) && !(x == -1 && y == type(int256).min))`.\\n            if iszero(gt(or(iszero(x), eq(sdiv(z, x), y)), lt(not(x), eq(y, shl(255, 1))))) {\\n                mstore(0x00, 0xedcd4dd4) // `SMulWadFailed()`.\\n                revert(0x1c, 0x04)\\n            }\\n            z := sdiv(z, WAD)\\n        }\\n    }\\n\\n    /// @dev Equivalent to `(x * y) / WAD` rounded down, but without overflow checks.\\n    function rawMulWad(uint256 x, uint256 y) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := div(mul(x, y), WAD)\\n        }\\n    }\\n\\n    /// @dev Equivalent to `(x * y) / WAD` rounded down, but without overflow checks.\\n    function rawSMulWad(int256 x, int256 y) internal pure returns (int256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := sdiv(mul(x, y), WAD)\\n        }\\n    }\\n\\n    /// @dev Equivalent to `(x * y) / WAD` rounded up.\\n    function mulWadUp(uint256 x, uint256 y) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            // Equivalent to `require(y == 0 || x <= type(uint256).max / y)`.\\n            if mul(y, gt(x, div(not(0), y))) {\\n                mstore(0x00, 0xbac65e5b) // `MulWadFailed()`.\\n                revert(0x1c, 0x04)\\n            }\\n            z := add(iszero(iszero(mod(mul(x, y), WAD))), div(mul(x, y), WAD))\\n        }\\n    }\\n\\n    /// @dev Equivalent to `(x * y) / WAD` rounded up, but without overflow checks.\\n    function rawMulWadUp(uint256 x, uint256 y) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := add(iszero(iszero(mod(mul(x, y), WAD))), div(mul(x, y), WAD))\\n        }\\n    }\\n\\n    /// @dev Equivalent to `(x * WAD) / y` rounded down.\\n    function divWad(uint256 x, uint256 y) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            // Equivalent to `require(y != 0 && (WAD == 0 || x <= type(uint256).max / WAD))`.\\n            if iszero(mul(y, iszero(mul(WAD, gt(x, div(not(0), WAD)))))) {\\n                mstore(0x00, 0x7c5f487d) // `DivWadFailed()`.\\n                revert(0x1c, 0x04)\\n            }\\n            z := div(mul(x, WAD), y)\\n        }\\n    }\\n\\n    /// @dev Equivalent to `(x * WAD) / y` rounded down.\\n    function sDivWad(int256 x, int256 y) internal pure returns (int256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := mul(x, WAD)\\n            // Equivalent to `require(y != 0 && ((x * WAD) / WAD == x))`.\\n            if iszero(and(iszero(iszero(y)), eq(sdiv(z, WAD), x))) {\\n                mstore(0x00, 0x5c43740d) // `SDivWadFailed()`.\\n                revert(0x1c, 0x04)\\n            }\\n            z := sdiv(mul(x, WAD), y)\\n        }\\n    }\\n\\n    /// @dev Equivalent to `(x * WAD) / y` rounded down, but without overflow and divide by zero checks.\\n    function rawDivWad(uint256 x, uint256 y) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := div(mul(x, WAD), y)\\n        }\\n    }\\n\\n    /// @dev Equivalent to `(x * WAD) / y` rounded down, but without overflow and divide by zero checks.\\n    function rawSDivWad(int256 x, int256 y) internal pure returns (int256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := sdiv(mul(x, WAD), y)\\n        }\\n    }\\n\\n    /// @dev Equivalent to `(x * WAD) / y` rounded up.\\n    function divWadUp(uint256 x, uint256 y) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            // Equivalent to `require(y != 0 && (WAD == 0 || x <= type(uint256).max / WAD))`.\\n            if iszero(mul(y, iszero(mul(WAD, gt(x, div(not(0), WAD)))))) {\\n                mstore(0x00, 0x7c5f487d) // `DivWadFailed()`.\\n                revert(0x1c, 0x04)\\n            }\\n            z := add(iszero(iszero(mod(mul(x, WAD), y))), div(mul(x, WAD), y))\\n        }\\n    }\\n\\n    /// @dev Equivalent to `(x * WAD) / y` rounded up, but without overflow and divide by zero checks.\\n    function rawDivWadUp(uint256 x, uint256 y) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := add(iszero(iszero(mod(mul(x, WAD), y))), div(mul(x, WAD), y))\\n        }\\n    }\\n\\n    /// @dev Equivalent to `x` to the power of `y`.\\n    /// because `x ** y = (e ** ln(x)) ** y = e ** (ln(x) * y)`.\\n    function powWad(int256 x, int256 y) internal pure returns (int256) {\\n        // Using `ln(x)` means `x` must be greater than 0.\\n        return expWad((lnWad(x) * y) / int256(WAD));\\n    }\\n\\n    /// @dev Returns `exp(x)`, denominated in `WAD`.\\n    /// Credit to Remco Bloemen under MIT license: https://2\\u03c0.com/21/exp-ln\\n    function expWad(int256 x) internal pure returns (int256 r) {\\n        unchecked {\\n            // When the result is less than 0.5 we return zero.\\n            // This happens when `x <= floor(log(0.5e18) * 1e18) \\u2248 -42e18`.\\n            if (x <= -41446531673892822313) return r;\\n\\n            /// @solidity memory-safe-assembly\\n            assembly {\\n                // When the result is greater than `(2**255 - 1) / 1e18` we can not represent it as\\n                // an int. This happens when `x >= floor(log((2**255 - 1) / 1e18) * 1e18) \\u2248 135`.\\n                if iszero(slt(x, 135305999368893231589)) {\\n                    mstore(0x00, 0xa37bfec9) // `ExpOverflow()`.\\n                    revert(0x1c, 0x04)\\n                }\\n            }\\n\\n            // `x` is now in the range `(-42, 136) * 1e18`. Convert to `(-42, 136) * 2**96`\\n            // for more intermediate precision and a binary basis. This base conversion\\n            // is a multiplication by 1e18 / 2**96 = 5**18 / 2**78.\\n            x = (x << 78) / 5 ** 18;\\n\\n            // Reduce range of x to (-\\u00bd ln 2, \\u00bd ln 2) * 2**96 by factoring out powers\\n            // of two such that exp(x) = exp(x') * 2**k, where k is an integer.\\n            // Solving this gives k = round(x / log(2)) and x' = x - k * log(2).\\n            int256 k = ((x << 96) / 54916777467707473351141471128 + 2 ** 95) >> 96;\\n            x = x - k * 54916777467707473351141471128;\\n\\n            // `k` is in the range `[-61, 195]`.\\n\\n            // Evaluate using a (6, 7)-term rational approximation.\\n            // `p` is made monic, we'll multiply by a scale factor later.\\n            int256 y = x + 1346386616545796478920950773328;\\n            y = ((y * x) >> 96) + 57155421227552351082224309758442;\\n            int256 p = y + x - 94201549194550492254356042504812;\\n            p = ((p * y) >> 96) + 28719021644029726153956944680412240;\\n            p = p * x + (4385272521454847904659076985693276 << 96);\\n\\n            // We leave `p` in `2**192` basis so we don't need to scale it back up for the division.\\n            int256 q = x - 2855989394907223263936484059900;\\n            q = ((q * x) >> 96) + 50020603652535783019961831881945;\\n            q = ((q * x) >> 96) - 533845033583426703283633433725380;\\n            q = ((q * x) >> 96) + 3604857256930695427073651918091429;\\n            q = ((q * x) >> 96) - 14423608567350463180887372962807573;\\n            q = ((q * x) >> 96) + 26449188498355588339934803723976023;\\n\\n            /// @solidity memory-safe-assembly\\n            assembly {\\n                // Div in assembly because solidity adds a zero check despite the unchecked.\\n                // The q polynomial won't have zeros in the domain as all its roots are complex.\\n                // No scaling is necessary because p is already `2**96` too large.\\n                r := sdiv(p, q)\\n            }\\n\\n            // r should be in the range `(0.09, 0.25) * 2**96`.\\n\\n            // We now need to multiply r by:\\n            // - The scale factor `s \\u2248 6.031367120`.\\n            // - The `2**k` factor from the range reduction.\\n            // - The `1e18 / 2**96` factor for base conversion.\\n            // We do this all at once, with an intermediate result in `2**213`\\n            // basis, so the final right shift is always by a positive amount.\\n            r = int256(\\n                (uint256(r) * 3822833074963236453042738258902158003155416615667) >> uint256(195 - k)\\n            );\\n        }\\n    }\\n\\n    /// @dev Returns `ln(x)`, denominated in `WAD`.\\n    /// Credit to Remco Bloemen under MIT license: https://2\\u03c0.com/21/exp-ln\\n    function lnWad(int256 x) internal pure returns (int256 r) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            // We want to convert `x` from `10**18` fixed point to `2**96` fixed point.\\n            // We do this by multiplying by `2**96 / 10**18`. But since\\n            // `ln(x * C) = ln(x) + ln(C)`, we can simply do nothing here\\n            // and add `ln(2**96 / 10**18)` at the end.\\n\\n            // Compute `k = log2(x) - 96`, `r = 159 - k = 255 - log2(x) = 255 ^ log2(x)`.\\n            r := shl(7, lt(0xffffffffffffffffffffffffffffffff, x))\\n            r := or(r, shl(6, lt(0xffffffffffffffff, shr(r, x))))\\n            r := or(r, shl(5, lt(0xffffffff, shr(r, x))))\\n            r := or(r, shl(4, lt(0xffff, shr(r, x))))\\n            r := or(r, shl(3, lt(0xff, shr(r, x))))\\n            // We place the check here for more optimal stack operations.\\n            if iszero(sgt(x, 0)) {\\n                mstore(0x00, 0x1615e638) // `LnWadUndefined()`.\\n                revert(0x1c, 0x04)\\n            }\\n            // forgefmt: disable-next-item\\n            r := xor(r, byte(and(0x1f, shr(shr(r, x), 0x8421084210842108cc6318c6db6d54be)),\\n                0xf8f9f9faf9fdfafbf9fdfcfdfafbfcfef9fafdfafcfcfbfefafafcfbffffffff))\\n\\n            // Reduce range of x to (1, 2) * 2**96\\n            // ln(2^k * x) = k * ln(2) + ln(x)\\n            x := shr(159, shl(r, x))\\n\\n            // Evaluate using a (8, 8)-term rational approximation.\\n            // `p` is made monic, we will multiply by a scale factor later.\\n            // forgefmt: disable-next-item\\n            let p := sub( // This heavily nested expression is to avoid stack-too-deep for via-ir.\\n                sar(96, mul(add(43456485725739037958740375743393,\\n                sar(96, mul(add(24828157081833163892658089445524,\\n                sar(96, mul(add(3273285459638523848632254066296,\\n                    x), x))), x))), x)), 11111509109440967052023855526967)\\n            p := sub(sar(96, mul(p, x)), 45023709667254063763336534515857)\\n            p := sub(sar(96, mul(p, x)), 14706773417378608786704636184526)\\n            p := sub(mul(p, x), shl(96, 795164235651350426258249787498))\\n            // We leave `p` in `2**192` basis so we don't need to scale it back up for the division.\\n\\n            // `q` is monic by convention.\\n            let q := add(5573035233440673466300451813936, x)\\n            q := add(71694874799317883764090561454958, sar(96, mul(x, q)))\\n            q := add(283447036172924575727196451306956, sar(96, mul(x, q)))\\n            q := add(401686690394027663651624208769553, sar(96, mul(x, q)))\\n            q := add(204048457590392012362485061816622, sar(96, mul(x, q)))\\n            q := add(31853899698501571402653359427138, sar(96, mul(x, q)))\\n            q := add(909429971244387300277376558375, sar(96, mul(x, q)))\\n\\n            // `p / q` is in the range `(0, 0.125) * 2**96`.\\n\\n            // Finalization, we need to:\\n            // - Multiply by the scale factor `s = 5.549\\u2026`.\\n            // - Add `ln(2**96 / 10**18)`.\\n            // - Add `k * ln(2)`.\\n            // - Multiply by `10**18 / 2**96 = 5**18 >> 78`.\\n\\n            // The q polynomial is known not to have zeros in the domain.\\n            // No scaling required because p is already `2**96` too large.\\n            p := sdiv(p, q)\\n            // Multiply by the scaling factor: `s * 5**18 * 2**96`, base is now `5**18 * 2**192`.\\n            p := mul(1677202110996718588342820967067443963516166, p)\\n            // Add `ln(2) * k * 5**18 * 2**192`.\\n            // forgefmt: disable-next-item\\n            p := add(mul(16597577552685614221487285958193947469193820559219878177908093499208371, sub(159, r)), p)\\n            // Add `ln(2**96 / 10**18) * 5**18 * 2**192`.\\n            p := add(600920179829731861736702779321621459595472258049074101567377883020018308, p)\\n            // Base conversion: mul `2**18 / 2**192`.\\n            r := sar(174, p)\\n        }\\n    }\\n\\n    /// @dev Returns `W_0(x)`, denominated in `WAD`.\\n    /// See: https://en.wikipedia.org/wiki/Lambert_W_function\\n    /// a.k.a. Product log function. This is an approximation of the principal branch.\\n    function lambertW0Wad(int256 x) internal pure returns (int256 w) {\\n        // forgefmt: disable-next-item\\n        unchecked {\\n            if ((w = x) <= -367879441171442322) revert OutOfDomain(); // `x` less than `-1/e`.\\n            int256 wad = int256(WAD);\\n            int256 p = x;\\n            uint256 c; // Whether we need to avoid catastrophic cancellation.\\n            uint256 i = 4; // Number of iterations.\\n            if (w <= 0x1ffffffffffff) {\\n                if (-0x4000000000000 <= w) {\\n                    i = 1; // Inputs near zero only take one step to converge.\\n                } else if (w <= -0x3ffffffffffffff) {\\n                    i = 32; // Inputs near `-1/e` take very long to converge.\\n                }\\n            } else if (w >> 63 == 0) {\\n                /// @solidity memory-safe-assembly\\n                assembly {\\n                    // Inline log2 for more performance, since the range is small.\\n                    let v := shr(49, w)\\n                    let l := shl(3, lt(0xff, v))\\n                    l := add(or(l, byte(and(0x1f, shr(shr(l, v), 0x8421084210842108cc6318c6db6d54be)),\\n                        0x0706060506020504060203020504030106050205030304010505030400000000)), 49)\\n                    w := sdiv(shl(l, 7), byte(sub(l, 31), 0x0303030303030303040506080c13))\\n                    c := gt(l, 60)\\n                    i := add(2, add(gt(l, 53), c))\\n                }\\n            } else {\\n                int256 ll = lnWad(w = lnWad(w));\\n                /// @solidity memory-safe-assembly\\n                assembly {\\n                    // `w = ln(x) - ln(ln(x)) + b * ln(ln(x)) / ln(x)`.\\n                    w := add(sdiv(mul(ll, 1023715080943847266), w), sub(w, ll))\\n                    i := add(3, iszero(shr(68, x)))\\n                    c := iszero(shr(143, x))\\n                }\\n                if (c == 0) {\\n                    do { // If `x` is big, use Newton's so that intermediate values won't overflow.\\n                        int256 e = expWad(w);\\n                        /// @solidity memory-safe-assembly\\n                        assembly {\\n                            let t := mul(w, div(e, wad))\\n                            w := sub(w, sdiv(sub(t, x), div(add(e, t), wad)))\\n                        }\\n                        if (p <= w) break;\\n                        p = w;\\n                    } while (--i != 0);\\n                    /// @solidity memory-safe-assembly\\n                    assembly {\\n                        w := sub(w, sgt(w, 2))\\n                    }\\n                    return w;\\n                }\\n            }\\n            do { // Otherwise, use Halley's for faster convergence.\\n                int256 e = expWad(w);\\n                /// @solidity memory-safe-assembly\\n                assembly {\\n                    let t := add(w, wad)\\n                    let s := sub(mul(w, e), mul(x, wad))\\n                    w := sub(w, sdiv(mul(s, wad), sub(mul(e, t), sdiv(mul(add(t, wad), s), add(t, t)))))\\n                }\\n                if (p <= w) break;\\n                p = w;\\n            } while (--i != c);\\n            /// @solidity memory-safe-assembly\\n            assembly {\\n                w := sub(w, sgt(w, 2))\\n            }\\n            // For certain ranges of `x`, we'll use the quadratic-rate recursive formula of\\n            // R. Iacono and J.P. Boyd for the last iteration, to avoid catastrophic cancellation.\\n            if (c != 0) {\\n                int256 t = w | 1;\\n                /// @solidity memory-safe-assembly\\n                assembly {\\n                    x := sdiv(mul(x, wad), t)\\n                }\\n                x = (t * (wad + lnWad(x)));\\n                /// @solidity memory-safe-assembly\\n                assembly {\\n                    w := sdiv(x, add(wad, t))\\n                }\\n            }\\n        }\\n    }\\n\\n    /*\\u00b4:\\u00b0\\u2022.\\u00b0+.*\\u2022\\u00b4.*:\\u02da.\\u00b0*.\\u02da\\u2022\\u00b4.\\u00b0:\\u00b0\\u2022.\\u00b0\\u2022.*\\u2022\\u00b4.*:\\u02da.\\u00b0*.\\u02da\\u2022\\u00b4.\\u00b0:\\u00b0\\u2022.\\u00b0+.*\\u2022\\u00b4.*:*/\\n    /*                  GENERAL NUMBER UTILITIES                  */\\n    /*.\\u2022\\u00b0:\\u00b0.\\u00b4+\\u02da.*\\u00b0.\\u02da:*.\\u00b4\\u2022*.+\\u00b0.\\u2022\\u00b0:\\u00b4*.\\u00b4\\u2022*.\\u2022\\u00b0.\\u2022\\u00b0:\\u00b0.\\u00b4:\\u2022\\u02da\\u00b0.*\\u00b0.\\u02da:*.\\u00b4+\\u00b0.\\u2022*/\\n\\n    /// @dev Calculates `floor(a * b / d)` with full precision.\\n    /// Throws if result overflows a uint256 or when `d` is zero.\\n    /// Credit to Remco Bloemen under MIT license: https://2\\u03c0.com/21/muldiv\\n    function fullMulDiv(uint256 x, uint256 y, uint256 d) internal pure returns (uint256 result) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            for {} 1 {} {\\n                // 512-bit multiply `[p1 p0] = x * y`.\\n                // Compute the product mod `2**256` and mod `2**256 - 1`\\n                // then use the Chinese Remainder Theorem to reconstruct\\n                // the 512 bit result. The result is stored in two 256\\n                // variables such that `product = p1 * 2**256 + p0`.\\n\\n                // Least significant 256 bits of the product.\\n                result := mul(x, y) // Temporarily use `result` as `p0` to save gas.\\n                let mm := mulmod(x, y, not(0))\\n                // Most significant 256 bits of the product.\\n                let p1 := sub(mm, add(result, lt(mm, result)))\\n\\n                // Handle non-overflow cases, 256 by 256 division.\\n                if iszero(p1) {\\n                    if iszero(d) {\\n                        mstore(0x00, 0xae47f702) // `FullMulDivFailed()`.\\n                        revert(0x1c, 0x04)\\n                    }\\n                    result := div(result, d)\\n                    break\\n                }\\n\\n                // Make sure the result is less than `2**256`. Also prevents `d == 0`.\\n                if iszero(gt(d, p1)) {\\n                    mstore(0x00, 0xae47f702) // `FullMulDivFailed()`.\\n                    revert(0x1c, 0x04)\\n                }\\n\\n                /*------------------- 512 by 256 division --------------------*/\\n\\n                // Make division exact by subtracting the remainder from `[p1 p0]`.\\n                // Compute remainder using mulmod.\\n                let r := mulmod(x, y, d)\\n                // `t` is the least significant bit of `d`.\\n                // Always greater or equal to 1.\\n                let t := and(d, sub(0, d))\\n                // Divide `d` by `t`, which is a power of two.\\n                d := div(d, t)\\n                // Invert `d mod 2**256`\\n                // Now that `d` is an odd number, it has an inverse\\n                // modulo `2**256` such that `d * inv = 1 mod 2**256`.\\n                // Compute the inverse by starting with a seed that is correct\\n                // correct for four bits. That is, `d * inv = 1 mod 2**4`.\\n                let inv := xor(2, mul(3, d))\\n                // Now use Newton-Raphson iteration to improve the precision.\\n                // Thanks to Hensel's lifting lemma, this also works in modular\\n                // arithmetic, doubling the correct bits in each step.\\n                inv := mul(inv, sub(2, mul(d, inv))) // inverse mod 2**8\\n                inv := mul(inv, sub(2, mul(d, inv))) // inverse mod 2**16\\n                inv := mul(inv, sub(2, mul(d, inv))) // inverse mod 2**32\\n                inv := mul(inv, sub(2, mul(d, inv))) // inverse mod 2**64\\n                inv := mul(inv, sub(2, mul(d, inv))) // inverse mod 2**128\\n                result :=\\n                    mul(\\n                        // Divide [p1 p0] by the factors of two.\\n                        // Shift in bits from `p1` into `p0`. For this we need\\n                        // to flip `t` such that it is `2**256 / t`.\\n                        or(\\n                            mul(sub(p1, gt(r, result)), add(div(sub(0, t), t), 1)),\\n                            div(sub(result, r), t)\\n                        ),\\n                        // inverse mod 2**256\\n                        mul(inv, sub(2, mul(d, inv)))\\n                    )\\n                break\\n            }\\n        }\\n    }\\n\\n    /// @dev Calculates `floor(x * y / d)` with full precision, rounded up.\\n    /// Throws if result overflows a uint256 or when `d` is zero.\\n    /// Credit to Uniswap-v3-core under MIT license:\\n    /// https://github.com/Uniswap/v3-core/blob/contracts/libraries/FullMath.sol\\n    function fullMulDivUp(uint256 x, uint256 y, uint256 d) internal pure returns (uint256 result) {\\n        result = fullMulDiv(x, y, d);\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            if mulmod(x, y, d) {\\n                result := add(result, 1)\\n                if iszero(result) {\\n                    mstore(0x00, 0xae47f702) // `FullMulDivFailed()`.\\n                    revert(0x1c, 0x04)\\n                }\\n            }\\n        }\\n    }\\n\\n    /// @dev Returns `floor(x * y / d)`.\\n    /// Reverts if `x * y` overflows, or `d` is zero.\\n    function mulDiv(uint256 x, uint256 y, uint256 d) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            // Equivalent to require(d != 0 && (y == 0 || x <= type(uint256).max / y))\\n            if iszero(mul(d, iszero(mul(y, gt(x, div(not(0), y)))))) {\\n                mstore(0x00, 0xad251c27) // `MulDivFailed()`.\\n                revert(0x1c, 0x04)\\n            }\\n            z := div(mul(x, y), d)\\n        }\\n    }\\n\\n    /// @dev Returns `ceil(x * y / d)`.\\n    /// Reverts if `x * y` overflows, or `d` is zero.\\n    function mulDivUp(uint256 x, uint256 y, uint256 d) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            // Equivalent to require(d != 0 && (y == 0 || x <= type(uint256).max / y))\\n            if iszero(mul(d, iszero(mul(y, gt(x, div(not(0), y)))))) {\\n                mstore(0x00, 0xad251c27) // `MulDivFailed()`.\\n                revert(0x1c, 0x04)\\n            }\\n            z := add(iszero(iszero(mod(mul(x, y), d))), div(mul(x, y), d))\\n        }\\n    }\\n\\n    /// @dev Returns `ceil(x / d)`.\\n    /// Reverts if `d` is zero.\\n    function divUp(uint256 x, uint256 d) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            if iszero(d) {\\n                mstore(0x00, 0x65244e4e) // `DivFailed()`.\\n                revert(0x1c, 0x04)\\n            }\\n            z := add(iszero(iszero(mod(x, d))), div(x, d))\\n        }\\n    }\\n\\n    /// @dev Returns `max(0, x - y)`.\\n    function zeroFloorSub(uint256 x, uint256 y) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := mul(gt(x, y), sub(x, y))\\n        }\\n    }\\n\\n    /// @dev Exponentiate `x` to `y` by squaring, denominated in base `b`.\\n    /// Reverts if the computation overflows.\\n    function rpow(uint256 x, uint256 y, uint256 b) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := mul(b, iszero(y)) // `0 ** 0 = 1`. Otherwise, `0 ** n = 0`.\\n            if x {\\n                z := xor(b, mul(xor(b, x), and(y, 1))) // `z = isEven(y) ? scale : x`\\n                let half := shr(1, b) // Divide `b` by 2.\\n                // Divide `y` by 2 every iteration.\\n                for { y := shr(1, y) } y { y := shr(1, y) } {\\n                    let xx := mul(x, x) // Store x squared.\\n                    let xxRound := add(xx, half) // Round to the nearest number.\\n                    // Revert if `xx + half` overflowed, or if `x ** 2` overflows.\\n                    if or(lt(xxRound, xx), shr(128, x)) {\\n                        mstore(0x00, 0x49f7642b) // `RPowOverflow()`.\\n                        revert(0x1c, 0x04)\\n                    }\\n                    x := div(xxRound, b) // Set `x` to scaled `xxRound`.\\n                    // If `y` is odd:\\n                    if and(y, 1) {\\n                        let zx := mul(z, x) // Compute `z * x`.\\n                        let zxRound := add(zx, half) // Round to the nearest number.\\n                        // If `z * x` overflowed or `zx + half` overflowed:\\n                        if or(xor(div(zx, x), z), lt(zxRound, zx)) {\\n                            // Revert if `x` is non-zero.\\n                            if iszero(iszero(x)) {\\n                                mstore(0x00, 0x49f7642b) // `RPowOverflow()`.\\n                                revert(0x1c, 0x04)\\n                            }\\n                        }\\n                        z := div(zxRound, b) // Return properly scaled `zxRound`.\\n                    }\\n                }\\n            }\\n        }\\n    }\\n\\n    /// @dev Returns the square root of `x`.\\n    function sqrt(uint256 x) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            // `floor(sqrt(2**15)) = 181`. `sqrt(2**15) - 181 = 2.84`.\\n            z := 181 // The \\\"correct\\\" value is 1, but this saves a multiplication later.\\n\\n            // This segment is to get a reasonable initial estimate for the Babylonian method. With a bad\\n            // start, the correct # of bits increases ~linearly each iteration instead of ~quadratically.\\n\\n            // Let `y = x / 2**r`. We check `y >= 2**(k + 8)`\\n            // but shift right by `k` bits to ensure that if `x >= 256`, then `y >= 256`.\\n            let r := shl(7, lt(0xffffffffffffffffffffffffffffffffff, x))\\n            r := or(r, shl(6, lt(0xffffffffffffffffff, shr(r, x))))\\n            r := or(r, shl(5, lt(0xffffffffff, shr(r, x))))\\n            r := or(r, shl(4, lt(0xffffff, shr(r, x))))\\n            z := shl(shr(1, r), z)\\n\\n            // Goal was to get `z*z*y` within a small factor of `x`. More iterations could\\n            // get y in a tighter range. Currently, we will have y in `[256, 256*(2**16))`.\\n            // We ensured `y >= 256` so that the relative difference between `y` and `y+1` is small.\\n            // That's not possible if `x < 256` but we can just verify those cases exhaustively.\\n\\n            // Now, `z*z*y <= x < z*z*(y+1)`, and `y <= 2**(16+8)`, and either `y >= 256`, or `x < 256`.\\n            // Correctness can be checked exhaustively for `x < 256`, so we assume `y >= 256`.\\n            // Then `z*sqrt(y)` is within `sqrt(257)/sqrt(256)` of `sqrt(x)`, or about 20bps.\\n\\n            // For `s` in the range `[1/256, 256]`, the estimate `f(s) = (181/1024) * (s+1)`\\n            // is in the range `(1/2.84 * sqrt(s), 2.84 * sqrt(s))`,\\n            // with largest error when `s = 1` and when `s = 256` or `1/256`.\\n\\n            // Since `y` is in `[256, 256*(2**16))`, let `a = y/65536`, so that `a` is in `[1/256, 256)`.\\n            // Then we can estimate `sqrt(y)` using\\n            // `sqrt(65536) * 181/1024 * (a + 1) = 181/4 * (y + 65536)/65536 = 181 * (y + 65536)/2**18`.\\n\\n            // There is no overflow risk here since `y < 2**136` after the first branch above.\\n            z := shr(18, mul(z, add(shr(r, x), 65536))) // A `mul()` is saved from starting `z` at 181.\\n\\n            // Given the worst case multiplicative error of 2.84 above, 7 iterations should be enough.\\n            z := shr(1, add(z, div(x, z)))\\n            z := shr(1, add(z, div(x, z)))\\n            z := shr(1, add(z, div(x, z)))\\n            z := shr(1, add(z, div(x, z)))\\n            z := shr(1, add(z, div(x, z)))\\n            z := shr(1, add(z, div(x, z)))\\n            z := shr(1, add(z, div(x, z)))\\n\\n            // If `x+1` is a perfect square, the Babylonian method cycles between\\n            // `floor(sqrt(x))` and `ceil(sqrt(x))`. This statement ensures we return floor.\\n            // See: https://en.wikipedia.org/wiki/Integer_square_root#Using_only_integer_division\\n            z := sub(z, lt(div(x, z), z))\\n        }\\n    }\\n\\n    /// @dev Returns the cube root of `x`.\\n    /// Credit to bout3fiddy and pcaversaccio under AGPLv3 license:\\n    /// https://github.com/pcaversaccio/snekmate/blob/main/src/utils/Math.vy\\n    function cbrt(uint256 x) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            let r := shl(7, lt(0xffffffffffffffffffffffffffffffff, x))\\n            r := or(r, shl(6, lt(0xffffffffffffffff, shr(r, x))))\\n            r := or(r, shl(5, lt(0xffffffff, shr(r, x))))\\n            r := or(r, shl(4, lt(0xffff, shr(r, x))))\\n            r := or(r, shl(3, lt(0xff, shr(r, x))))\\n\\n            z := div(shl(div(r, 3), shl(lt(0xf, shr(r, x)), 0xf)), xor(7, mod(r, 3)))\\n\\n            z := div(add(add(div(x, mul(z, z)), z), z), 3)\\n            z := div(add(add(div(x, mul(z, z)), z), z), 3)\\n            z := div(add(add(div(x, mul(z, z)), z), z), 3)\\n            z := div(add(add(div(x, mul(z, z)), z), z), 3)\\n            z := div(add(add(div(x, mul(z, z)), z), z), 3)\\n            z := div(add(add(div(x, mul(z, z)), z), z), 3)\\n            z := div(add(add(div(x, mul(z, z)), z), z), 3)\\n\\n            z := sub(z, lt(div(x, mul(z, z)), z))\\n        }\\n    }\\n\\n    /// @dev Returns the square root of `x`, denominated in `WAD`.\\n    function sqrtWad(uint256 x) internal pure returns (uint256 z) {\\n        unchecked {\\n            z = 10 ** 9;\\n            if (x <= type(uint256).max / 10 ** 36 - 1) {\\n                x *= 10 ** 18;\\n                z = 1;\\n            }\\n            z *= sqrt(x);\\n        }\\n    }\\n\\n    /// @dev Returns the cube root of `x`, denominated in `WAD`.\\n    function cbrtWad(uint256 x) internal pure returns (uint256 z) {\\n        unchecked {\\n            z = 10 ** 12;\\n            if (x <= (type(uint256).max / 10 ** 36) * 10 ** 18 - 1) {\\n                if (x >= type(uint256).max / 10 ** 36) {\\n                    x *= 10 ** 18;\\n                    z = 10 ** 6;\\n                } else {\\n                    x *= 10 ** 36;\\n                    z = 1;\\n                }\\n            }\\n            z *= cbrt(x);\\n        }\\n    }\\n\\n    /// @dev Returns the factorial of `x`.\\n    function factorial(uint256 x) internal pure returns (uint256 result) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            if iszero(lt(x, 58)) {\\n                mstore(0x00, 0xaba0f2a2) // `FactorialOverflow()`.\\n                revert(0x1c, 0x04)\\n            }\\n            for { result := 1 } x { x := sub(x, 1) } { result := mul(result, x) }\\n        }\\n    }\\n\\n    /// @dev Returns the log2 of `x`.\\n    /// Equivalent to computing the index of the most significant bit (MSB) of `x`.\\n    /// Returns 0 if `x` is zero.\\n    function log2(uint256 x) internal pure returns (uint256 r) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            r := shl(7, lt(0xffffffffffffffffffffffffffffffff, x))\\n            r := or(r, shl(6, lt(0xffffffffffffffff, shr(r, x))))\\n            r := or(r, shl(5, lt(0xffffffff, shr(r, x))))\\n            r := or(r, shl(4, lt(0xffff, shr(r, x))))\\n            r := or(r, shl(3, lt(0xff, shr(r, x))))\\n            // forgefmt: disable-next-item\\n            r := or(r, byte(and(0x1f, shr(shr(r, x), 0x8421084210842108cc6318c6db6d54be)),\\n                0x0706060506020504060203020504030106050205030304010505030400000000))\\n        }\\n    }\\n\\n    /// @dev Returns the log2 of `x`, rounded up.\\n    /// Returns 0 if `x` is zero.\\n    function log2Up(uint256 x) internal pure returns (uint256 r) {\\n        r = log2(x);\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            r := add(r, lt(shl(r, 1), x))\\n        }\\n    }\\n\\n    /// @dev Returns the log10 of `x`.\\n    /// Returns 0 if `x` is zero.\\n    function log10(uint256 x) internal pure returns (uint256 r) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            if iszero(lt(x, 100000000000000000000000000000000000000)) {\\n                x := div(x, 100000000000000000000000000000000000000)\\n                r := 38\\n            }\\n            if iszero(lt(x, 100000000000000000000)) {\\n                x := div(x, 100000000000000000000)\\n                r := add(r, 20)\\n            }\\n            if iszero(lt(x, 10000000000)) {\\n                x := div(x, 10000000000)\\n                r := add(r, 10)\\n            }\\n            if iszero(lt(x, 100000)) {\\n                x := div(x, 100000)\\n                r := add(r, 5)\\n            }\\n            r := add(r, add(gt(x, 9), add(gt(x, 99), add(gt(x, 999), gt(x, 9999)))))\\n        }\\n    }\\n\\n    /// @dev Returns the log10 of `x`, rounded up.\\n    /// Returns 0 if `x` is zero.\\n    function log10Up(uint256 x) internal pure returns (uint256 r) {\\n        r = log10(x);\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            r := add(r, lt(exp(10, r), x))\\n        }\\n    }\\n\\n    /// @dev Returns the log256 of `x`.\\n    /// Returns 0 if `x` is zero.\\n    function log256(uint256 x) internal pure returns (uint256 r) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            r := shl(7, lt(0xffffffffffffffffffffffffffffffff, x))\\n            r := or(r, shl(6, lt(0xffffffffffffffff, shr(r, x))))\\n            r := or(r, shl(5, lt(0xffffffff, shr(r, x))))\\n            r := or(r, shl(4, lt(0xffff, shr(r, x))))\\n            r := or(shr(3, r), lt(0xff, shr(r, x)))\\n        }\\n    }\\n\\n    /// @dev Returns the log256 of `x`, rounded up.\\n    /// Returns 0 if `x` is zero.\\n    function log256Up(uint256 x) internal pure returns (uint256 r) {\\n        r = log256(x);\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            r := add(r, lt(shl(shl(3, r), 1), x))\\n        }\\n    }\\n\\n    /// @dev Returns the scientific notation format `mantissa * 10 ** exponent` of `x`.\\n    /// Useful for compressing prices (e.g. using 25 bit mantissa and 7 bit exponent).\\n    function sci(uint256 x) internal pure returns (uint256 mantissa, uint256 exponent) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            mantissa := x\\n            if mantissa {\\n                if iszero(mod(mantissa, 1000000000000000000000000000000000)) {\\n                    mantissa := div(mantissa, 1000000000000000000000000000000000)\\n                    exponent := 33\\n                }\\n                if iszero(mod(mantissa, 10000000000000000000)) {\\n                    mantissa := div(mantissa, 10000000000000000000)\\n                    exponent := add(exponent, 19)\\n                }\\n                if iszero(mod(mantissa, 1000000000000)) {\\n                    mantissa := div(mantissa, 1000000000000)\\n                    exponent := add(exponent, 12)\\n                }\\n                if iszero(mod(mantissa, 1000000)) {\\n                    mantissa := div(mantissa, 1000000)\\n                    exponent := add(exponent, 6)\\n                }\\n                if iszero(mod(mantissa, 10000)) {\\n                    mantissa := div(mantissa, 10000)\\n                    exponent := add(exponent, 4)\\n                }\\n                if iszero(mod(mantissa, 100)) {\\n                    mantissa := div(mantissa, 100)\\n                    exponent := add(exponent, 2)\\n                }\\n                if iszero(mod(mantissa, 10)) {\\n                    mantissa := div(mantissa, 10)\\n                    exponent := add(exponent, 1)\\n                }\\n            }\\n        }\\n    }\\n\\n    /// @dev Convenience function for packing `x` into a smaller number using `sci`.\\n    /// The `mantissa` will be in bits [7..255] (the upper 249 bits).\\n    /// The `exponent` will be in bits [0..6] (the lower 7 bits).\\n    /// Use `SafeCastLib` to safely ensure that the `packed` number is small\\n    /// enough to fit in the desired unsigned integer type:\\n    /// ```\\n    ///     uint32 packed = SafeCastLib.toUint32(FixedPointMathLib.packSci(777 ether));\\n    /// ```\\n    function packSci(uint256 x) internal pure returns (uint256 packed) {\\n        (x, packed) = sci(x); // Reuse for `mantissa` and `exponent`.\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            if shr(249, x) {\\n                mstore(0x00, 0xce30380c) // `MantissaOverflow()`.\\n                revert(0x1c, 0x04)\\n            }\\n            packed := or(shl(7, x), packed)\\n        }\\n    }\\n\\n    /// @dev Convenience function for unpacking a packed number from `packSci`.\\n    function unpackSci(uint256 packed) internal pure returns (uint256 unpacked) {\\n        unchecked {\\n            unpacked = (packed >> 7) * 10 ** (packed & 0x7f);\\n        }\\n    }\\n\\n    /// @dev Returns the average of `x` and `y`.\\n    function avg(uint256 x, uint256 y) internal pure returns (uint256 z) {\\n        unchecked {\\n            z = (x & y) + ((x ^ y) >> 1);\\n        }\\n    }\\n\\n    /// @dev Returns the average of `x` and `y`.\\n    function avg(int256 x, int256 y) internal pure returns (int256 z) {\\n        unchecked {\\n            z = (x >> 1) + (y >> 1) + (((x & 1) + (y & 1)) >> 1);\\n        }\\n    }\\n\\n    /// @dev Returns the absolute value of `x`.\\n    function abs(int256 x) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := xor(sub(0, shr(255, x)), add(sub(0, shr(255, x)), x))\\n        }\\n    }\\n\\n    /// @dev Returns the absolute distance between `x` and `y`.\\n    function dist(int256 x, int256 y) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := xor(mul(xor(sub(y, x), sub(x, y)), sgt(x, y)), sub(y, x))\\n        }\\n    }\\n\\n    /// @dev Returns the minimum of `x` and `y`.\\n    function min(uint256 x, uint256 y) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := xor(x, mul(xor(x, y), lt(y, x)))\\n        }\\n    }\\n\\n    /// @dev Returns the minimum of `x` and `y`.\\n    function min(int256 x, int256 y) internal pure returns (int256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := xor(x, mul(xor(x, y), slt(y, x)))\\n        }\\n    }\\n\\n    /// @dev Returns the maximum of `x` and `y`.\\n    function max(uint256 x, uint256 y) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := xor(x, mul(xor(x, y), gt(y, x)))\\n        }\\n    }\\n\\n    /// @dev Returns the maximum of `x` and `y`.\\n    function max(int256 x, int256 y) internal pure returns (int256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := xor(x, mul(xor(x, y), sgt(y, x)))\\n        }\\n    }\\n\\n    /// @dev Returns `x`, bounded to `minValue` and `maxValue`.\\n    function clamp(uint256 x, uint256 minValue, uint256 maxValue)\\n        internal\\n        pure\\n        returns (uint256 z)\\n    {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := xor(x, mul(xor(x, minValue), gt(minValue, x)))\\n            z := xor(z, mul(xor(z, maxValue), lt(maxValue, z)))\\n        }\\n    }\\n\\n    /// @dev Returns `x`, bounded to `minValue` and `maxValue`.\\n    function clamp(int256 x, int256 minValue, int256 maxValue) internal pure returns (int256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := xor(x, mul(xor(x, minValue), sgt(minValue, x)))\\n            z := xor(z, mul(xor(z, maxValue), slt(maxValue, z)))\\n        }\\n    }\\n\\n    /// @dev Returns greatest common divisor of `x` and `y`.\\n    function gcd(uint256 x, uint256 y) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            for { z := x } y {} {\\n                let t := y\\n                y := mod(z, y)\\n                z := t\\n            }\\n        }\\n    }\\n\\n    /*\\u00b4:\\u00b0\\u2022.\\u00b0+.*\\u2022\\u00b4.*:\\u02da.\\u00b0*.\\u02da\\u2022\\u00b4.\\u00b0:\\u00b0\\u2022.\\u00b0\\u2022.*\\u2022\\u00b4.*:\\u02da.\\u00b0*.\\u02da\\u2022\\u00b4.\\u00b0:\\u00b0\\u2022.\\u00b0+.*\\u2022\\u00b4.*:*/\\n    /*                   RAW NUMBER OPERATIONS                    */\\n    /*.\\u2022\\u00b0:\\u00b0.\\u00b4+\\u02da.*\\u00b0.\\u02da:*.\\u00b4\\u2022*.+\\u00b0.\\u2022\\u00b0:\\u00b4*.\\u00b4\\u2022*.\\u2022\\u00b0.\\u2022\\u00b0:\\u00b0.\\u00b4:\\u2022\\u02da\\u00b0.*\\u00b0.\\u02da:*.\\u00b4+\\u00b0.\\u2022*/\\n\\n    /// @dev Returns `x + y`, without checking for overflow.\\n    function rawAdd(uint256 x, uint256 y) internal pure returns (uint256 z) {\\n        unchecked {\\n            z = x + y;\\n        }\\n    }\\n\\n    /// @dev Returns `x + y`, without checking for overflow.\\n    function rawAdd(int256 x, int256 y) internal pure returns (int256 z) {\\n        unchecked {\\n            z = x + y;\\n        }\\n    }\\n\\n    /// @dev Returns `x - y`, without checking for underflow.\\n    function rawSub(uint256 x, uint256 y) internal pure returns (uint256 z) {\\n        unchecked {\\n            z = x - y;\\n        }\\n    }\\n\\n    /// @dev Returns `x - y`, without checking for underflow.\\n    function rawSub(int256 x, int256 y) internal pure returns (int256 z) {\\n        unchecked {\\n            z = x - y;\\n        }\\n    }\\n\\n    /// @dev Returns `x * y`, without checking for overflow.\\n    function rawMul(uint256 x, uint256 y) internal pure returns (uint256 z) {\\n        unchecked {\\n            z = x * y;\\n        }\\n    }\\n\\n    /// @dev Returns `x * y`, without checking for overflow.\\n    function rawMul(int256 x, int256 y) internal pure returns (int256 z) {\\n        unchecked {\\n            z = x * y;\\n        }\\n    }\\n\\n    /// @dev Returns `x / y`, returning 0 if `y` is zero.\\n    function rawDiv(uint256 x, uint256 y) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := div(x, y)\\n        }\\n    }\\n\\n    /// @dev Returns `x / y`, returning 0 if `y` is zero.\\n    function rawSDiv(int256 x, int256 y) internal pure returns (int256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := sdiv(x, y)\\n        }\\n    }\\n\\n    /// @dev Returns `x % y`, returning 0 if `y` is zero.\\n    function rawMod(uint256 x, uint256 y) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := mod(x, y)\\n        }\\n    }\\n\\n    /// @dev Returns `x % y`, returning 0 if `y` is zero.\\n    function rawSMod(int256 x, int256 y) internal pure returns (int256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := smod(x, y)\\n        }\\n    }\\n\\n    /// @dev Returns `(x + y) % d`, return 0 if `d` if zero.\\n    function rawAddMod(uint256 x, uint256 y, uint256 d) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := addmod(x, y, d)\\n        }\\n    }\\n\\n    /// @dev Returns `(x * y) % d`, return 0 if `d` if zero.\\n    function rawMulMod(uint256 x, uint256 y, uint256 d) internal pure returns (uint256 z) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            z := mulmod(x, y, d)\\n        }\\n    }\\n}\\n\",\"keccak256\":\"0x1fbad6f61bd3e5875e6b0060b67626cb1ccb9542c0da368a44eb3870c9a9e160\",\"license\":\"MIT\"}},\"version\":1}",
  "bytecode": "0x6102006040523480156200001257600080fd5b506040516200642838038062006428833981016040819052620000359162000469565b8b8b8b8b8b8b8b8b8b8b6200004d6001607e6200055c565b60ff168811156200007157604051633beff19960e11b815260040160405180910390fd5b6000198714806200008e5750876200008b88600162000582565b10155b15620000ad5760405163e62ccf3960e01b815260040160405180910390fd5b6002871015620000d05760405163e62ccf3960e01b815260040160405180910390fd5b6001600160401b038016846001600160a01b0316637dc0d1d06040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000119573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200013f91906200059d565b6001600160a01b031663f3f480d96040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200017d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001a39190620005bd565b1115620001c35760405163b4e1243360e01b815260040160405180910390fd5b6000620001e4876001600160401b03166200040860201b620011861760201c565b620001fa906001600160401b03166002620005d7565b90506000856001600160a01b0316637dc0d1d06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200023d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200026391906200059d565b6001600160a01b031663f3f480d96040518163ffffffff1660e01b8152600401602060405180830381865afa158015620002a1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002c79190620005bd565b620002e6896001600160401b03166200040860201b620011861760201c565b6001600160401b0316620002fb919062000582565b905060006200031683836200040b60201b6200265c1760201c565b90506001600160401b03811115620003415760405163235dfb2b60e21b815260040160405180910390fd5b62000360886001600160401b03166200040860201b620011861760201c565b6001600160401b0316816001600160401b03161115620003935760405163235dfb2b60e21b815260040160405180910390fd5b50505063ffffffff9099166101205260809790975260a09590955260c0939093526001600160401b039182166101a0521660e0526001600160a01b03908116610100529081166101405290811661016052610180919091529182166101c052166101e05250620005f998505050505050505050565b90565b6000818310156200041d57816200041f565b825b9392505050565b80516001600160401b03811681146200043e57600080fd5b919050565b6001600160a01b03811681146200045957600080fd5b50565b80516200043e8162000443565b6000806000806000806000806000806000806101808d8f0312156200048d57600080fd5b8c5163ffffffff81168114620004a257600080fd5b809c505060208d01519a5060408d0151995060608d01519850620004c960808e0162000426565b9750620004d960a08e0162000426565b9650620004e960c08e016200045c565b9550620004f960e08e016200045c565b94506200050a6101008e016200045c565b93506101208d01519250620005236101408e016200045c565b9150620005346101608e016200045c565b90509295989b509295989b509295989b565b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff84168082101562000579576200057962000546565b90039392505050565b6000821982111562000598576200059862000546565b500190565b600060208284031215620005b057600080fd5b81516200041f8162000443565b600060208284031215620005d057600080fd5b5051919050565b6000816000190483118215151615620005f457620005f462000546565b500290565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c0516101e051615c69620007bf6000396000818161053e01528181611c9701526121c601526000818161080301528181611c6501528181611d19015261219401526000818161068301528181612f7201528181612fdd015261301001526000818161099b0152818161259a015261357001526000818161166d0152818161186e01528181611a1e01526134d40152600081816104f801528181611b71015281816126f40152818161338201526139c001526000818161083e015261261c0152600081816104850152818161229c01528181612e8b01526142340152600081816109ee01528181610b9601528181611eaa01528181611eec01528181612dfb01528181613040015261309f015260008181610a210152818161244001528181612c4401528181612d6a01528181612fae015281816140ab015281816144d8015281816145b70152818161466a01528181614d910152614f79015260008181610ac801528181611fd80152818161205e01528181612d0d01528181612e5f01528181613fc301526140cc015260008181610730015261414f0152615c696000f3fe6080604052600436106103085760003560e01c806370872aa51161019a578063c6f0308c116100e1578063ec5e63081161008a578063fa24f74311610064578063fa24f74314610a95578063fa315aa914610ab9578063fe2bbeb214610aec57600080fd5b8063ec5e630814610a12578063eff0f59214610a45578063f8f43ff614610a7557600080fd5b8063d6ae3cd5116100bb578063d6ae3cd51461098c578063d8cc1a3c146109bf578063dabd396d146109df57600080fd5b8063c6f0308c146108ca578063cf09e0d01461093e578063d5d44d801461095f57600080fd5b8063a445ece611610143578063bcef3b551161011d578063bcef3b5514610868578063bd8da9561461088a578063c395e1ca146108aa57600080fd5b8063a445ece614610754578063a8e4fb90146107f4578063bbdc02db1461082757600080fd5b80638980e0cc116101745780638980e0cc146106ea5780638b85902b146106ff5780638d450a951461072157600080fd5b806370872aa5146106ba5780637b0f0adc146106cf5780638129fc1c146106e257600080fd5b80633fc8cef31161025e5780635a5fa2d9116102075780636361506d116101e15780636361506d146106525780636b6716c0146106745780636f034409146106a757600080fd5b80635a5fa2d9146105fd578063609d33341461061d57806360e274641461063257600080fd5b8063543acd5011610238578063543acd501461056257806354fd4d501461057757806357da950e146105cd57600080fd5b80633fc8cef3146104e9578063472777c61461051c578063534db0e21461052f57600080fd5b80632810e1d6116102c057806337b1b2291161029a57806337b1b229146104545780633a768463146104765780633e3ac912146104a957600080fd5b80632810e1d6146103e75780632ad69aeb146103fc57806330dbe5701461041c57600080fd5b80631e31db5a116102f15780631e31db5a1461037a578063200d2ed21461039a57806325fc2ace146103c857600080fd5b806303c2924d1461030d57806319effeb41461032f575b600080fd5b34801561031957600080fd5b5061032d6103283660046152b5565b610b1c565b005b34801561033b57600080fd5b5060005461035c9068010000000000000000900467ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020015b60405180910390f35b34801561038657600080fd5b5061032d610395366004615320565b6110e0565b3480156103a657600080fd5b506000546103bb90600160801b900460ff1681565b60405161037191906153c0565b3480156103d457600080fd5b506008545b604051908152602001610371565b3480156103f357600080fd5b506103bb61141a565b34801561040857600080fd5b506103d96104173660046152b5565b611971565b34801561042857600080fd5b5060015461043c906001600160a01b031681565b6040516001600160a01b039091168152602001610371565b34801561046057600080fd5b503660011981013560f01c90033560601c61043c565b34801561048257600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061043c565b3480156104b557600080fd5b506000546104d9907201000000000000000000000000000000000000900460ff1681565b6040519015158152602001610371565b3480156104f557600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061043c565b61032d61052a366004615401565b6119a7565b34801561053b57600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061043c565b34801561056e57600080fd5b5061043c6119b9565b34801561058357600080fd5b506105c06040518060400160405280600a81526020017f312e332e302d72632e310000000000000000000000000000000000000000000081525081565b604051610371919061547a565b3480156105d957600080fd5b506008546009546105e8919082565b60408051928352602083019190915201610371565b34801561060957600080fd5b506103d961061836600461548d565b611a92565b34801561062957600080fd5b506105c0611acc565b34801561063e57600080fd5b5061032d61064d3660046154be565b611ada565b34801561065e57600080fd5b503660011981013560f01c9003603401356103d9565b34801561068057600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061035c565b61032d6106b53660046154e9565b611c5a565b3480156106c657600080fd5b506009546103d9565b61032d6106dd366004615401565b611d01565b61032d611d0e565b3480156106f657600080fd5b506002546103d9565b34801561070b57600080fd5b503660011981013560f01c9003605401356103d9565b34801561072d57600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006103d9565b34801561076057600080fd5b506107b661076f36600461548d565b6007602052600090815260409020805460019091015460ff821691610100810463ffffffff1691650100000000009091046001600160801b0316906001600160a01b031684565b60408051941515855263ffffffff90931660208501526001600160801b03909116918301919091526001600160a01b03166060820152608001610371565b34801561080057600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061043c565b34801561083357600080fd5b5060405163ffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152602001610371565b34801561087457600080fd5b503660011981013560f01c9003601401356103d9565b34801561089657600080fd5b5061035c6108a536600461548d565b611d7a565b3480156108b657600080fd5b506103d96108c536600461552a565b611f14565b3480156108d657600080fd5b506108ea6108e536600461548d565b612115565b6040805163ffffffff90981688526001600160a01b03968716602089015295909416948601949094526001600160801b039182166060860152608085015291821660a08401521660c082015260e001610371565b34801561094a57600080fd5b5060005461035c9067ffffffffffffffff1681565b34801561096b57600080fd5b506103d961097a3660046154be565b60036020526000908152604090205481565b34801561099857600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006103d9565b3480156109cb57600080fd5b5061032d6109da366004615553565b612189565b3480156109eb57600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061035c565b348015610a1e57600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006103d9565b348015610a5157600080fd5b506104d9610a6036600461548d565b60046020526000908152604090205460ff1681565b348015610a8157600080fd5b5061032d610a90366004615401565b612234565b348015610aa157600080fd5b50610aaa61261a565b604051610371939291906155df565b348015610ac557600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006103d9565b348015610af857600080fd5b506104d9610b0736600461548d565b60066020526000908152604090205460ff1681565b60008054600160801b900460ff166002811115610b3b57610b3b615391565b14610b595760405163067fe19560e41b815260040160405180910390fd5b600060028381548110610b6e57610b6e615604565b906000526020600020906005020190506000610b8984611d7a565b905067ffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081169082161015610bf2576040517ff2440b5300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008481526006602052604090205460ff1615610c3b576040517ff1a9458100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000848152600560205260409020805480158015610c5857508515155b15610cd957835464010000000090046001600160a01b031660008115610c7e5781610c8d565b60018601546001600160a01b03165b9050610c998187612677565b50505060009485525050600660205250506040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6000868152600760209081526040918290208251608081018452815460ff81161515808352610100820463ffffffff16948301949094526501000000000090046001600160801b031693810193909352600101546001600160a01b03166060830152610d5d576001600160801b036040820152600181526000869003610d5d578195505b600086826020015163ffffffff16610d759190615662565b90506000838211610d865781610d88565b835b602084015190915063ffffffff165b81811015610ea8576000868281548110610db357610db3615604565b6000918252602080832090910154808352600690915260409091205490915060ff16610e0b576040517f9a07664600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060028281548110610e2057610e20615604565b60009182526020909120600590910201805490915064010000000090046001600160a01b0316158015610e675750600481015460408701516001600160801b039182169116115b15610e935760018101546001600160a01b0316606087015260048101546001600160801b031660408701525b50508080610ea09061567a565b915050610d97565b5063ffffffff818116602085810191825260008c81526007909152604090819020865181549351928801517fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000009094169015157fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ff161761010092909416918202939093177fffffffffffffffffffffff00000000000000000000000000000000ffffffffff16650100000000006001600160801b03909316929092029190911782556060850151600190920180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03909316929092179091558490036110d557606083015160008a815260066020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558915801561101257506000547201000000000000000000000000000000000000900460ff165b1561106d576001546001600160a01b031661102d818a612677565b88546001600160a01b03909116640100000000027fffffffffffffffff0000000000000000000000000000000000000000ffffffff9091161788556110d3565b61109a6001600160a01b038216156110855781611094565b60018901546001600160a01b03165b89612677565b87547fffffffffffffffff0000000000000000000000000000000000000000ffffffff166401000000006001600160a01b038316021788555b505b505050505050505050565b60008054600160801b900460ff1660028111156110ff576110ff615391565b1461111d5760405163067fe19560e41b815260040160405180910390fd5b6000547201000000000000000000000000000000000000900460ff1615611170576040517f0ea2e75200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111893660011981013560f01c90036014013590565b90565b61119a6111958561571d565b612755565b146111d1576040517f9cc00b5b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006111e060808501856157e1565b8101906111ed9190615846565b5092505050808383604051611203929190615883565b604051809103902014611242576040517fd81d583b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061128b61128685858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061279b92505050565b6127c8565b905060006112b2826008815181106112a5576112a5615604565b60200260200101516129cc565b90506020815111156112f0576040517fd81d583b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b602081810151825190910360031b1c3660011981013560f01c9003605401358103611347576040517fb8ed883000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61135660608801356001615662565b811080611373575061137060408801356060890135615662565b81115b156113aa576040517fd81d583b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050600180547fffffffffffffffffffffffff000000000000000000000000000000000000000016331790555050600080547fffffffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffff167201000000000000000000000000000000000000179055505050565b600080600054600160801b900460ff16600281111561143b5761143b615391565b146114595760405163067fe19560e41b815260040160405180910390fd5b6000805260066020527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f85460ff166114bd576040517f9a07664600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006001600160a01b031660026000815481106114dc576114dc615604565b600091825260209091206005909102015464010000000090046001600160a01b03161461150a57600161150d565b60025b6000805467ffffffffffffffff421668010000000000000000027fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff82168117835592935083927fffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffff000000000000000000ffffffffffffffff90911617600160801b8360028111156115b1576115b1615391565b0217905560028111156115c6576115c6615391565b6040517f5e186f09b9c93491f14e277eea7faa5de6a2d4bda75a79af7a3684fbfb42da6090600090a2600181600281111561160357611603615391565b0361118657604080518082018252601581527f4661756c7450726f6f664c6f636b696e67506f6f6c0000000000000000000000602082015290517fbf40fac10000000000000000000000000000000000000000000000000000000081526000916001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163bf40fac1916116a09160040161547a565b602060405180830381865afa1580156116bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e19190615893565b90506001600160a01b0381161561180c576000600260008154811061170857611708615604565b60009182526020909120600590910201546040517fc96be4cb0000000000000000000000000000000000000000000000000000000081526401000000009091046001600160a01b0390811660048301819052925083169063c96be4cb90602401600060405180830381600087803b15801561178257600080fd5b505af1925050508015611793575060015b61180a573d8080156117c1576040519150601f19603f3d011682016040523d82523d6000602084013e6117c6565b606091505b50816001600160a01b03167f17ea47b379a2daf87a43d9fe6e50400125dff97424a6a7686eca528970fffc0f82604051611800919061547a565b60405180910390a2505b505b604080518082018252601481527f5374617465436f6d6d69746d656e74436861696e000000000000000000000000602082015290517fbf40fac10000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163bf40fac1916118a2919060040161547a565b602060405180830381865afa1580156118bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e39190615893565b6001600160a01b0316637fe9b70f61191d600260008154811061190857611908615604565b90600052602060002090600502016003015490565b6040518263ffffffff1660e01b815260040161193b91815260200190565b600060405180830381600087803b15801561195557600080fd5b505af1158015611969573d6000803e3d6000fd5b505050505090565b6005602052816000526040600020818154811061198d57600080fd5b90600052602060002001600091509150505481565b905090565b6119b48383836001611c5a565b505050565b604080518082018252601481527f5374617465436f6d6d69746d656e74436861696e000000000000000000000000602082015290517fbf40fac10000000000000000000000000000000000000000000000000000000081526000916001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163bf40fac191611a519160040161547a565b602060405180830381865afa158015611a6e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119a29190615893565b60008181526007602090815260408083206005909252822080548254611ac390610100900463ffffffff16826158b0565b95945050505050565b60606119a260546020612a53565b6001600160a01b038116600090815260036020526040812080549082905590819003611b32576040517f17bfe5f700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517ff3fef3a30000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063f3fef3a390604401600060405180830381600087803b158015611bb557600080fd5b505af1158015611bc9573d6000803e3d6000fd5b505050506000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611c1a576040519150601f19603f3d011682016040523d82523d6000602084013e611c1f565b606091505b50509050806119b4576040517f83e6cc6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480611cb95750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b611cef576040517fd386ef3e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cfb84848484612a87565b50505050565b6119b48383836000611c5a565b326001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614611d70576040517fd386ef3e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611d7861341d565b565b600080600054600160801b900460ff166002811115611d9b57611d9b615391565b14611db95760405163067fe19560e41b815260040160405180910390fd5b600060028381548110611dce57611dce615604565b600091825260208220600590910201805490925063ffffffff90811614611e3457815460028054909163ffffffff16908110611e0c57611e0c615604565b906000526020600020906005020160040160109054906101000a90046001600160801b031690505b6004820154600090611e5f90600160801b900467ffffffffffffffff165b67ffffffffffffffff1690565b611e739067ffffffffffffffff16426158b0565b611e89611e52846001600160801b031660401c90565b67ffffffffffffffff16611e9d9190615662565b905067ffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001667ffffffffffffffff168167ffffffffffffffff1611611eea5780611ac3565b7f000000000000000000000000000000000000000000000000000000000000000095945050505050565b60006002600081548110611f2a57611f2a615604565b60009182526020909120600160059092020101546001600160a01b03163303611f5557506000919050565b6000611fd1836001600160801b03167e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b60ff1690507f0000000000000000000000000000000000000000000000000000000000000000811115612030576040517f56f57b2b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b642e90edd00062061a806311e1a300600061204b83836158f6565b9050670de0b6b3a76400006000612082827f000000000000000000000000000000000000000000000000000000000000000061590a565b905060006120a061209b670de0b6b3a76400008661590a565b613a59565b905060006120ae8484613cab565b905060006120bc8383613cfa565b905060006120c982613d28565b905060006120e8826120e3670de0b6b3a76400008f61590a565b613f10565b905060006120f68b83613cfa565b9050612102818d61590a565b9f9e505050505050505050505050505050565b6002818154811061212557600080fd5b60009182526020909120600590910201805460018201546002830154600384015460049094015463ffffffff841695506401000000009093046001600160a01b03908116949216926001600160801b03918216929180821691600160801b90041687565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806121e85750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b61221e576040517fd386ef3e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61222c868686868686613f41565b505050505050565b60008054600160801b900460ff16600281111561225357612253615391565b146122715760405163067fe19560e41b815260040160405180910390fd5b6000806000806122808661449d565b93509350935093506000612296858585856147f6565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637dc0d1d06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156122f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061231c9190615893565b9050600189036123e9576001600160a01b0381166352f0f3ad8a8461234d3660011981013560f01c90036034013590565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815260048101939093526024830191909152604482015260206064820152608481018a905260a4015b6020604051808303816000875af11580156123bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123e39190615929565b506110d5565b60028903612408576001600160a01b0381166352f0f3ad8a848961234d565b60038903612427576001600160a01b0381166352f0f3ad8a848761234d565b6004890361255c5760006124646001600160801b0385167f0000000000000000000000000000000000000000000000000000000000000000614895565b6009546124719190615662565b61247c906001615662565b90503660011981013560f01c90036054013581106124a9573660011981013560f01c9003605401356124ab565b805b90506001600160a01b0382166352f0f3ad8b8560405160e084901b7fffffffff000000000000000000000000000000000000000000000000000000001681526004810192909252602482015260c084901b604482015260086064820152608481018b905260a4016020604051808303816000875af1158015612531573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125559190615929565b50506110d5565b600589036125e8576040517f52f0f3ad000000000000000000000000000000000000000000000000000000008152600481018a9052602481018390527f000000000000000000000000000000000000000000000000000000000000000060c01b604482015260086064820152608481018890526001600160a01b038216906352f0f3ad9060a4016123a0565b6040517fff137e6500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000003660011981013560f01c9003601401356060612655611acc565b9050909192565b60008183101561266c578161266e565b825b90505b92915050565b60028101546001600160a01b038316600090815260036020526040812080546001600160801b03909316928392906126b0908490615662565b90915550506040517f7eee288d0000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152602482018390527f00000000000000000000000000000000000000000000000000000000000000001690637eee288d90604401600060405180830381600087803b15801561273857600080fd5b505af115801561274c573d6000803e3d6000fd5b50505050505050565b6000816020015182604001518360600151846080015160405160200161277e9493929190615942565b604051602081830303815290604052805190602001209050919050565b60408051808201825260008082526020918201528151808301909252825182529182019181019190915290565b60606000806127d68461492a565b919350909150600190508160018111156127f2576127f2615391565b146128445760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420524c50206c6973742076616c75652e00000000000000000060448201526064015b60405180910390fd5b6040805160208082526104208201909252600091816020015b604080518082019091526000808252602082015281526020019060019003908161285d5790505090506000835b86518110156129c157602082106129095760405162461bcd60e51b815260206004820152602a60248201527f50726f766964656420524c50206c6973742065786365656473206d6178206c6960448201527f7374206c656e6774682e00000000000000000000000000000000000000000000606482015260840161283b565b6000806129466040518060400160405280858c6000015161292a91906158b0565b8152602001858c6020015161293f9190615662565b905261492a565b5091509150604051806040016040528083836129629190615662565b8152602001848b602001516129779190615662565b81525085858151811061298c5761298c615604565b60209081029190910101526129a2600185615662565b93506129ae8183615662565b6129b89084615662565b9250505061288a565b508152949350505050565b606060008060006129dc8561492a565b9194509250905060008160018111156129f7576129f7615391565b14612a445760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420524c502062797465732076616c75652e0000000000000000604482015260640161283b565b611ac385602001518484614c7b565b6040518181523660011981013560f01c90038284820160208401378260208301016000815260208101604052505092915050565b60008054600160801b900460ff166002811115612aa657612aa6615391565b14612ac45760405163067fe19560e41b815260040160405180910390fd5b600060028481548110612ad957612ad9615604565b60009182526020918290206040805160e0810182526005909302909101805463ffffffff811684526001600160a01b0364010000000090910481169484019490945260018101549093169082015260028201546001600160801b03908116606083015260038301546080830181905260049093015480821660a0840152600160801b90041660c082015291508514612b9d576040517f3014033200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60a0810151600083156001600160801b0383161760011b90506000612c32826001600160801b03167e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b60ff169050861580612c6d5750612c6a7f00000000000000000000000000000000000000000000000000000000000000006002615662565b81145b8015612c77575084155b15612cae576040517fa42637bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000547201000000000000000000000000000000000000900460ff168015612cd4575086155b15612d0b576040517f0ea2e75200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000811115612d65576040517f56f57b2b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612d907f00000000000000000000000000000000000000000000000000000000000000006001615662565b8103612da257612da286888588614d56565b34612dac83611f14565b14612de3576040517f8620aa1900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612dee88611d7a565b905067ffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811690821603612e56576040517f3381d11400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612e8360017f00000000000000000000000000000000000000000000000000000000000000006158b0565b8303612fa7577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637dc0d1d06040518163ffffffff1660e01b8152600401602060405180830381865afa158015612ee7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f0b9190615893565b6001600160a01b031663f3f480d96040518163ffffffff1660e01b8152600401602060405180830381865afa158015612f48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f6c9190615929565b612fa0907f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff16615967565b905061303a565b612fd260017f00000000000000000000000000000000000000000000000000000000000000006158b0565b830361300d57612fa07f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff166002615993565b507f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff165b61306e817f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff166159c3565b67ffffffffffffffff166130898367ffffffffffffffff1690565b67ffffffffffffffff1611156130d0576130cd817f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff166159c3565b91505b6000604083901b421760008a8152608087901b6001600160801b038d1617602052604081209192509060008181526004602052604090205490915060ff1615613145576040517f80497e3b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016004600083815260200190815260200160002060006101000a81548160ff02191690831515021790555060026040518060e001604052808d63ffffffff16815260200160006001600160a01b03168152602001336001600160a01b03168152602001346001600160801b031681526020018c8152602001886001600160801b03168152602001846001600160801b0316815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a8154816001600160a01b0302191690836001600160a01b0316021790555060408201518160010160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060608201518160020160006101000a8154816001600160801b0302191690836001600160801b031602179055506080820151816003015560a08201518160040160006101000a8154816001600160801b0302191690836001600160801b0316021790555060c08201518160040160106101000a8154816001600160801b0302191690836001600160801b031602179055505050600560008c8152602001908152602001600020600160028054905061333c91906158b0565b81546001810183556000928352602083200155604080517fd0e30db000000000000000000000000000000000000000000000000000000000815290516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169263d0e30db09234926004808301939282900301818588803b1580156133c757600080fd5b505af11580156133db573d6000803e3d6000fd5b50506040513393508d92508e91507f9b3245740ec3b155098a55be84957a4da13eaf7f14a8bc6f53126c0b9350f2be90600090a4505050505050505050505050565b60005471010000000000000000000000000000000000900460ff161561346f576040517f0dc149f000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080518082018252601481527f5374617465436f6d6d69746d656e74436861696e000000000000000000000000602082015290517fbf40fac10000000000000000000000000000000000000000000000000000000081526000916001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163bf40fac1916135079160040161547a565b602060405180830381865afa158015613524573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135489190615893565b6040517fa0832c030000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015290915060009081906001600160a01b0384169063a0832c03906024016040805180830381865afa1580156135cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135f091906159ec565b9092509050818061362d576040517f6a6bc3b200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f5fc993dd000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b03851690635fc993dd90602401602060405180830381865afa15801561368b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136af9190615a10565b156136e6576040517ff1a9458100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080518082019091528181526020018290526008819055600982905536607a1461371957639824bdab6000526004601cfd5b813660011981013560f01c90036054013511613772576040517ff40239db0000000000000000000000000000000000000000000000000000000081523660011981013560f01c900360140135600482015260240161283b565b6040805160e08101825263ffffffff808252600060208301818152600119369081013560f01c90038035606090811c868801908152346001600160801b0381811693890193845260149094013560808901908152600160a08a0181815242871660c08c019081526002805493840181558a529a5160059092027f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace8101805499516001600160a01b03908116640100000000027fffffffffffffffff000000000000000000000000000000000000000000000000909b1694909c16939093179890981790915592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf87018054918a167fffffffffffffffffffffffff000000000000000000000000000000000000000090921691909117905592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad0860180549186167fffffffffffffffffffffffffffffffff0000000000000000000000000000000090921691909117905591517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad18501555195518216600160801b0295909116949094177f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad29091015580547fffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffffffff167101000000000000000000000000000000000017815583517fd0e30db000000000000000000000000000000000000000000000000000000000815293517f00000000000000000000000000000000000000000000000000000000000000009092169363d0e30db093926004828101939282900301818588803b158015613a0657600080fd5b505af1158015613a1a573d6000803e3d6000fd5b5050600080547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000164267ffffffffffffffff1617905550505050505050565b6001600160801b03811160071b81811c67ffffffffffffffff1060061b1781811c63ffffffff1060051b1781811c61ffff1060041b1781811c60ff1060031b1760008213613aaf57631615e6386000526004601cfd5b7ff8f9f9faf9fdfafbf9fdfcfdfafbfcfef9fafdfafcfcfbfefafafcfbffffffff6f8421084210842108cc6318c6db6d54be83831c1c601f161a1890811b609f90811c6c465772b2bbbb5f824b15207a3081018102606090811d6d0388eaa27412d5aca026815d636e018202811d6d0df99ac502031bf953eff472fdcc018202811d6d13cdffb29d51d99322bdff5f2211018202811d6d0a0f742023def783a307a986912e018202811d6d01920d8043ca89b5239253284e42018202811d6c0b7a86d7375468fac667a0a527016c29508e458543d8aa4df2abee7883018302821d6d0139601a2efabe717e604cbb4894018302821d6d02247f7a7b6594320649aa03aba1018302821d7fffffffffffffffffffffffffffffffffffffff73c0c716a594e00d54e3c4cbc9018302821d7ffffffffffffffffffffffffffffffffffffffdc7b88c420e53a9890533129f6f01830290911d7fffffffffffffffffffffffffffffffffffffff465fda27eb4d63ded474e5f832019091027ffffffffffffffff5f6af8f7b3396644f18e157960000000000000000000000000105711340daa0d5f769dba1915cef59f0815a5506029190037d0267a36c0c95b3975ab3ee5b203a7614a3f75373f047d803ae7b6687f2b302017d57115e47018c7177eebf7cd370a3356a1b7863008a5ae8028c72b88642840160ae1d90565b60007812725dd1d243aba0e75fe645cc4873f9e65afe688c928e1f218311670de0b6b3a764000002158202613ce857637c5f487d6000526004601cfd5b50670de0b6b3a7640000919091020490565b600081600019048311820215613d185763bac65e5b6000526004601cfd5b50670de0b6b3a764000091020490565b60007ffffffffffffffffffffffffffffffffffffffffffffffffdc0d0570925a462d78213613d5657919050565b680755bf798b4a1bf1e58212613d745763a37bfec96000526004601cfd5b6503782dace9d9604e83901b059150600060606bb17217f7d1cf79abc9e3b39884821b056b80000000000000000000000001901d6bb17217f7d1cf79abc9e3b39881029093037fffffffffffffffffffffffffffffffffffffffdbf3ccf1604d263450f02a550481018102606090811d6d0277594991cfc85f6e2461837cd9018202811d7fffffffffffffffffffffffffffffffffffffe5adedaa1cb095af9e4da10e363c018202811d6db1bbb201f443cf962f1a1d3db4a5018202811d7ffffffffffffffffffffffffffffffffffffd38dc772608b0ae56cce01296c0eb018202811d6e05180bb14799ab47a8a8cb2a527d57016d02d16720577bd19bf614176fe9ea6c10fe68e7fd37d0007b713f765084018402831d9081019084017ffffffffffffffffffffffffffffffffffffffe2c69812cf03b0763fd454a8f7e010290911d6e0587f503bb6ea29d25fcb7401964500190910279d835ebba824c98fb31b83b2ca45c000000000000000000000000010574029d9dc38563c32e5c2f6dc192ee70ef65f9978af30260c3939093039290921c92915050565b600061266e670de0b6b3a764000083613f2886613a59565b613f329190615a2d565b613f3c9190615ae9565b613d28565b60008054600160801b900460ff166002811115613f6057613f60615391565b14613f7e5760405163067fe19560e41b815260040160405180910390fd5b600060028781548110613f9357613f93615604565b6000918252602082206005919091020160048101549092506001600160801b0316908715821760011b9050613fe97f00000000000000000000000000000000000000000000000000000000000000006001615662565b614063826001600160801b03167e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b60ff161461409d576040517f5f53dd9800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000808915614179576140f07f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006158b0565b6001901b614106846001600160801b0316614edc565b6001600160801b03166141199190615b33565b1561414d5761414461413560016001600160801b038716615b47565b865463ffffffff166000614f62565b6003015461416f565b7f00000000000000000000000000000000000000000000000000000000000000005b915084905061419a565b600385015491506141976141356001600160801b0386166001615b67565b90505b600882901b60088a8a6040516141b1929190615883565b6040518091039020901b146141f2576040517f696550ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006141fd8c61502b565b9050600061420c836003015490565b6040517fe14ced320000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e14ced3290614279908f908f908f908f908a90600401615bb4565b6020604051808303816000875af1158015614298573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142bc9190615929565b600485015491149150600090600290614345906001600160801b03167e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b6143bf896001600160801b03167e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b6143c99190615bee565b6143d39190615c11565b60ff161590508115158103614414576040517ffb4e40dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b875464010000000090046001600160a01b03161561445e576040517f9071e6af00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505085547fffffffffffffffff0000000000000000000000000000000000000000ffffffff163364010000000002179095555050505050505050505050565b60008060008060008590506000600282815481106144bd576144bd615604565b600091825260209091206004600590920201908101549091507f000000000000000000000000000000000000000000000000000000000000000090614572906001600160801b03167e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b60ff16116145ac576040517fb34b5c2200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000815b60048301547f000000000000000000000000000000000000000000000000000000000000000090614651906001600160801b03167e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b60ff1692508211156146c657825463ffffffff166146907f00000000000000000000000000000000000000000000000000000000000000006001615662565b830361469a578391505b600281815481106146ad576146ad615604565b90600052602060002090600502019350809450506145b0565b600481810154908401546001600160801b0391821691166000816001600160801b031661470b6146ff856001600160801b031660011c90565b6001600160801b031690565b6001600160801b031614905080156147a4576000614731836001600160801b0316614edc565b6001600160801b0316111561478157600061476161475960016001600160801b038616615b47565b896001614f62565b6003810154600490910154909c506001600160801b03169a506147879050565b6008549a505b600386015460048701549099506001600160801b031697506147e8565b60006147bd6147596001600160801b0385166001615b67565b6003808901546004808b015492840154930154909e506001600160801b039182169d50919b50169850505b505050505050509193509193565b60006001600160801b038416156148515760408051602081018790526001600160801b038087169282019290925260608101859052908316608082015260a00160405160208183030381529060405280519060200120611ac3565b82826040516020016148769291909182526001600160801b0316602082015260400190565b6040516020818303038152906040528051906020012095945050505050565b600080614909847e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b60ff1690508083036001841b600180831b0386831b17039250505092915050565b6000806000808460000151116149825760405162461bcd60e51b815260206004820152601860248201527f524c50206974656d2063616e6e6f74206265206e756c6c2e0000000000000000604482015260640161283b565b6020840151805160001a607f81116149a7576000600160009450945094505050614c74565b60b78111614a235760006149bc6080836158b0565b905080876000015111614a115760405162461bcd60e51b815260206004820152601960248201527f496e76616c696420524c502073686f727420737472696e672e00000000000000604482015260640161283b565b60019550935060009250614c74915050565b60bf8111614b12576000614a3860b7836158b0565b905080876000015111614a8d5760405162461bcd60e51b815260206004820152601f60248201527f496e76616c696420524c50206c6f6e6720737472696e67206c656e6774682e00604482015260640161283b565b600183015160208290036101000a9004614aa78183615662565b885111614af65760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420524c50206c6f6e6720737472696e672e0000000000000000604482015260640161283b565b614b01826001615662565b9650945060009350614c7492505050565b60f78111614b8d576000614b2760c0836158b0565b905080876000015111614b7c5760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420524c502073686f7274206c6973742e000000000000000000604482015260640161283b565b600195509350849250614c74915050565b6000614b9a60f7836158b0565b905080876000015111614bef5760405162461bcd60e51b815260206004820152601d60248201527f496e76616c696420524c50206c6f6e67206c697374206c656e6774682e000000604482015260640161283b565b600183015160208290036101000a9004614c098183615662565b885111614c585760405162461bcd60e51b815260206004820152601660248201527f496e76616c696420524c50206c6f6e67206c6973742e00000000000000000000604482015260640161283b565b614c63826001615662565b9650945060019350614c7492505050565b9193909250565b606060008267ffffffffffffffff811115614c9857614c98615694565b6040519080825280601f01601f191660200182016040528015614cc2576020820181803683370190505b5090508051600003614cd5579050614d4f565b6000614ce18587615662565b90506020820160005b614cf56020876158f6565b811015614d2c5782518252614d0b602084615662565b9250614d18602083615662565b915080614d248161567a565b915050614cea565b5080519151601f86166020036101000a6000190192831692191691909117905290505b9392505050565b6000614d6c6001600160801b0384166001615b67565b90506000614d7c82866001614f62565b9050600086901a8380614e465750614db560027f0000000000000000000000000000000000000000000000000000000000000000615b33565b6004830154600290614e37906001600160801b03167e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b614e419190615c11565b60ff16145b15614e9e5760ff811660011480614e60575060ff81166002145b614e99576040517ff40239db0000000000000000000000000000000000000000000000000000000081526004810188905260240161283b565b61274c565b60ff81161561274c576040517ff40239db0000000000000000000000000000000000000000000000000000000081526004810188905260240161283b565b600080614f50837e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b600160ff919091161b90920392915050565b60008082614fa257614f9d6001600160801b0386167f000000000000000000000000000000000000000000000000000000000000000061505a565b614fb4565b614fb4856001600160801b0316615199565b905060028481548110614fc957614fc9615604565b906000526020600020906005020191505b60048201546001600160801b0382811691161461502357815460028054909163ffffffff1690811061500e5761500e615604565b90600052602060002090600502019150614fda565b509392505050565b600080600080600061503c8661449d565b9350935093509350615050848484846147f6565b9695505050505050565b6000816150d7846001600160801b03167e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b60ff16116150ed5763b34b5c226000526004601cfd5b6150f683615199565b905081615173826001600160801b03167e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b60ff16116126715761266e615189836001615662565b6001600160801b03831690615225565b60008119600183011681615214827e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b60ff169390931c8015179392505050565b600080615299847e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b60ff169050808303600180821b0385821b179250505092915050565b600080604083850312156152c857600080fd5b50508035926020909101359150565b60008083601f8401126152e957600080fd5b50813567ffffffffffffffff81111561530157600080fd5b60208301915083602082850101111561531957600080fd5b9250929050565b60008060006040848603121561533557600080fd5b833567ffffffffffffffff8082111561534d57600080fd5b9085019060a0828803121561536157600080fd5b9093506020850135908082111561537757600080fd5b50615384868287016152d7565b9497909650939450505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60208101600383106153fb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b60008060006060848603121561541657600080fd5b505081359360208301359350604090920135919050565b6000815180845260005b8181101561545357602081850181015186830182015201615437565b81811115615465576000602083870101525b50601f01601f19169290920160200192915050565b60208152600061266e602083018461542d565b60006020828403121561549f57600080fd5b5035919050565b6001600160a01b03811681146154bb57600080fd5b50565b6000602082840312156154d057600080fd5b8135614d4f816154a6565b80151581146154bb57600080fd5b600080600080608085870312156154ff57600080fd5b843593506020850135925060408501359150606085013561551f816154db565b939692955090935050565b60006020828403121561553c57600080fd5b81356001600160801b0381168114614d4f57600080fd5b6000806000806000806080878903121561556c57600080fd5b86359550602087013561557e816154db565b9450604087013567ffffffffffffffff8082111561559b57600080fd5b6155a78a838b016152d7565b909650945060608901359150808211156155c057600080fd5b506155cd89828a016152d7565b979a9699509497509295939492505050565b63ffffffff84168152826020820152606060408201526000611ac3606083018461542d565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000821982111561567557615675615633565b500190565b6000600019820361568d5761568d615633565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160a0810167ffffffffffffffff811182821017156156e6576156e6615694565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561571557615715615694565b604052919050565b600060a0823603121561572f57600080fd5b6157376156c3565b82358152602080840135818301526040840135604083015260608401356060830152608084013567ffffffffffffffff8082111561577457600080fd5b9085019036601f83011261578757600080fd5b81358181111561579957615799615694565b6157ab84601f19601f840116016156ec565b915080825236848285010111156157c157600080fd5b808484018584013760009082019093019290925250608082015292915050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261581657600080fd5b83018035915067ffffffffffffffff82111561583157600080fd5b60200191503681900382131561531957600080fd5b6000806000806080858703121561585c57600080fd5b84359350602085013561586e816154a6565b93969395505050506040820135916060013590565b8183823760009101908152919050565b6000602082840312156158a557600080fd5b8151614d4f816154a6565b6000828210156158c2576158c2615633565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082615905576159056158c7565b500490565b600081600019048311821515161561592457615924615633565b500290565b60006020828403121561593b57600080fd5b5051919050565b848152836020820152826040820152608060608201526000615050608083018461542d565b600067ffffffffffffffff80831681851680830382111561598a5761598a615633565b01949350505050565b600067ffffffffffffffff808316818516818304811182151516156159ba576159ba615633565b02949350505050565b600067ffffffffffffffff838116908316818110156159e4576159e4615633565b039392505050565b600080604083850312156159ff57600080fd5b505080516020909101519092909150565b600060208284031215615a2257600080fd5b8151614d4f816154db565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600084136000841385830485118282161615615a6e57615a6e615633565b7f80000000000000000000000000000000000000000000000000000000000000006000871286820588128184161615615aa957615aa9615633565b60008712925087820587128484161615615ac557615ac5615633565b87850587128184161615615adb57615adb615633565b505050929093029392505050565b600082615af857615af86158c7565b60001983147f800000000000000000000000000000000000000000000000000000000000000083141615615b2e57615b2e615633565b500590565b600082615b4257615b426158c7565b500690565b60006001600160801b03838116908316818110156159e4576159e4615633565b60006001600160801b0380831681851680830382111561598a5761598a615633565b818352818160208501375060006020828401015260006020601f19601f840116840101905092915050565b606081526000615bc8606083018789615b89565b8281036020840152615bdb818688615b89565b9150508260408301529695505050505050565b600060ff821660ff841680821015615c0857615c08615633565b90039392505050565b600060ff831680615c2457615c246158c7565b8060ff8416069150509291505056fea2646970667358221220eb9953278b17f4c8dc6bfb8f75c745373d79f32536ff5684ab67e36680fff91a64736f6c634300080f0033",
  "deployedBytecode": "0x6080604052600436106103085760003560e01c806370872aa51161019a578063c6f0308c116100e1578063ec5e63081161008a578063fa24f74311610064578063fa24f74314610a95578063fa315aa914610ab9578063fe2bbeb214610aec57600080fd5b8063ec5e630814610a12578063eff0f59214610a45578063f8f43ff614610a7557600080fd5b8063d6ae3cd5116100bb578063d6ae3cd51461098c578063d8cc1a3c146109bf578063dabd396d146109df57600080fd5b8063c6f0308c146108ca578063cf09e0d01461093e578063d5d44d801461095f57600080fd5b8063a445ece611610143578063bcef3b551161011d578063bcef3b5514610868578063bd8da9561461088a578063c395e1ca146108aa57600080fd5b8063a445ece614610754578063a8e4fb90146107f4578063bbdc02db1461082757600080fd5b80638980e0cc116101745780638980e0cc146106ea5780638b85902b146106ff5780638d450a951461072157600080fd5b806370872aa5146106ba5780637b0f0adc146106cf5780638129fc1c146106e257600080fd5b80633fc8cef31161025e5780635a5fa2d9116102075780636361506d116101e15780636361506d146106525780636b6716c0146106745780636f034409146106a757600080fd5b80635a5fa2d9146105fd578063609d33341461061d57806360e274641461063257600080fd5b8063543acd5011610238578063543acd501461056257806354fd4d501461057757806357da950e146105cd57600080fd5b80633fc8cef3146104e9578063472777c61461051c578063534db0e21461052f57600080fd5b80632810e1d6116102c057806337b1b2291161029a57806337b1b229146104545780633a768463146104765780633e3ac912146104a957600080fd5b80632810e1d6146103e75780632ad69aeb146103fc57806330dbe5701461041c57600080fd5b80631e31db5a116102f15780631e31db5a1461037a578063200d2ed21461039a57806325fc2ace146103c857600080fd5b806303c2924d1461030d57806319effeb41461032f575b600080fd5b34801561031957600080fd5b5061032d6103283660046152b5565b610b1c565b005b34801561033b57600080fd5b5060005461035c9068010000000000000000900467ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020015b60405180910390f35b34801561038657600080fd5b5061032d610395366004615320565b6110e0565b3480156103a657600080fd5b506000546103bb90600160801b900460ff1681565b60405161037191906153c0565b3480156103d457600080fd5b506008545b604051908152602001610371565b3480156103f357600080fd5b506103bb61141a565b34801561040857600080fd5b506103d96104173660046152b5565b611971565b34801561042857600080fd5b5060015461043c906001600160a01b031681565b6040516001600160a01b039091168152602001610371565b34801561046057600080fd5b503660011981013560f01c90033560601c61043c565b34801561048257600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061043c565b3480156104b557600080fd5b506000546104d9907201000000000000000000000000000000000000900460ff1681565b6040519015158152602001610371565b3480156104f557600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061043c565b61032d61052a366004615401565b6119a7565b34801561053b57600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061043c565b34801561056e57600080fd5b5061043c6119b9565b34801561058357600080fd5b506105c06040518060400160405280600a81526020017f312e332e302d72632e310000000000000000000000000000000000000000000081525081565b604051610371919061547a565b3480156105d957600080fd5b506008546009546105e8919082565b60408051928352602083019190915201610371565b34801561060957600080fd5b506103d961061836600461548d565b611a92565b34801561062957600080fd5b506105c0611acc565b34801561063e57600080fd5b5061032d61064d3660046154be565b611ada565b34801561065e57600080fd5b503660011981013560f01c9003603401356103d9565b34801561068057600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061035c565b61032d6106b53660046154e9565b611c5a565b3480156106c657600080fd5b506009546103d9565b61032d6106dd366004615401565b611d01565b61032d611d0e565b3480156106f657600080fd5b506002546103d9565b34801561070b57600080fd5b503660011981013560f01c9003605401356103d9565b34801561072d57600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006103d9565b34801561076057600080fd5b506107b661076f36600461548d565b6007602052600090815260409020805460019091015460ff821691610100810463ffffffff1691650100000000009091046001600160801b0316906001600160a01b031684565b60408051941515855263ffffffff90931660208501526001600160801b03909116918301919091526001600160a01b03166060820152608001610371565b34801561080057600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061043c565b34801561083357600080fd5b5060405163ffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152602001610371565b34801561087457600080fd5b503660011981013560f01c9003601401356103d9565b34801561089657600080fd5b5061035c6108a536600461548d565b611d7a565b3480156108b657600080fd5b506103d96108c536600461552a565b611f14565b3480156108d657600080fd5b506108ea6108e536600461548d565b612115565b6040805163ffffffff90981688526001600160a01b03968716602089015295909416948601949094526001600160801b039182166060860152608085015291821660a08401521660c082015260e001610371565b34801561094a57600080fd5b5060005461035c9067ffffffffffffffff1681565b34801561096b57600080fd5b506103d961097a3660046154be565b60036020526000908152604090205481565b34801561099857600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006103d9565b3480156109cb57600080fd5b5061032d6109da366004615553565b612189565b3480156109eb57600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061035c565b348015610a1e57600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006103d9565b348015610a5157600080fd5b506104d9610a6036600461548d565b60046020526000908152604090205460ff1681565b348015610a8157600080fd5b5061032d610a90366004615401565b612234565b348015610aa157600080fd5b50610aaa61261a565b604051610371939291906155df565b348015610ac557600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006103d9565b348015610af857600080fd5b506104d9610b0736600461548d565b60066020526000908152604090205460ff1681565b60008054600160801b900460ff166002811115610b3b57610b3b615391565b14610b595760405163067fe19560e41b815260040160405180910390fd5b600060028381548110610b6e57610b6e615604565b906000526020600020906005020190506000610b8984611d7a565b905067ffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081169082161015610bf2576040517ff2440b5300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008481526006602052604090205460ff1615610c3b576040517ff1a9458100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000848152600560205260409020805480158015610c5857508515155b15610cd957835464010000000090046001600160a01b031660008115610c7e5781610c8d565b60018601546001600160a01b03165b9050610c998187612677565b50505060009485525050600660205250506040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6000868152600760209081526040918290208251608081018452815460ff81161515808352610100820463ffffffff16948301949094526501000000000090046001600160801b031693810193909352600101546001600160a01b03166060830152610d5d576001600160801b036040820152600181526000869003610d5d578195505b600086826020015163ffffffff16610d759190615662565b90506000838211610d865781610d88565b835b602084015190915063ffffffff165b81811015610ea8576000868281548110610db357610db3615604565b6000918252602080832090910154808352600690915260409091205490915060ff16610e0b576040517f9a07664600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060028281548110610e2057610e20615604565b60009182526020909120600590910201805490915064010000000090046001600160a01b0316158015610e675750600481015460408701516001600160801b039182169116115b15610e935760018101546001600160a01b0316606087015260048101546001600160801b031660408701525b50508080610ea09061567a565b915050610d97565b5063ffffffff818116602085810191825260008c81526007909152604090819020865181549351928801517fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000009094169015157fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ff161761010092909416918202939093177fffffffffffffffffffffff00000000000000000000000000000000ffffffffff16650100000000006001600160801b03909316929092029190911782556060850151600190920180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03909316929092179091558490036110d557606083015160008a815260066020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558915801561101257506000547201000000000000000000000000000000000000900460ff165b1561106d576001546001600160a01b031661102d818a612677565b88546001600160a01b03909116640100000000027fffffffffffffffff0000000000000000000000000000000000000000ffffffff9091161788556110d3565b61109a6001600160a01b038216156110855781611094565b60018901546001600160a01b03165b89612677565b87547fffffffffffffffff0000000000000000000000000000000000000000ffffffff166401000000006001600160a01b038316021788555b505b505050505050505050565b60008054600160801b900460ff1660028111156110ff576110ff615391565b1461111d5760405163067fe19560e41b815260040160405180910390fd5b6000547201000000000000000000000000000000000000900460ff1615611170576040517f0ea2e75200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111893660011981013560f01c90036014013590565b90565b61119a6111958561571d565b612755565b146111d1576040517f9cc00b5b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006111e060808501856157e1565b8101906111ed9190615846565b5092505050808383604051611203929190615883565b604051809103902014611242576040517fd81d583b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061128b61128685858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061279b92505050565b6127c8565b905060006112b2826008815181106112a5576112a5615604565b60200260200101516129cc565b90506020815111156112f0576040517fd81d583b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b602081810151825190910360031b1c3660011981013560f01c9003605401358103611347576040517fb8ed883000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61135660608801356001615662565b811080611373575061137060408801356060890135615662565b81115b156113aa576040517fd81d583b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050600180547fffffffffffffffffffffffff000000000000000000000000000000000000000016331790555050600080547fffffffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffff167201000000000000000000000000000000000000179055505050565b600080600054600160801b900460ff16600281111561143b5761143b615391565b146114595760405163067fe19560e41b815260040160405180910390fd5b6000805260066020527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f85460ff166114bd576040517f9a07664600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006001600160a01b031660026000815481106114dc576114dc615604565b600091825260209091206005909102015464010000000090046001600160a01b03161461150a57600161150d565b60025b6000805467ffffffffffffffff421668010000000000000000027fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff82168117835592935083927fffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffff000000000000000000ffffffffffffffff90911617600160801b8360028111156115b1576115b1615391565b0217905560028111156115c6576115c6615391565b6040517f5e186f09b9c93491f14e277eea7faa5de6a2d4bda75a79af7a3684fbfb42da6090600090a2600181600281111561160357611603615391565b0361118657604080518082018252601581527f4661756c7450726f6f664c6f636b696e67506f6f6c0000000000000000000000602082015290517fbf40fac10000000000000000000000000000000000000000000000000000000081526000916001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163bf40fac1916116a09160040161547a565b602060405180830381865afa1580156116bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e19190615893565b90506001600160a01b0381161561180c576000600260008154811061170857611708615604565b60009182526020909120600590910201546040517fc96be4cb0000000000000000000000000000000000000000000000000000000081526401000000009091046001600160a01b0390811660048301819052925083169063c96be4cb90602401600060405180830381600087803b15801561178257600080fd5b505af1925050508015611793575060015b61180a573d8080156117c1576040519150601f19603f3d011682016040523d82523d6000602084013e6117c6565b606091505b50816001600160a01b03167f17ea47b379a2daf87a43d9fe6e50400125dff97424a6a7686eca528970fffc0f82604051611800919061547a565b60405180910390a2505b505b604080518082018252601481527f5374617465436f6d6d69746d656e74436861696e000000000000000000000000602082015290517fbf40fac10000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163bf40fac1916118a2919060040161547a565b602060405180830381865afa1580156118bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e39190615893565b6001600160a01b0316637fe9b70f61191d600260008154811061190857611908615604565b90600052602060002090600502016003015490565b6040518263ffffffff1660e01b815260040161193b91815260200190565b600060405180830381600087803b15801561195557600080fd5b505af1158015611969573d6000803e3d6000fd5b505050505090565b6005602052816000526040600020818154811061198d57600080fd5b90600052602060002001600091509150505481565b905090565b6119b48383836001611c5a565b505050565b604080518082018252601481527f5374617465436f6d6d69746d656e74436861696e000000000000000000000000602082015290517fbf40fac10000000000000000000000000000000000000000000000000000000081526000916001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163bf40fac191611a519160040161547a565b602060405180830381865afa158015611a6e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119a29190615893565b60008181526007602090815260408083206005909252822080548254611ac390610100900463ffffffff16826158b0565b95945050505050565b60606119a260546020612a53565b6001600160a01b038116600090815260036020526040812080549082905590819003611b32576040517f17bfe5f700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517ff3fef3a30000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063f3fef3a390604401600060405180830381600087803b158015611bb557600080fd5b505af1158015611bc9573d6000803e3d6000fd5b505050506000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611c1a576040519150601f19603f3d011682016040523d82523d6000602084013e611c1f565b606091505b50509050806119b4576040517f83e6cc6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480611cb95750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b611cef576040517fd386ef3e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cfb84848484612a87565b50505050565b6119b48383836000611c5a565b326001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614611d70576040517fd386ef3e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611d7861341d565b565b600080600054600160801b900460ff166002811115611d9b57611d9b615391565b14611db95760405163067fe19560e41b815260040160405180910390fd5b600060028381548110611dce57611dce615604565b600091825260208220600590910201805490925063ffffffff90811614611e3457815460028054909163ffffffff16908110611e0c57611e0c615604565b906000526020600020906005020160040160109054906101000a90046001600160801b031690505b6004820154600090611e5f90600160801b900467ffffffffffffffff165b67ffffffffffffffff1690565b611e739067ffffffffffffffff16426158b0565b611e89611e52846001600160801b031660401c90565b67ffffffffffffffff16611e9d9190615662565b905067ffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001667ffffffffffffffff168167ffffffffffffffff1611611eea5780611ac3565b7f000000000000000000000000000000000000000000000000000000000000000095945050505050565b60006002600081548110611f2a57611f2a615604565b60009182526020909120600160059092020101546001600160a01b03163303611f5557506000919050565b6000611fd1836001600160801b03167e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b60ff1690507f0000000000000000000000000000000000000000000000000000000000000000811115612030576040517f56f57b2b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b642e90edd00062061a806311e1a300600061204b83836158f6565b9050670de0b6b3a76400006000612082827f000000000000000000000000000000000000000000000000000000000000000061590a565b905060006120a061209b670de0b6b3a76400008661590a565b613a59565b905060006120ae8484613cab565b905060006120bc8383613cfa565b905060006120c982613d28565b905060006120e8826120e3670de0b6b3a76400008f61590a565b613f10565b905060006120f68b83613cfa565b9050612102818d61590a565b9f9e505050505050505050505050505050565b6002818154811061212557600080fd5b60009182526020909120600590910201805460018201546002830154600384015460049094015463ffffffff841695506401000000009093046001600160a01b03908116949216926001600160801b03918216929180821691600160801b90041687565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806121e85750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b61221e576040517fd386ef3e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61222c868686868686613f41565b505050505050565b60008054600160801b900460ff16600281111561225357612253615391565b146122715760405163067fe19560e41b815260040160405180910390fd5b6000806000806122808661449d565b93509350935093506000612296858585856147f6565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637dc0d1d06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156122f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061231c9190615893565b9050600189036123e9576001600160a01b0381166352f0f3ad8a8461234d3660011981013560f01c90036034013590565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815260048101939093526024830191909152604482015260206064820152608481018a905260a4015b6020604051808303816000875af11580156123bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123e39190615929565b506110d5565b60028903612408576001600160a01b0381166352f0f3ad8a848961234d565b60038903612427576001600160a01b0381166352f0f3ad8a848761234d565b6004890361255c5760006124646001600160801b0385167f0000000000000000000000000000000000000000000000000000000000000000614895565b6009546124719190615662565b61247c906001615662565b90503660011981013560f01c90036054013581106124a9573660011981013560f01c9003605401356124ab565b805b90506001600160a01b0382166352f0f3ad8b8560405160e084901b7fffffffff000000000000000000000000000000000000000000000000000000001681526004810192909252602482015260c084901b604482015260086064820152608481018b905260a4016020604051808303816000875af1158015612531573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125559190615929565b50506110d5565b600589036125e8576040517f52f0f3ad000000000000000000000000000000000000000000000000000000008152600481018a9052602481018390527f000000000000000000000000000000000000000000000000000000000000000060c01b604482015260086064820152608481018890526001600160a01b038216906352f0f3ad9060a4016123a0565b6040517fff137e6500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000003660011981013560f01c9003601401356060612655611acc565b9050909192565b60008183101561266c578161266e565b825b90505b92915050565b60028101546001600160a01b038316600090815260036020526040812080546001600160801b03909316928392906126b0908490615662565b90915550506040517f7eee288d0000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152602482018390527f00000000000000000000000000000000000000000000000000000000000000001690637eee288d90604401600060405180830381600087803b15801561273857600080fd5b505af115801561274c573d6000803e3d6000fd5b50505050505050565b6000816020015182604001518360600151846080015160405160200161277e9493929190615942565b604051602081830303815290604052805190602001209050919050565b60408051808201825260008082526020918201528151808301909252825182529182019181019190915290565b60606000806127d68461492a565b919350909150600190508160018111156127f2576127f2615391565b146128445760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420524c50206c6973742076616c75652e00000000000000000060448201526064015b60405180910390fd5b6040805160208082526104208201909252600091816020015b604080518082019091526000808252602082015281526020019060019003908161285d5790505090506000835b86518110156129c157602082106129095760405162461bcd60e51b815260206004820152602a60248201527f50726f766964656420524c50206c6973742065786365656473206d6178206c6960448201527f7374206c656e6774682e00000000000000000000000000000000000000000000606482015260840161283b565b6000806129466040518060400160405280858c6000015161292a91906158b0565b8152602001858c6020015161293f9190615662565b905261492a565b5091509150604051806040016040528083836129629190615662565b8152602001848b602001516129779190615662565b81525085858151811061298c5761298c615604565b60209081029190910101526129a2600185615662565b93506129ae8183615662565b6129b89084615662565b9250505061288a565b508152949350505050565b606060008060006129dc8561492a565b9194509250905060008160018111156129f7576129f7615391565b14612a445760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420524c502062797465732076616c75652e0000000000000000604482015260640161283b565b611ac385602001518484614c7b565b6040518181523660011981013560f01c90038284820160208401378260208301016000815260208101604052505092915050565b60008054600160801b900460ff166002811115612aa657612aa6615391565b14612ac45760405163067fe19560e41b815260040160405180910390fd5b600060028481548110612ad957612ad9615604565b60009182526020918290206040805160e0810182526005909302909101805463ffffffff811684526001600160a01b0364010000000090910481169484019490945260018101549093169082015260028201546001600160801b03908116606083015260038301546080830181905260049093015480821660a0840152600160801b90041660c082015291508514612b9d576040517f3014033200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60a0810151600083156001600160801b0383161760011b90506000612c32826001600160801b03167e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b60ff169050861580612c6d5750612c6a7f00000000000000000000000000000000000000000000000000000000000000006002615662565b81145b8015612c77575084155b15612cae576040517fa42637bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000547201000000000000000000000000000000000000900460ff168015612cd4575086155b15612d0b576040517f0ea2e75200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000811115612d65576040517f56f57b2b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612d907f00000000000000000000000000000000000000000000000000000000000000006001615662565b8103612da257612da286888588614d56565b34612dac83611f14565b14612de3576040517f8620aa1900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612dee88611d7a565b905067ffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811690821603612e56576040517f3381d11400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612e8360017f00000000000000000000000000000000000000000000000000000000000000006158b0565b8303612fa7577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637dc0d1d06040518163ffffffff1660e01b8152600401602060405180830381865afa158015612ee7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f0b9190615893565b6001600160a01b031663f3f480d96040518163ffffffff1660e01b8152600401602060405180830381865afa158015612f48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f6c9190615929565b612fa0907f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff16615967565b905061303a565b612fd260017f00000000000000000000000000000000000000000000000000000000000000006158b0565b830361300d57612fa07f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff166002615993565b507f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff165b61306e817f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff166159c3565b67ffffffffffffffff166130898367ffffffffffffffff1690565b67ffffffffffffffff1611156130d0576130cd817f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff166159c3565b91505b6000604083901b421760008a8152608087901b6001600160801b038d1617602052604081209192509060008181526004602052604090205490915060ff1615613145576040517f80497e3b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016004600083815260200190815260200160002060006101000a81548160ff02191690831515021790555060026040518060e001604052808d63ffffffff16815260200160006001600160a01b03168152602001336001600160a01b03168152602001346001600160801b031681526020018c8152602001886001600160801b03168152602001846001600160801b0316815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a8154816001600160a01b0302191690836001600160a01b0316021790555060408201518160010160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060608201518160020160006101000a8154816001600160801b0302191690836001600160801b031602179055506080820151816003015560a08201518160040160006101000a8154816001600160801b0302191690836001600160801b0316021790555060c08201518160040160106101000a8154816001600160801b0302191690836001600160801b031602179055505050600560008c8152602001908152602001600020600160028054905061333c91906158b0565b81546001810183556000928352602083200155604080517fd0e30db000000000000000000000000000000000000000000000000000000000815290516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169263d0e30db09234926004808301939282900301818588803b1580156133c757600080fd5b505af11580156133db573d6000803e3d6000fd5b50506040513393508d92508e91507f9b3245740ec3b155098a55be84957a4da13eaf7f14a8bc6f53126c0b9350f2be90600090a4505050505050505050505050565b60005471010000000000000000000000000000000000900460ff161561346f576040517f0dc149f000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080518082018252601481527f5374617465436f6d6d69746d656e74436861696e000000000000000000000000602082015290517fbf40fac10000000000000000000000000000000000000000000000000000000081526000916001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163bf40fac1916135079160040161547a565b602060405180830381865afa158015613524573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135489190615893565b6040517fa0832c030000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015290915060009081906001600160a01b0384169063a0832c03906024016040805180830381865afa1580156135cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135f091906159ec565b9092509050818061362d576040517f6a6bc3b200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f5fc993dd000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b03851690635fc993dd90602401602060405180830381865afa15801561368b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136af9190615a10565b156136e6576040517ff1a9458100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080518082019091528181526020018290526008819055600982905536607a1461371957639824bdab6000526004601cfd5b813660011981013560f01c90036054013511613772576040517ff40239db0000000000000000000000000000000000000000000000000000000081523660011981013560f01c900360140135600482015260240161283b565b6040805160e08101825263ffffffff808252600060208301818152600119369081013560f01c90038035606090811c868801908152346001600160801b0381811693890193845260149094013560808901908152600160a08a0181815242871660c08c019081526002805493840181558a529a5160059092027f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace8101805499516001600160a01b03908116640100000000027fffffffffffffffff000000000000000000000000000000000000000000000000909b1694909c16939093179890981790915592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf87018054918a167fffffffffffffffffffffffff000000000000000000000000000000000000000090921691909117905592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad0860180549186167fffffffffffffffffffffffffffffffff0000000000000000000000000000000090921691909117905591517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad18501555195518216600160801b0295909116949094177f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad29091015580547fffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffffffff167101000000000000000000000000000000000017815583517fd0e30db000000000000000000000000000000000000000000000000000000000815293517f00000000000000000000000000000000000000000000000000000000000000009092169363d0e30db093926004828101939282900301818588803b158015613a0657600080fd5b505af1158015613a1a573d6000803e3d6000fd5b5050600080547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000164267ffffffffffffffff1617905550505050505050565b6001600160801b03811160071b81811c67ffffffffffffffff1060061b1781811c63ffffffff1060051b1781811c61ffff1060041b1781811c60ff1060031b1760008213613aaf57631615e6386000526004601cfd5b7ff8f9f9faf9fdfafbf9fdfcfdfafbfcfef9fafdfafcfcfbfefafafcfbffffffff6f8421084210842108cc6318c6db6d54be83831c1c601f161a1890811b609f90811c6c465772b2bbbb5f824b15207a3081018102606090811d6d0388eaa27412d5aca026815d636e018202811d6d0df99ac502031bf953eff472fdcc018202811d6d13cdffb29d51d99322bdff5f2211018202811d6d0a0f742023def783a307a986912e018202811d6d01920d8043ca89b5239253284e42018202811d6c0b7a86d7375468fac667a0a527016c29508e458543d8aa4df2abee7883018302821d6d0139601a2efabe717e604cbb4894018302821d6d02247f7a7b6594320649aa03aba1018302821d7fffffffffffffffffffffffffffffffffffffff73c0c716a594e00d54e3c4cbc9018302821d7ffffffffffffffffffffffffffffffffffffffdc7b88c420e53a9890533129f6f01830290911d7fffffffffffffffffffffffffffffffffffffff465fda27eb4d63ded474e5f832019091027ffffffffffffffff5f6af8f7b3396644f18e157960000000000000000000000000105711340daa0d5f769dba1915cef59f0815a5506029190037d0267a36c0c95b3975ab3ee5b203a7614a3f75373f047d803ae7b6687f2b302017d57115e47018c7177eebf7cd370a3356a1b7863008a5ae8028c72b88642840160ae1d90565b60007812725dd1d243aba0e75fe645cc4873f9e65afe688c928e1f218311670de0b6b3a764000002158202613ce857637c5f487d6000526004601cfd5b50670de0b6b3a7640000919091020490565b600081600019048311820215613d185763bac65e5b6000526004601cfd5b50670de0b6b3a764000091020490565b60007ffffffffffffffffffffffffffffffffffffffffffffffffdc0d0570925a462d78213613d5657919050565b680755bf798b4a1bf1e58212613d745763a37bfec96000526004601cfd5b6503782dace9d9604e83901b059150600060606bb17217f7d1cf79abc9e3b39884821b056b80000000000000000000000001901d6bb17217f7d1cf79abc9e3b39881029093037fffffffffffffffffffffffffffffffffffffffdbf3ccf1604d263450f02a550481018102606090811d6d0277594991cfc85f6e2461837cd9018202811d7fffffffffffffffffffffffffffffffffffffe5adedaa1cb095af9e4da10e363c018202811d6db1bbb201f443cf962f1a1d3db4a5018202811d7ffffffffffffffffffffffffffffffffffffd38dc772608b0ae56cce01296c0eb018202811d6e05180bb14799ab47a8a8cb2a527d57016d02d16720577bd19bf614176fe9ea6c10fe68e7fd37d0007b713f765084018402831d9081019084017ffffffffffffffffffffffffffffffffffffffe2c69812cf03b0763fd454a8f7e010290911d6e0587f503bb6ea29d25fcb7401964500190910279d835ebba824c98fb31b83b2ca45c000000000000000000000000010574029d9dc38563c32e5c2f6dc192ee70ef65f9978af30260c3939093039290921c92915050565b600061266e670de0b6b3a764000083613f2886613a59565b613f329190615a2d565b613f3c9190615ae9565b613d28565b60008054600160801b900460ff166002811115613f6057613f60615391565b14613f7e5760405163067fe19560e41b815260040160405180910390fd5b600060028781548110613f9357613f93615604565b6000918252602082206005919091020160048101549092506001600160801b0316908715821760011b9050613fe97f00000000000000000000000000000000000000000000000000000000000000006001615662565b614063826001600160801b03167e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b60ff161461409d576040517f5f53dd9800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000808915614179576140f07f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006158b0565b6001901b614106846001600160801b0316614edc565b6001600160801b03166141199190615b33565b1561414d5761414461413560016001600160801b038716615b47565b865463ffffffff166000614f62565b6003015461416f565b7f00000000000000000000000000000000000000000000000000000000000000005b915084905061419a565b600385015491506141976141356001600160801b0386166001615b67565b90505b600882901b60088a8a6040516141b1929190615883565b6040518091039020901b146141f2576040517f696550ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006141fd8c61502b565b9050600061420c836003015490565b6040517fe14ced320000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e14ced3290614279908f908f908f908f908a90600401615bb4565b6020604051808303816000875af1158015614298573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142bc9190615929565b600485015491149150600090600290614345906001600160801b03167e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b6143bf896001600160801b03167e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b6143c99190615bee565b6143d39190615c11565b60ff161590508115158103614414576040517ffb4e40dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b875464010000000090046001600160a01b03161561445e576040517f9071e6af00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505085547fffffffffffffffff0000000000000000000000000000000000000000ffffffff163364010000000002179095555050505050505050505050565b60008060008060008590506000600282815481106144bd576144bd615604565b600091825260209091206004600590920201908101549091507f000000000000000000000000000000000000000000000000000000000000000090614572906001600160801b03167e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b60ff16116145ac576040517fb34b5c2200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000815b60048301547f000000000000000000000000000000000000000000000000000000000000000090614651906001600160801b03167e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b60ff1692508211156146c657825463ffffffff166146907f00000000000000000000000000000000000000000000000000000000000000006001615662565b830361469a578391505b600281815481106146ad576146ad615604565b90600052602060002090600502019350809450506145b0565b600481810154908401546001600160801b0391821691166000816001600160801b031661470b6146ff856001600160801b031660011c90565b6001600160801b031690565b6001600160801b031614905080156147a4576000614731836001600160801b0316614edc565b6001600160801b0316111561478157600061476161475960016001600160801b038616615b47565b896001614f62565b6003810154600490910154909c506001600160801b03169a506147879050565b6008549a505b600386015460048701549099506001600160801b031697506147e8565b60006147bd6147596001600160801b0385166001615b67565b6003808901546004808b015492840154930154909e506001600160801b039182169d50919b50169850505b505050505050509193509193565b60006001600160801b038416156148515760408051602081018790526001600160801b038087169282019290925260608101859052908316608082015260a00160405160208183030381529060405280519060200120611ac3565b82826040516020016148769291909182526001600160801b0316602082015260400190565b6040516020818303038152906040528051906020012095945050505050565b600080614909847e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b60ff1690508083036001841b600180831b0386831b17039250505092915050565b6000806000808460000151116149825760405162461bcd60e51b815260206004820152601860248201527f524c50206974656d2063616e6e6f74206265206e756c6c2e0000000000000000604482015260640161283b565b6020840151805160001a607f81116149a7576000600160009450945094505050614c74565b60b78111614a235760006149bc6080836158b0565b905080876000015111614a115760405162461bcd60e51b815260206004820152601960248201527f496e76616c696420524c502073686f727420737472696e672e00000000000000604482015260640161283b565b60019550935060009250614c74915050565b60bf8111614b12576000614a3860b7836158b0565b905080876000015111614a8d5760405162461bcd60e51b815260206004820152601f60248201527f496e76616c696420524c50206c6f6e6720737472696e67206c656e6774682e00604482015260640161283b565b600183015160208290036101000a9004614aa78183615662565b885111614af65760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420524c50206c6f6e6720737472696e672e0000000000000000604482015260640161283b565b614b01826001615662565b9650945060009350614c7492505050565b60f78111614b8d576000614b2760c0836158b0565b905080876000015111614b7c5760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420524c502073686f7274206c6973742e000000000000000000604482015260640161283b565b600195509350849250614c74915050565b6000614b9a60f7836158b0565b905080876000015111614bef5760405162461bcd60e51b815260206004820152601d60248201527f496e76616c696420524c50206c6f6e67206c697374206c656e6774682e000000604482015260640161283b565b600183015160208290036101000a9004614c098183615662565b885111614c585760405162461bcd60e51b815260206004820152601660248201527f496e76616c696420524c50206c6f6e67206c6973742e00000000000000000000604482015260640161283b565b614c63826001615662565b9650945060019350614c7492505050565b9193909250565b606060008267ffffffffffffffff811115614c9857614c98615694565b6040519080825280601f01601f191660200182016040528015614cc2576020820181803683370190505b5090508051600003614cd5579050614d4f565b6000614ce18587615662565b90506020820160005b614cf56020876158f6565b811015614d2c5782518252614d0b602084615662565b9250614d18602083615662565b915080614d248161567a565b915050614cea565b5080519151601f86166020036101000a6000190192831692191691909117905290505b9392505050565b6000614d6c6001600160801b0384166001615b67565b90506000614d7c82866001614f62565b9050600086901a8380614e465750614db560027f0000000000000000000000000000000000000000000000000000000000000000615b33565b6004830154600290614e37906001600160801b03167e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b614e419190615c11565b60ff16145b15614e9e5760ff811660011480614e60575060ff81166002145b614e99576040517ff40239db0000000000000000000000000000000000000000000000000000000081526004810188905260240161283b565b61274c565b60ff81161561274c576040517ff40239db0000000000000000000000000000000000000000000000000000000081526004810188905260240161283b565b600080614f50837e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b600160ff919091161b90920392915050565b60008082614fa257614f9d6001600160801b0386167f000000000000000000000000000000000000000000000000000000000000000061505a565b614fb4565b614fb4856001600160801b0316615199565b905060028481548110614fc957614fc9615604565b906000526020600020906005020191505b60048201546001600160801b0382811691161461502357815460028054909163ffffffff1690811061500e5761500e615604565b90600052602060002090600502019150614fda565b509392505050565b600080600080600061503c8661449d565b9350935093509350615050848484846147f6565b9695505050505050565b6000816150d7846001600160801b03167e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b60ff16116150ed5763b34b5c226000526004601cfd5b6150f683615199565b905081615173826001600160801b03167e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b60ff16116126715761266e615189836001615662565b6001600160801b03831690615225565b60008119600183011681615214827e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b60ff169390931c8015179392505050565b600080615299847e09010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f6307c4acdd60e01b67ffffffffffffffff831160061b83811c63ffffffff1060051b1792831c600181901c17600281901c17600481901c17600881901c17601081901c170260fb1c1a1790565b60ff169050808303600180821b0385821b179250505092915050565b600080604083850312156152c857600080fd5b50508035926020909101359150565b60008083601f8401126152e957600080fd5b50813567ffffffffffffffff81111561530157600080fd5b60208301915083602082850101111561531957600080fd5b9250929050565b60008060006040848603121561533557600080fd5b833567ffffffffffffffff8082111561534d57600080fd5b9085019060a0828803121561536157600080fd5b9093506020850135908082111561537757600080fd5b50615384868287016152d7565b9497909650939450505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60208101600383106153fb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b60008060006060848603121561541657600080fd5b505081359360208301359350604090920135919050565b6000815180845260005b8181101561545357602081850181015186830182015201615437565b81811115615465576000602083870101525b50601f01601f19169290920160200192915050565b60208152600061266e602083018461542d565b60006020828403121561549f57600080fd5b5035919050565b6001600160a01b03811681146154bb57600080fd5b50565b6000602082840312156154d057600080fd5b8135614d4f816154a6565b80151581146154bb57600080fd5b600080600080608085870312156154ff57600080fd5b843593506020850135925060408501359150606085013561551f816154db565b939692955090935050565b60006020828403121561553c57600080fd5b81356001600160801b0381168114614d4f57600080fd5b6000806000806000806080878903121561556c57600080fd5b86359550602087013561557e816154db565b9450604087013567ffffffffffffffff8082111561559b57600080fd5b6155a78a838b016152d7565b909650945060608901359150808211156155c057600080fd5b506155cd89828a016152d7565b979a9699509497509295939492505050565b63ffffffff84168152826020820152606060408201526000611ac3606083018461542d565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000821982111561567557615675615633565b500190565b6000600019820361568d5761568d615633565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160a0810167ffffffffffffffff811182821017156156e6576156e6615694565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561571557615715615694565b604052919050565b600060a0823603121561572f57600080fd5b6157376156c3565b82358152602080840135818301526040840135604083015260608401356060830152608084013567ffffffffffffffff8082111561577457600080fd5b9085019036601f83011261578757600080fd5b81358181111561579957615799615694565b6157ab84601f19601f840116016156ec565b915080825236848285010111156157c157600080fd5b808484018584013760009082019093019290925250608082015292915050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261581657600080fd5b83018035915067ffffffffffffffff82111561583157600080fd5b60200191503681900382131561531957600080fd5b6000806000806080858703121561585c57600080fd5b84359350602085013561586e816154a6565b93969395505050506040820135916060013590565b8183823760009101908152919050565b6000602082840312156158a557600080fd5b8151614d4f816154a6565b6000828210156158c2576158c2615633565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082615905576159056158c7565b500490565b600081600019048311821515161561592457615924615633565b500290565b60006020828403121561593b57600080fd5b5051919050565b848152836020820152826040820152608060608201526000615050608083018461542d565b600067ffffffffffffffff80831681851680830382111561598a5761598a615633565b01949350505050565b600067ffffffffffffffff808316818516818304811182151516156159ba576159ba615633565b02949350505050565b600067ffffffffffffffff838116908316818110156159e4576159e4615633565b039392505050565b600080604083850312156159ff57600080fd5b505080516020909101519092909150565b600060208284031215615a2257600080fd5b8151614d4f816154db565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600084136000841385830485118282161615615a6e57615a6e615633565b7f80000000000000000000000000000000000000000000000000000000000000006000871286820588128184161615615aa957615aa9615633565b60008712925087820587128484161615615ac557615ac5615633565b87850587128184161615615adb57615adb615633565b505050929093029392505050565b600082615af857615af86158c7565b60001983147f800000000000000000000000000000000000000000000000000000000000000083141615615b2e57615b2e615633565b500590565b600082615b4257615b426158c7565b500690565b60006001600160801b03838116908316818110156159e4576159e4615633565b60006001600160801b0380831681851680830382111561598a5761598a615633565b818352818160208501375060006020828401015260006020601f19601f840116840101905092915050565b606081526000615bc8606083018789615b89565b8281036020840152615bdb818688615b89565b9150508260408301529695505050505050565b600060ff821660ff841680821015615c0857615c08615633565b90039392505050565b600060ff831680615c2457615c246158c7565b8060ff8416069150509291505056fea2646970667358221220eb9953278b17f4c8dc6bfb8f75c745373d79f32536ff5684ab67e36680fff91a64736f6c634300080f0033",
  "devdoc": {
    "errors": {
      "UnexpectedRootClaim(bytes32)": [
        {
          "params": {
            "rootClaim": "is the claim that was unexpected."
          }
        }
      ]
    },
    "kind": "dev",
    "methods": {
      "addLocalData(uint256,uint256,uint256)": {
        "params": {
          "_execLeafIdx": "The index of the leaf claim in an execution subgame that requires the local data for a step.",
          "_ident": "The local identifier of the data to post.",
          "_partOffset": "The offset of the data to post."
        }
      },
      "attack(bytes32,uint256,bytes32)": {
        "params": {
          "_claim": "The `Claim` at the relative attack position.",
          "_disputed": "The `Claim` being attacked.",
          "_parentIndex": "Index of the `Claim` to attack in the `claimData` array. This must match the `_disputed` claim."
        }
      },
      "challengeRootL2Block((uint256,bytes32,uint256,uint256,bytes),bytes)": {
        "params": {
          "_headerRLP": "The RLP-encoded L2 block header.",
          "_outputRootProof": "The output root proof."
        }
      },
      "claimCredit(address)": {
        "params": {
          "_recipient": "The owner and recipient of the credit."
        }
      },
      "constructor": {
        "params": {
          "_absolutePrestate": "The absolute prestate of the instruction trace.",
          "_addressManager": "Address manager contract.",
          "_challenger": "Address that is allowed to challenge instances of this contract.",
          "_clockExtension": "The clock extension to perform when the remaining duration is less than the extension.",
          "_gameType": "The type ID of the game.",
          "_l2ChainId": "Chain ID of the L2 network this contract argues about.",
          "_maxClockDuration": "The maximum amount of time that may accumulate on a team's chess clock.",
          "_maxGameDepth": "The maximum depth of bisection.",
          "_proposer": "Address that is allowed to create instances of this contract.",
          "_splitDepth": "The final depth of the output bisection portion of the game.",
          "_vm": "An onchain VM that performs single instruction steps on an FPP trace.",
          "_weth": "WETH contract for holding ETH."
        }
      },
      "defend(bytes32,uint256,bytes32)": {
        "params": {
          "_claim": "The `Claim` at the relative defense position.",
          "_parentIndex": "Index of the claim to defend in the `claimData` array. This must match the `_disputed` claim."
        }
      },
      "extraData()": {
        "details": "`clones-with-immutable-args` argument #4",
        "returns": {
          "extraData_": "Any extra data supplied to the dispute game contract by the creator."
        }
      },
      "gameCreator()": {
        "details": "`clones-with-immutable-args` argument #1",
        "returns": {
          "creator_": "The creator of the dispute game."
        }
      },
      "gameData()": {
        "returns": {
          "extraData_": "Any extra data supplied to the dispute game contract by the creator.",
          "gameType_": "The type of proof system being used.",
          "rootClaim_": "The root claim of the DisputeGame."
        }
      },
      "gameType()": {
        "details": "The reference impl should be entirely different depending on the type (fault, validity)      i.e. The game type should indicate the security model.",
        "returns": {
          "gameType_": "The type of proof system being used."
        }
      },
      "getChallengerDuration(uint256)": {
        "params": {
          "_claimIndex": "The index of the subgame root claim."
        },
        "returns": {
          "duration_": "The time elapsed on the potential challenger to `_claimIndex`'s chess clock."
        }
      },
      "getNumToResolve(uint256)": {
        "params": {
          "_claimIndex": "The subgame root claim's index within `claimData`."
        },
        "returns": {
          "numRemainingChildren_": "The number of children that still need to be checked to resolve the subgame."
        }
      },
      "getRequiredBond(uint128)": {
        "params": {
          "_position": "The position of the bonded interaction."
        },
        "returns": {
          "requiredBond_": "The required ETH bond for the given move, in wei."
        }
      },
      "initialize()": {
        "details": "This function may only be called once."
      },
      "l1Head()": {
        "details": "`clones-with-immutable-args` argument #3",
        "returns": {
          "l1Head_": "The parent hash of the L1 block when the dispute game was created."
        }
      },
      "move(bytes32,uint256,bytes32,bool)": {
        "params": {
          "_challengeIndex": "The index of the claim being moved against. This must match the `_disputed` claim.",
          "_claim": "The claim at the next logical position in the game.",
          "_isAttack": "Whether or not the move is an attack or defense."
        }
      },
      "resolve()": {
        "details": "May only be called if the `status` is `IN_PROGRESS`.",
        "returns": {
          "status_": "The status of the game after resolution."
        }
      },
      "resolveClaim(uint256,uint256)": {
        "details": "This function must be called bottom-up in the DAG      A subgame is a tree of claims that has a maximum depth of 1.      A subgame root claims is valid if, and only if, all of its child claims are invalid.      At the deepest level in the DAG, a claim is invalid if there's a successful step against it.",
        "params": {
          "_claimIndex": "The index of the subgame root claim to resolve.",
          "_numToResolve": "The number of subgames to resolve in this call. If the input is `0`, and this is the first                      page, this function will attempt to check all of the subgame's children at once."
        }
      },
      "rootClaim()": {
        "details": "`clones-with-immutable-args` argument #2",
        "returns": {
          "rootClaim_": "The root claim of the DisputeGame."
        }
      },
      "step(uint256,bool,bytes,bytes)": {
        "details": "This function should point to a fault proof processor in order to execute      a step in the fault proof program on-chain. The interface of the fault proof      processor contract should adhere to the `IBigStepper` interface.",
        "params": {
          "_claimIndex": "The index of the challenged claim within `claimData`.",
          "_isAttack": "Whether or not the step is an attack or a defense.",
          "_proof": "Proof to access memory nodes in the VM's merkle state tree.",
          "_stateData": "The stateData of the step is the preimage of the claim at the given        prestate, which is at `_stateIndex` if the move is an attack and `_claimIndex` if        the move is a defense. If the step is an attack on the first instruction, it is        the absolute prestate of the fault proof VM."
        }
      }
    },
    "title": "PermissionedDisputeGame",
    "version": 1
  },
  "userdoc": {
    "errors": {
      "AlreadyInitialized()": [
        {
          "notice": "Thrown when a dispute game has already been initialized."
        }
      ],
      "AnchorRootNotFound()": [
        {
          "notice": "Thrown when an anchor root is not found for a given game type."
        }
      ],
      "BadAuth()": [
        {
          "notice": "Thrown when an unauthorized address attempts to interact with the game."
        }
      ],
      "BlockNumberMatches()": [
        {
          "notice": "Thrown when there is a match between the block number in the output root proof and the block number         claimed in the dispute game."
        }
      ],
      "BondTransferFailed()": [
        {
          "notice": "Thrown when the transfer of credit to a recipient account reverts."
        }
      ],
      "CannotDefendRootClaim()": [
        {
          "notice": "Thrown when a defense against the root claim is attempted."
        }
      ],
      "ClaimAboveSplit()": [
        {
          "notice": "Thrown when a parent output root is attempted to be found on a claim that is in         the output root portion of the tree."
        }
      ],
      "ClaimAlreadyExists()": [
        {
          "notice": "Thrown when a claim is attempting to be made that already exists."
        }
      ],
      "ClaimAlreadyResolved()": [
        {
          "notice": "Thrown when resolving a claim that has already been resolved."
        }
      ],
      "ClockNotExpired()": [
        {
          "notice": "Thrown when the game is attempted to be resolved too early."
        }
      ],
      "ClockTimeExceeded()": [
        {
          "notice": "Thrown when a move is attempted to be made after the clock has timed out."
        }
      ],
      "DuplicateStep()": [
        {
          "notice": "Thrown when trying to step against a claim for a second time, after it has already been countered with         an instruction step."
        }
      ],
      "GameDepthExceeded()": [
        {
          "notice": "Thrown when a move is attempted to be made at or greater than the max depth of the game."
        }
      ],
      "GameNotInProgress()": [
        {
          "notice": "Thrown when an action that requires the game to be `IN_PROGRESS` is invoked when         the game is not in progress."
        }
      ],
      "IncorrectBondAmount()": [
        {
          "notice": "Thrown when a supplied bond is not equal to the required bond amount to cover the cost of the interaction."
        }
      ],
      "InvalidChallengePeriod()": [
        {
          "notice": "Thrown on deployment if the PreimageOracle challenge period is too high."
        }
      ],
      "InvalidClockExtension()": [
        {
          "notice": "Thrown on deployment if the max clock duration is less than or equal to the clock extension."
        }
      ],
      "InvalidDisputedClaimIndex()": [
        {
          "notice": "Thrown when a disputed claim does not match its index in the game."
        }
      ],
      "InvalidHeaderRLP()": [
        {
          "notice": "Thrown when header RLP is invalid with respect to the block hash in an output root proof."
        }
      ],
      "InvalidLocalIdent()": [
        {
          "notice": "Thrown when an invalid local identifier is passed to the `addLocalData` function."
        }
      ],
      "InvalidOutputRootProof()": [
        {
          "notice": "Thrown when an output root proof is invalid."
        }
      ],
      "InvalidParent()": [
        {
          "notice": "Thrown when a step is attempted above the maximum game depth."
        }
      ],
      "InvalidPrestate()": [
        {
          "notice": "Thrown when an invalid prestate is supplied to `step`."
        }
      ],
      "InvalidSplitDepth()": [
        {
          "notice": "Thrown on deployment if the split depth is greater than or equal to the max         depth of the game."
        }
      ],
      "L2BlockNumberChallenged()": [
        {
          "notice": "Thrown when the L2 block number claim has already been challenged."
        }
      ],
      "MaxDepthTooLarge()": [
        {
          "notice": "Thrown on deployment if the max depth is greater than `LibPosition.`"
        }
      ],
      "NoCreditToClaim()": [
        {
          "notice": "Thrown when a credit claim is attempted for a value of 0."
        }
      ],
      "OutOfOrderResolution()": [
        {
          "notice": "Thrown when resolving claims out of order."
        }
      ],
      "UnexpectedRootClaim(bytes32)": [
        {
          "notice": "Thrown when the root claim has an unexpected VM status.         Some games can only start with a root-claim with a specific status."
        }
      ],
      "ValidStep()": [
        {
          "notice": "Thrown when a step is made that computes the expected post state correctly."
        }
      ]
    },
    "events": {
      "Move(uint256,bytes32,address)": {
        "notice": "Emitted when a new claim is added to the DAG by `claimant`"
      },
      "Resolved(uint8)": {
        "notice": "Emitted when the game is resolved."
      },
      "SlashingFailed(address,bytes)": {
        "notice": "Emitted when slashing fails"
      }
    },
    "kind": "user",
    "methods": {
      "absolutePrestate()": {
        "notice": "Returns the absolute prestate of the instruction trace."
      },
      "addLocalData(uint256,uint256,uint256)": {
        "notice": "Posts the requested local data to the VM's `PreimageOralce`."
      },
      "attack(bytes32,uint256,bytes32)": {
        "notice": "Attack a disagreed upon `Claim`."
      },
      "challengeRootL2Block((uint256,bytes32,uint256,uint256,bytes),bytes)": {
        "notice": "Challenges the root L2 block number by providing the preimage of the output root and the L2 block header         and showing that the committed L2 block number is incorrect relative to the claimed L2 block number."
      },
      "challenger()": {
        "notice": "Returns the challenger address."
      },
      "claimCredit(address)": {
        "notice": "Claim the credit belonging to the recipient address."
      },
      "claimData(uint256)": {
        "notice": "An append-only array of all claims made during the dispute game."
      },
      "claimDataLen()": {
        "notice": "Returns the length of the `claimData` array."
      },
      "claims(bytes32)": {
        "notice": "A mapping to allow for constant-time lookups of existing claims."
      },
      "clockExtension()": {
        "notice": "Returns the clock extension constant."
      },
      "createdAt()": {
        "notice": "The starting timestamp of the game"
      },
      "credit(address)": {
        "notice": "Credited balances for winning participants."
      },
      "defend(bytes32,uint256,bytes32)": {
        "notice": "Defend an agreed upon `Claim`._disputed The `Claim` being defended."
      },
      "extraData()": {
        "notice": "Getter for the extra data."
      },
      "gameCreator()": {
        "notice": "Getter for the creator of the dispute game."
      },
      "gameData()": {
        "notice": "A compliant implementation of this interface should return the components of the         game UUID's preimage provided in the cwia payload. The preimage of the UUID is         constructed as `keccak256(gameType . rootClaim . extraData)` where `.` denotes         concatenation."
      },
      "gameType()": {
        "notice": "Getter for the game type."
      },
      "getChallengerDuration(uint256)": {
        "notice": "Returns the amount of time elapsed on the potential challenger to `_claimIndex`'s chess clock. Maxes         out at `MAX_CLOCK_DURATION`."
      },
      "getNumToResolve(uint256)": {
        "notice": "Returns the number of children that still need to be resolved in order to fully resolve a subgame rooted         at `_claimIndex`."
      },
      "getRequiredBond(uint128)": {
        "notice": "Returns the required bond for a given move kind."
      },
      "initialize()": {
        "notice": "Initializes the contract."
      },
      "l1Head()": {
        "notice": "Getter for the parent hash of the L1 block when the dispute game was created."
      },
      "l2BlockNumber()": {
        "notice": "The l2BlockNumber of the disputed output root in the `L2OutputOracle`."
      },
      "l2BlockNumberChallenged()": {
        "notice": "Flag for whether or not the L2 block number claim has been invalidated via `challengeRootL2Block`."
      },
      "l2BlockNumberChallenger()": {
        "notice": "The challenger of the L2 block number claim. Should always be `address(0)` if `l2BlockNumberChallenged`         is `false`. Should be the address of the challenger if `l2BlockNumberChallenged` is `true`."
      },
      "l2ChainId()": {
        "notice": "Returns the chain ID of the L2 network this contract argues about."
      },
      "maxClockDuration()": {
        "notice": "Returns the max clock duration."
      },
      "maxGameDepth()": {
        "notice": "Returns the max game depth."
      },
      "move(bytes32,uint256,bytes32,bool)": {
        "notice": "Generic move function, used for both `attack` and `defend` moves._disputed The disputed `Claim`."
      },
      "proposer()": {
        "notice": "Returns the proposer address."
      },
      "resolutionCheckpoints(uint256)": {
        "notice": "A mapping of claim indices to resolution checkpoints."
      },
      "resolve()": {
        "notice": "If all necessary information has been gathered, this function should mark the game         status as either `CHALLENGER_WINS` or `DEFENDER_WINS` and return the status of         the resolved game. It is at this stage that the bonds should be awarded to the         necessary parties."
      },
      "resolveClaim(uint256,uint256)": {
        "notice": "Resolves the subgame rooted at the given claim index. `_numToResolve` specifies how many children of         the subgame will be checked in this call. If `_numToResolve` is less than the number of children, an         internal cursor will be updated and this function may be called again to complete resolution of the         subgame."
      },
      "resolvedAt()": {
        "notice": "The timestamp of the game's global resolution."
      },
      "resolvedSubgames(uint256)": {
        "notice": "A mapping of resolved subgames rooted at a claim index."
      },
      "rootClaim()": {
        "notice": "Getter for the root claim."
      },
      "scc()": {
        "notice": "Returns the anchor state registry contract."
      },
      "splitDepth()": {
        "notice": "Returns the split depth."
      },
      "startingBlockNumber()": {
        "notice": "Only the starting block number of the game."
      },
      "startingOutputRoot()": {
        "notice": "The latest finalized output root, serving as the anchor for output bisection."
      },
      "startingRootHash()": {
        "notice": "Only the starting output root of the game."
      },
      "status()": {
        "notice": "Returns the current status of the game."
      },
      "step(uint256,bool,bytes,bytes)": {
        "notice": "Perform an instruction step via an on-chain fault proof processor."
      },
      "subgames(uint256,uint256)": {
        "notice": "A mapping of subgames rooted at a claim index to other claim indices in the subgame."
      },
      "version()": {
        "notice": "Semantic version."
      },
      "vm()": {
        "notice": "Returns the address of the VM."
      },
      "weth()": {
        "notice": "Returns the WETH contract for holding ETH."
      }
    },
    "notice": "PermissionedDisputeGame is a contract that inherits from `FaultDisputeGame`, and contains two roles:         - The `challenger` role, which is allowed to challenge a dispute.         - The `proposer` role, which is allowed to create proposals and participate in their game.         This contract exists as a way for networks to support the fault proof iteration of the OptimismPortal         contract without needing to support a fully permissionless system. Permissionless systems can introduce         costs that certain networks may not wish to support. This contract can also be used as a fallback mechanism         in case of a failure in the permissionless fault proof system in the stage one release.",
    "version": 1
  },
  "storageLayout": {
    "storage": [
      {
        "astId": 11157,
        "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
        "label": "createdAt",
        "offset": 0,
        "slot": "0",
        "type": "t_userDefinedValueType(Timestamp)16000"
      },
      {
        "astId": 11161,
        "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
        "label": "resolvedAt",
        "offset": 8,
        "slot": "0",
        "type": "t_userDefinedValueType(Timestamp)16000"
      },
      {
        "astId": 11165,
        "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
        "label": "status",
        "offset": 16,
        "slot": "0",
        "type": "t_enum(GameStatus)16050"
      },
      {
        "astId": 11168,
        "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
        "label": "initialized",
        "offset": 17,
        "slot": "0",
        "type": "t_bool"
      },
      {
        "astId": 11171,
        "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
        "label": "l2BlockNumberChallenged",
        "offset": 18,
        "slot": "0",
        "type": "t_bool"
      },
      {
        "astId": 11174,
        "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
        "label": "l2BlockNumberChallenger",
        "offset": 0,
        "slot": "1",
        "type": "t_address"
      },
      {
        "astId": 11179,
        "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
        "label": "claimData",
        "offset": 0,
        "slot": "2",
        "type": "t_array(t_struct(ClaimData)15216_storage)dyn_storage"
      },
      {
        "astId": 11184,
        "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
        "label": "credit",
        "offset": 0,
        "slot": "3",
        "type": "t_mapping(t_address,t_uint256)"
      },
      {
        "astId": 11190,
        "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
        "label": "claims",
        "offset": 0,
        "slot": "4",
        "type": "t_mapping(t_userDefinedValueType(Hash)15985,t_bool)"
      },
      {
        "astId": 11196,
        "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
        "label": "subgames",
        "offset": 0,
        "slot": "5",
        "type": "t_mapping(t_uint256,t_array(t_uint256)dyn_storage)"
      },
      {
        "astId": 11201,
        "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
        "label": "resolvedSubgames",
        "offset": 0,
        "slot": "6",
        "type": "t_mapping(t_uint256,t_bool)"
      },
      {
        "astId": 11207,
        "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
        "label": "resolutionCheckpoints",
        "offset": 0,
        "slot": "7",
        "type": "t_mapping(t_uint256,t_struct(ResolutionCheckpoint)15226_storage)"
      },
      {
        "astId": 11211,
        "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
        "label": "startingOutputRoot",
        "offset": 0,
        "slot": "8",
        "type": "t_struct(OutputRoot)16056_storage"
      }
    ],
    "types": {
      "t_address": {
        "encoding": "inplace",
        "label": "address",
        "numberOfBytes": "20"
      },
      "t_array(t_struct(ClaimData)15216_storage)dyn_storage": {
        "base": "t_struct(ClaimData)15216_storage",
        "encoding": "dynamic_array",
        "label": "struct IFaultDisputeGame.ClaimData[]",
        "numberOfBytes": "32"
      },
      "t_array(t_uint256)dyn_storage": {
        "base": "t_uint256",
        "encoding": "dynamic_array",
        "label": "uint256[]",
        "numberOfBytes": "32"
      },
      "t_bool": {
        "encoding": "inplace",
        "label": "bool",
        "numberOfBytes": "1"
      },
      "t_enum(GameStatus)16050": {
        "encoding": "inplace",
        "label": "enum GameStatus",
        "numberOfBytes": "1"
      },
      "t_mapping(t_address,t_uint256)": {
        "encoding": "mapping",
        "key": "t_address",
        "label": "mapping(address => uint256)",
        "numberOfBytes": "32",
        "value": "t_uint256"
      },
      "t_mapping(t_uint256,t_array(t_uint256)dyn_storage)": {
        "encoding": "mapping",
        "key": "t_uint256",
        "label": "mapping(uint256 => uint256[])",
        "numberOfBytes": "32",
        "value": "t_array(t_uint256)dyn_storage"
      },
      "t_mapping(t_uint256,t_bool)": {
        "encoding": "mapping",
        "key": "t_uint256",
        "label": "mapping(uint256 => bool)",
        "numberOfBytes": "32",
        "value": "t_bool"
      },
      "t_mapping(t_uint256,t_struct(ResolutionCheckpoint)15226_storage)": {
        "encoding": "mapping",
        "key": "t_uint256",
        "label": "mapping(uint256 => struct IFaultDisputeGame.ResolutionCheckpoint)",
        "numberOfBytes": "32",
        "value": "t_struct(ResolutionCheckpoint)15226_storage"
      },
      "t_mapping(t_userDefinedValueType(Hash)15985,t_bool)": {
        "encoding": "mapping",
        "key": "t_userDefinedValueType(Hash)15985",
        "label": "mapping(Hash => bool)",
        "numberOfBytes": "32",
        "value": "t_bool"
      },
      "t_struct(ClaimData)15216_storage": {
        "encoding": "inplace",
        "label": "struct IFaultDisputeGame.ClaimData",
        "members": [
          {
            "astId": 15200,
            "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
            "label": "parentIndex",
            "offset": 0,
            "slot": "0",
            "type": "t_uint32"
          },
          {
            "astId": 15202,
            "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
            "label": "counteredBy",
            "offset": 4,
            "slot": "0",
            "type": "t_address"
          },
          {
            "astId": 15204,
            "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
            "label": "claimant",
            "offset": 0,
            "slot": "1",
            "type": "t_address"
          },
          {
            "astId": 15206,
            "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
            "label": "bond",
            "offset": 0,
            "slot": "2",
            "type": "t_uint128"
          },
          {
            "astId": 15209,
            "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
            "label": "claim",
            "offset": 0,
            "slot": "3",
            "type": "t_userDefinedValueType(Claim)15938"
          },
          {
            "astId": 15212,
            "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
            "label": "position",
            "offset": 0,
            "slot": "4",
            "type": "t_userDefinedValueType(Position)15596"
          },
          {
            "astId": 15215,
            "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
            "label": "clock",
            "offset": 16,
            "slot": "4",
            "type": "t_userDefinedValueType(Clock)15846"
          }
        ],
        "numberOfBytes": "160"
      },
      "t_struct(OutputRoot)16056_storage": {
        "encoding": "inplace",
        "label": "struct OutputRoot",
        "members": [
          {
            "astId": 16053,
            "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
            "label": "root",
            "offset": 0,
            "slot": "0",
            "type": "t_userDefinedValueType(Hash)15985"
          },
          {
            "astId": 16055,
            "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
            "label": "l2BlockNumber",
            "offset": 0,
            "slot": "1",
            "type": "t_uint256"
          }
        ],
        "numberOfBytes": "64"
      },
      "t_struct(ResolutionCheckpoint)15226_storage": {
        "encoding": "inplace",
        "label": "struct IFaultDisputeGame.ResolutionCheckpoint",
        "members": [
          {
            "astId": 15218,
            "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
            "label": "initialCheckpointComplete",
            "offset": 0,
            "slot": "0",
            "type": "t_bool"
          },
          {
            "astId": 15220,
            "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
            "label": "subgameIndex",
            "offset": 1,
            "slot": "0",
            "type": "t_uint32"
          },
          {
            "astId": 15223,
            "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
            "label": "leftmostPosition",
            "offset": 5,
            "slot": "0",
            "type": "t_userDefinedValueType(Position)15596"
          },
          {
            "astId": 15225,
            "contract": "contracts/L1/dispute/PermissionedDisputeGame.sol:PermissionedDisputeGame",
            "label": "counteredBy",
            "offset": 0,
            "slot": "1",
            "type": "t_address"
          }
        ],
        "numberOfBytes": "64"
      },
      "t_uint128": {
        "encoding": "inplace",
        "label": "uint128",
        "numberOfBytes": "16"
      },
      "t_uint256": {
        "encoding": "inplace",
        "label": "uint256",
        "numberOfBytes": "32"
      },
      "t_uint32": {
        "encoding": "inplace",
        "label": "uint32",
        "numberOfBytes": "4"
      },
      "t_userDefinedValueType(Claim)15938": {
        "encoding": "inplace",
        "label": "Claim",
        "numberOfBytes": "32"
      },
      "t_userDefinedValueType(Clock)15846": {
        "encoding": "inplace",
        "label": "Clock",
        "numberOfBytes": "16"
      },
      "t_userDefinedValueType(Hash)15985": {
        "encoding": "inplace",
        "label": "Hash",
        "numberOfBytes": "32"
      },
      "t_userDefinedValueType(Position)15596": {
        "encoding": "inplace",
        "label": "Position",
        "numberOfBytes": "16"
      },
      "t_userDefinedValueType(Timestamp)16000": {
        "encoding": "inplace",
        "label": "Timestamp",
        "numberOfBytes": "8"
      }
    }
  }
}