{
  "address": "0xbC5A470F5C4C2190FA3eC130d632e4786DcC4527",
  "abi": [
    {
      "inputs": [],
      "stateMutability": "nonpayable",
      "type": "constructor"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "_chainId",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "_batchIndex",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint40",
          "name": "_shouldStartAtElement",
          "type": "uint40"
        },
        {
          "indexed": false,
          "internalType": "uint24",
          "name": "_totalElementsToAppend",
          "type": "uint24"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "_txBatchSize",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "_txBatchTime",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "bytes32",
          "name": "_root",
          "type": "bytes32"
        }
      ],
      "name": "AppendBatchElement",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "address",
          "name": "_sender",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "_chainId",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "_batchIndex",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "_blockNumber",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "_stakeAmount",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "bool",
          "name": "_verified",
          "type": "bool"
        },
        {
          "indexed": false,
          "internalType": "bool",
          "name": "_sequencer",
          "type": "bool"
        }
      ],
      "name": "SetBatchTxData",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "address",
          "name": "_sender",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "_chainId",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "_batchIndex",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "_blockNumber",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "_amount",
          "type": "uint256"
        }
      ],
      "name": "VerifierStake",
      "type": "event"
    },
    {
      "inputs": [],
      "name": "CONFIG_OWNER_KEY",
      "outputs": [
        {
          "internalType": "string",
          "name": "",
          "type": "string"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "TXDATA_SUBMIT_TIMEOUT",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "appendSequencerBatchByChainId",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_chainId",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_batchIndex",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_blockNumber",
          "type": "uint256"
        },
        {
          "internalType": "bytes",
          "name": "_data",
          "type": "bytes"
        }
      ],
      "name": "checkBatchTxHash",
      "outputs": [
        {
          "internalType": "bytes32",
          "name": "txHash",
          "type": "bytes32"
        },
        {
          "internalType": "bool",
          "name": "verified",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "disableWhiteList",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_chainId",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_batchIndex",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_blockNumber",
          "type": "uint256"
        }
      ],
      "name": "getBatchTxData",
      "outputs": [
        {
          "internalType": "bytes",
          "name": "txData",
          "type": "bytes"
        },
        {
          "internalType": "bool",
          "name": "verified",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "getStakeBaseCost",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_chainId",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_batchIndex",
          "type": "uint256"
        }
      ],
      "name": "getStakeCostByBatch",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "getStakeSeqSeconds",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "getStakeUnitCost",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "getTxBatchSize",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "getTxDataSliceCount",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "getTxDataSliceSize",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_verifier",
          "type": "address"
        }
      ],
      "name": "isWhiteListed",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "libAddressManager",
      "outputs": [
        {
          "internalType": "contract Lib_AddressManager",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "string",
          "name": "_name",
          "type": "string"
        }
      ],
      "name": "resolve",
      "outputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_chainId",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_batchIndex",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_blockNumber",
          "type": "uint256"
        },
        {
          "internalType": "bytes",
          "name": "_data",
          "type": "bytes"
        },
        {
          "internalType": "uint256",
          "name": "_leafIndex",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_totalLeaves",
          "type": "uint256"
        },
        {
          "internalType": "bytes32[]",
          "name": "_proof",
          "type": "bytes32[]"
        }
      ],
      "name": "setBatchTxDataForStake",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_chainId",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_batchIndex",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_blockNumber",
          "type": "uint256"
        },
        {
          "internalType": "bytes",
          "name": "_data",
          "type": "bytes"
        }
      ],
      "name": "setBatchTxDataForVerifier",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_chainId",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_batchIndex",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_blockNumber",
          "type": "uint256"
        },
        {
          "internalType": "bool",
          "name": "_verified",
          "type": "bool"
        }
      ],
      "name": "setBatchTxDataVerified",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_stakeBaseCost",
          "type": "uint256"
        }
      ],
      "name": "setStakeBaseCost",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_seconds",
          "type": "uint256"
        }
      ],
      "name": "setStakeSeqSeconds",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_stakeUnitCost",
          "type": "uint256"
        }
      ],
      "name": "setStakeUnitCost",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_size",
          "type": "uint256"
        }
      ],
      "name": "setTxBatchSize",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_count",
          "type": "uint256"
        }
      ],
      "name": "setTxDataSliceCount",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_size",
          "type": "uint256"
        }
      ],
      "name": "setTxDataSliceSize",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_verifier",
          "type": "address"
        },
        {
          "internalType": "bool",
          "name": "_allowed",
          "type": "bool"
        }
      ],
      "name": "setWhiteList",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "stakeBaseCost",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "stakeSeqSeconds",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "stakeUnitCost",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "txBatchSize",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "txDataSliceCount",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "txDataSliceSize",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_chainId",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_batchIndex",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_blockNumber",
          "type": "uint256"
        }
      ],
      "name": "verifierStake",
      "outputs": [],
      "stateMutability": "payable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "name": "whitelist",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_chainId",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_batchIndex",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_blockNumber",
          "type": "uint256"
        }
      ],
      "name": "withdrawStake",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "transactionHash": "0xfe3e1b71c4bf09d1c11552d8f933c224130900f04f9be61747d1aa6c84da0aed",
  "receipt": {
    "to": null,
    "from": "0x012347D9D1cC9df8d53289d43d84b5bCdED7F480",
    "contractAddress": "0xbC5A470F5C4C2190FA3eC130d632e4786DcC4527",
    "transactionIndex": 0,
    "gasUsed": "3725215",
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "blockHash": "0xf159b4fc9c434d491b9586fdd385aa9f787ef8c4a19681c4cfc8749893a5223e",
    "transactionHash": "0xfe3e1b71c4bf09d1c11552d8f933c224130900f04f9be61747d1aa6c84da0aed",
    "logs": [],
    "blockNumber": 150,
    "cumulativeGasUsed": "3725215",
    "status": 1,
    "byzantium": true
  },
  "args": [],
  "numDeployments": 1,
  "solcInputHash": "452b4108adbe7ec4e50c9cf8a60feb9d",
  "metadata": "{\"compiler\":{\"version\":\"0.8.15+commit.e14f2714\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_chainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_batchIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint40\",\"name\":\"_shouldStartAtElement\",\"type\":\"uint40\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"_totalElementsToAppend\",\"type\":\"uint24\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_txBatchSize\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_txBatchTime\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"_root\",\"type\":\"bytes32\"}],\"name\":\"AppendBatchElement\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_chainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_batchIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_blockNumber\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_stakeAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"_verified\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"_sequencer\",\"type\":\"bool\"}],\"name\":\"SetBatchTxData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_chainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_batchIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_blockNumber\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"VerifierStake\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"CONFIG_OWNER_KEY\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TXDATA_SUBMIT_TIMEOUT\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"appendSequencerBatchByChainId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_chainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_batchIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"checkBatchTxHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"disableWhiteList\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_chainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_batchIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_blockNumber\",\"type\":\"uint256\"}],\"name\":\"getBatchTxData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"txData\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getStakeBaseCost\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_chainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_batchIndex\",\"type\":\"uint256\"}],\"name\":\"getStakeCostByBatch\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getStakeSeqSeconds\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getStakeUnitCost\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTxBatchSize\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTxDataSliceCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTxDataSliceSize\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_verifier\",\"type\":\"address\"}],\"name\":\"isWhiteListed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"libAddressManager\",\"outputs\":[{\"internalType\":\"contract Lib_AddressManager\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"}],\"name\":\"resolve\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_chainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_batchIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"_leafIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_totalLeaves\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"_proof\",\"type\":\"bytes32[]\"}],\"name\":\"setBatchTxDataForStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_chainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_batchIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"setBatchTxDataForVerifier\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_chainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_batchIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"_verified\",\"type\":\"bool\"}],\"name\":\"setBatchTxDataVerified\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakeBaseCost\",\"type\":\"uint256\"}],\"name\":\"setStakeBaseCost\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_seconds\",\"type\":\"uint256\"}],\"name\":\"setStakeSeqSeconds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakeUnitCost\",\"type\":\"uint256\"}],\"name\":\"setStakeUnitCost\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_size\",\"type\":\"uint256\"}],\"name\":\"setTxBatchSize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_count\",\"type\":\"uint256\"}],\"name\":\"setTxDataSliceCount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_size\",\"type\":\"uint256\"}],\"name\":\"setTxDataSliceSize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_verifier\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_allowed\",\"type\":\"bool\"}],\"name\":\"setWhiteList\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stakeBaseCost\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stakeSeqSeconds\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stakeUnitCost\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"txBatchSize\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"txDataSliceCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"txDataSliceSize\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_chainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_batchIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_blockNumber\",\"type\":\"uint256\"}],\"name\":\"verifierStake\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"whitelist\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_chainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_batchIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_blockNumber\",\"type\":\"uint256\"}],\"name\":\"withdrawStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"appendSequencerBatchByChainId()\":{\"details\":\"This function uses a custom encoding scheme for efficiency reasons.\"},\"getBatchTxData(uint256,uint256,uint256)\":{\"params\":{\"_batchIndex\":\"batch index of CTC.\",\"_blockNumber\":\"block number.\",\"_chainId\":\"chain id.\"},\"returns\":{\"txData\":\"txData\",\"verified\":\"verified\"}},\"getStakeSeqSeconds()\":{\"returns\":{\"_0\":\"Seconds the Sequencer can sumbit transaction data after verifier staking.\"}},\"resolve(string)\":{\"params\":{\"_name\":\"Name to resolve an address for.\"},\"returns\":{\"_0\":\"Address associated with the given name.\"}},\"setBatchTxDataForStake(uint256,uint256,uint256,bytes,uint256,uint256,bytes32[])\":{\"params\":{\"_batchIndex\":\"batch index of CTC.\",\"_blockNumber\":\"slice index.\",\"_chainId\":\"chain id.\",\"_data\":\"tx data hex.\"}},\"setBatchTxDataForVerifier(uint256,uint256,uint256,bytes)\":{\"params\":{\"_batchIndex\":\"batch index of CTC.\",\"_blockNumber\":\"slice index.\",\"_chainId\":\"chain id.\",\"_data\":\"tx data hex.\"}},\"setStakeSeqSeconds(uint256)\":{\"params\":{\"_seconds\":\"Seconds the Sequencer can sumbit transaction data after verifier staking.\"}},\"setStakeUnitCost(uint256)\":{\"params\":{\"_stakeUnitCost\":\"Stake cost for verifier.\"}},\"setTxBatchSize(uint256)\":{\"params\":{\"_size\":\"Batch size of batch.\"}},\"setTxDataSliceCount(uint256)\":{\"params\":{\"_count\":\"Slice count per batch transaction data.\"}},\"setTxDataSliceSize(uint256)\":{\"params\":{\"_size\":\"Slice size of batch transaction data.\"}},\"verifierStake(uint256,uint256,uint256)\":{\"params\":{\"_batchIndex\":\"batch index of CTC.\",\"_blockNumber\":\"block number.\",\"_chainId\":\"chain id.\"}},\"withdrawStake(uint256,uint256,uint256)\":{\"params\":{\"_batchIndex\":\"batch index of CTC.\",\"_blockNumber\":\"block number.\",\"_chainId\":\"chain id.\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"appendSequencerBatchByChainId()\":{\"notice\":\"Allows the sequencer to append a batch of transactions.\"},\"getBatchTxData(uint256,uint256,uint256)\":{\"notice\":\"Gets batch tx data.\"},\"getStakeBaseCost()\":{\"notice\":\"Gets the verifier stake base cost of ETH.\"},\"getStakeCostByBatch(uint256,uint256)\":{\"notice\":\"Gets the verifier stake cost of ETH by batch index.\"},\"getStakeSeqSeconds()\":{\"notice\":\"Gets seconds can submit transaction data after staking.\"},\"getStakeUnitCost()\":{\"notice\":\"Gets the verifier stake unit cost of ETH for per storage unit.\"},\"getTxBatchSize()\":{\"notice\":\"Gets batch size per batch.\"},\"getTxDataSliceCount()\":{\"notice\":\"Gets slice count per batch transaction data.\"},\"getTxDataSliceSize()\":{\"notice\":\"Gets batch transaction data slice size per submit.\"},\"resolve(string)\":{\"notice\":\"Resolves the address associated with a given name.\"},\"setBatchTxDataForStake(uint256,uint256,uint256,bytes,uint256,uint256,bytes32[])\":{\"notice\":\"Sets batch tx data for stake.\"},\"setBatchTxDataForVerifier(uint256,uint256,uint256,bytes)\":{\"notice\":\"Sets batch tx data for verifier.\"},\"setStakeBaseCost(uint256)\":{\"notice\":\"receive() external payable { // msg.sender if (msg.sender == resolve('MVM_DiscountOracle')) { uint256 _chainId = getAddressChainId(msg.sender); if (_chainId > 0) { address _to = resolve(string(abi.encodePacked(Lib_Uint.uint2str(_chainId),\\\"_MVM_Sequencer_Wrapper\\\"))); if (_to != address(0) && _to != address(this)) { _to.call{value: msg.value}(\\\"\\\"); } } } } function setAddressChainId(address _address, uint256 _chainId)  override public onlyManager { require(_address != address(0), \\\"address not available\\\"); require(_chainId > 0, \\\"chainId not available\\\"); require(addressChains[_address] != _chainId, \\\"no change\\\"); addressChains[_address] = _chainId; } function getAddressChainId(address _address) override public view returns (uint256) { return addressChains[_address]; }\"},\"setStakeSeqSeconds(uint256)\":{\"notice\":\"Sets seconds can submit transaction data after staking.\"},\"setStakeUnitCost(uint256)\":{\"notice\":\"Sets the verifier stake unit cost of ETH.\"},\"setTxBatchSize(uint256)\":{\"notice\":\"Sets batch size per batch.\"},\"setTxDataSliceCount(uint256)\":{\"notice\":\"Sets slice count per batch transaction data.\"},\"setTxDataSliceSize(uint256)\":{\"notice\":\"Sets batch transaction data slice size per submit.\"},\"verifierStake(uint256,uint256,uint256)\":{\"notice\":\"Stake by verifier.\"},\"withdrawStake(uint256,uint256,uint256)\":{\"notice\":\"Withdraw stake by verifier.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/MVM/MVM_CanonicalTransaction.sol\":\"MVM_CanonicalTransaction\"},\"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\"},\"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/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\":\"0x4280d516a0b1df528d427afa725647af734776e5b889aab003ded34a05931af8\",\"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/MVM/MVM_CanonicalTransaction.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.9;\\n\\n/* Library Imports */\\nimport { Lib_AddressResolver } from \\\"../libraries/resolver/Lib_AddressResolver.sol\\\";\\n\\n/* Interface Imports */\\nimport { iMVM_CanonicalTransaction } from \\\"./iMVM_CanonicalTransaction.sol\\\";\\nimport { ICanonicalTransactionChain } from \\\"../L1/rollup/ICanonicalTransactionChain.sol\\\";\\nimport { IChainStorageContainer } from \\\"../L1/rollup/IChainStorageContainer.sol\\\";\\nimport { StateCommitmentChain } from \\\"../L1/rollup/StateCommitmentChain.sol\\\";\\nimport { Lib_MerkleTree } from \\\"../libraries/utils/Lib_MerkleTree.sol\\\";\\nimport { Lib_Uint } from \\\"../libraries/utils/Lib_Uint.sol\\\";\\n\\ncontract MVM_CanonicalTransaction is iMVM_CanonicalTransaction, Lib_AddressResolver {\\n    /*************\\n     * Constants *\\n     *************/\\n\\n    string public constant CONFIG_OWNER_KEY = \\\"METIS_MANAGER\\\";\\n\\n    // lock seconds when begin to submit batch tx data slice\\n    uint256 public constant TXDATA_SUBMIT_TIMEOUT = 1800;\\n\\n    /*************\\n     * Variables *\\n     *************/\\n\\n    // submit tx data slice size (in bytes)\\n    uint256 public txDataSliceSize;\\n    // stake duration seconds for sequencer submit batch tx data\\n    uint256 public stakeSeqSeconds;\\n    // verifier stake base cost for a batch tx data requirement (in ETH)\\n    uint256 public stakeBaseCost;\\n    // submit tx data slice count (a whole tx batch)\\n    uint256 public txDataSliceCount;\\n    // submit tx batch size (in bytes)\\n    uint256 public txBatchSize;\\n    // verifier stake unit cost for a batch tx data requirement (in ETH)\\n    uint256 public stakeUnitCost;\\n\\n    bool useWhiteList;\\n\\n    /***************\\n     * Queue State *\\n     ***************/\\n\\n    // white list\\n    mapping(address => bool) public whitelist;\\n\\n    // mapping(address => uint256) private addressChains;\\n\\n    // verifier stakes statistic\\n    mapping(address => uint256) private verifierStakes;\\n\\n    // batch element information for validation queue\\n    mapping(uint256 => mapping(uint256 => BatchElement)) queueBatchElement;\\n\\n    // tx data request stake queue\\n    mapping(uint256 => mapping(uint256 => TxDataRequestStake)) queueTxDataRequestStake;\\n\\n    // tx data for verification queue\\n    mapping(uint256 => mapping(uint256 => TxDataSlice)) queueTxData;\\n\\n    /***************\\n     * Constructor *\\n     ***************/\\n\\n    constructor() Lib_AddressResolver(address(0)) {}\\n\\n    /**********************\\n     * Function Modifiers *\\n     **********************/\\n\\n    modifier onlyManager() {\\n        require(\\n            msg.sender == resolve(CONFIG_OWNER_KEY),\\n            \\\"MVM_CanonicalTransaction: Function can only be called by the METIS_MANAGER.\\\"\\n        );\\n        _;\\n    }\\n\\n    modifier onlyWhitelisted() {\\n        require(isWhiteListed(msg.sender), \\\"only whitelisted verifiers can call\\\");\\n        _;\\n    }\\n\\n    /********************\\n     * Public Functions *\\n     ********************/\\n    /**\\n    receive() external payable {\\n        // msg.sender\\n        if (msg.sender == resolve('MVM_DiscountOracle')) {\\n            uint256 _chainId = getAddressChainId(msg.sender);\\n            if (_chainId > 0) {\\n                address _to = resolve(string(abi.encodePacked(Lib_Uint.uint2str(_chainId),\\\"_MVM_Sequencer_Wrapper\\\")));\\n                if (_to != address(0) && _to != address(this)) {\\n                    _to.call{value: msg.value}(\\\"\\\");\\n                }\\n            }\\n        }\\n    }\\n\\n    function setAddressChainId(address _address, uint256 _chainId)  override public onlyManager {\\n        require(_address != address(0), \\\"address not available\\\");\\n        require(_chainId > 0, \\\"chainId not available\\\");\\n        require(addressChains[_address] != _chainId, \\\"no change\\\");\\n        addressChains[_address] = _chainId;\\n    }\\n\\n    function getAddressChainId(address _address) override public view returns (uint256) {\\n        return addressChains[_address];\\n    }\\n    */\\n\\n    function setStakeBaseCost(uint256 _stakeBaseCost) public override onlyManager {\\n        // 1e16 = 0.01 ether\\n        // require(_stakeBaseCost >= 1e16, \\\"stake base cost should gte 1e16\\\");\\n        stakeBaseCost = _stakeBaseCost;\\n    }\\n\\n    function getStakeBaseCost() public view override returns (uint256) {\\n        return stakeBaseCost;\\n    }\\n\\n    function setStakeUnitCost(uint256 _stakeUnitCost) public override onlyManager {\\n        // 1e16 = 0.01 ether\\n        stakeUnitCost = _stakeUnitCost;\\n    }\\n\\n    function getStakeUnitCost() public view override returns (uint256) {\\n        return stakeUnitCost;\\n    }\\n\\n    function getStakeCostByBatch(uint256 _chainId, uint256 _batchIndex)\\n        public\\n        view\\n        override\\n        returns (uint256)\\n    {\\n        require(stakeBaseCost > 0, \\\"stake base cost not config yet\\\");\\n        require(\\n            queueBatchElement[_chainId][_batchIndex].txBatchTime > 0,\\n            \\\"batch element does not exist\\\"\\n        );\\n        return stakeBaseCost + queueBatchElement[_chainId][_batchIndex].txBatchSize * stakeUnitCost;\\n    }\\n\\n    function setTxDataSliceSize(uint256 _size) public override onlyManager {\\n        require(_size > 0, \\\"slice size should gt 0\\\");\\n        require(_size != txDataSliceSize, \\\"slice size has not changed\\\");\\n        txDataSliceSize = _size;\\n    }\\n\\n    function getTxDataSliceSize() public view override returns (uint256) {\\n        return txDataSliceSize;\\n    }\\n\\n    function setTxDataSliceCount(uint256 _count) public override onlyManager {\\n        require(_count > 0, \\\"slice count should gt 0\\\");\\n        require(_count != txDataSliceCount, \\\"slice count has not changed\\\");\\n        txDataSliceCount = _count;\\n    }\\n\\n    function getTxDataSliceCount() public view override returns (uint256) {\\n        return txDataSliceCount;\\n    }\\n\\n    function setTxBatchSize(uint256 _size) public override onlyManager {\\n        require(_size > 0, \\\"batch size should gt 0\\\");\\n        require(_size != txBatchSize, \\\"batch size has not changed\\\");\\n        txBatchSize = _size;\\n    }\\n\\n    function getTxBatchSize() public view override returns (uint256) {\\n        return txBatchSize;\\n    }\\n\\n    function setStakeSeqSeconds(uint256 _seconds) public override onlyManager {\\n        require(_seconds > 0, \\\"seconds should gt 0\\\");\\n        require(_seconds != stakeSeqSeconds, \\\"seconds has not changed\\\");\\n        stakeSeqSeconds = _seconds;\\n    }\\n\\n    function getStakeSeqSeconds() public view override returns (uint256) {\\n        return stakeSeqSeconds;\\n    }\\n\\n    function isWhiteListed(address _verifier) public view override returns (bool) {\\n        return !useWhiteList || whitelist[_verifier];\\n    }\\n\\n    function setWhiteList(address _verifier, bool _allowed) public override onlyManager {\\n        whitelist[_verifier] = _allowed;\\n        useWhiteList = true;\\n    }\\n\\n    function disableWhiteList() public override onlyManager {\\n        useWhiteList = false;\\n    }\\n\\n    function appendSequencerBatchByChainId() public override {\\n        uint256 _chainId;\\n        uint40 shouldStartAtElement;\\n        uint24 totalElementsToAppend;\\n        uint24 numContexts;\\n        uint256 batchTime;\\n        uint256 _dataSize;\\n        uint256 txSize;\\n        bytes32 root;\\n        assembly {\\n            _dataSize := calldatasize()\\n            _chainId := calldataload(4)\\n            shouldStartAtElement := shr(216, calldataload(36))\\n            totalElementsToAppend := shr(232, calldataload(41))\\n            numContexts := shr(232, calldataload(44))\\n        }\\n        require(\\n            msg.sender ==\\n                resolve(\\n                    string(abi.encodePacked(Lib_Uint.uint2str(_chainId), \\\"_MVM_Sequencer_Wrapper\\\"))\\n                ),\\n            \\\"Function can only be called by the Sequencer.\\\"\\n        );\\n        uint256 posTs = 47 + 16 * numContexts;\\n        if (_dataSize > posTs) {\\n            // when tx count = 0, there is no hash!\\n            // string len: [13]{milliseconds}-[1]{0}-[8]{sizeOfData}-[64]{hash}-[64]{root}\\n            uint256 posTxSize = 7 + posTs;\\n            uint256 posRoot = 11 + posTs;\\n            assembly {\\n                batchTime := shr(204, calldataload(posTs))\\n                txSize := shr(224, calldataload(posTxSize))\\n                root := calldataload(posRoot)\\n            }\\n\\n            // check batch size\\n            require(txSize / 2 <= txBatchSize, \\\"size of tx data is too large\\\");\\n        }\\n\\n        address ctc = resolve(\\\"CanonicalTransactionChain\\\");\\n        IChainStorageContainer batchesRef = ICanonicalTransactionChain(ctc).batches();\\n        uint256 batchIndex = batchesRef.lengthByChainId(_chainId);\\n        {\\n            // ctc call\\n            (bool success, bytes memory result) = ctc.call(msg.data);\\n            if (success == false) {\\n                assembly {\\n                    let ptr := mload(0x40)\\n                    let size := returndatasize()\\n                    returndatacopy(ptr, 0, size)\\n                    revert(ptr, size)\\n                }\\n            }\\n        }\\n\\n        // save\\n        queueBatchElement[_chainId][batchIndex] = BatchElement({\\n            shouldStartAtElement: shouldStartAtElement,\\n            totalElementsToAppend: totalElementsToAppend,\\n            txBatchSize: txSize,\\n            txBatchTime: batchTime,\\n            root: root,\\n            timestamp: block.timestamp\\n        });\\n\\n        emit AppendBatchElement(\\n            _chainId,\\n            batchIndex,\\n            shouldStartAtElement,\\n            totalElementsToAppend,\\n            txSize,\\n            batchTime,\\n            root\\n        );\\n    }\\n\\n    function setBatchTxDataForStake(\\n        uint256 _chainId,\\n        uint256 _batchIndex,\\n        uint256 _blockNumber,\\n        bytes memory _data,\\n        uint256 _leafIndex,\\n        uint256 _totalLeaves,\\n        bytes32[] memory _proof\\n    ) public override {\\n        require(\\n            msg.sender ==\\n                resolve(\\n                    string(abi.encodePacked(Lib_Uint.uint2str(_chainId), \\\"_MVM_Sequencer_Wrapper\\\"))\\n                ),\\n            \\\"Function can only be called by the Sequencer.\\\"\\n        );\\n        // check stake\\n        require(\\n            queueTxDataRequestStake[_chainId][_blockNumber].timestamp > 0,\\n            \\\"there is no stake for this block number\\\"\\n        );\\n        require(\\n            queueTxDataRequestStake[_chainId][_blockNumber].batchIndex == _batchIndex,\\n            \\\"incorrect batch index\\\"\\n        );\\n        require(\\n            queueTxDataRequestStake[_chainId][_blockNumber].status == STAKESTATUS.INIT,\\n            \\\"not allowed to submit\\\"\\n        );\\n        // sequencer can submit at any time\\n        // require(queueTxDataRequestStake[_chainId][_blockNumber].endtime >= block.timestamp, \\\"can not submit out of sequencer submit protection\\\");\\n\\n        _setBatchTxData(\\n            _chainId,\\n            _batchIndex,\\n            _blockNumber,\\n            _data,\\n            _leafIndex,\\n            _totalLeaves,\\n            _proof,\\n            true\\n        );\\n\\n        if (queueTxDataRequestStake[_chainId][_blockNumber].status == STAKESTATUS.INIT) {\\n            require(\\n                queueTxDataRequestStake[_chainId][_blockNumber].amount <=\\n                    verifierStakes[queueTxDataRequestStake[_chainId][_blockNumber].sender],\\n                \\\"insufficient stake\\\"\\n            );\\n            require(\\n                queueTxDataRequestStake[_chainId][_blockNumber].amount <= address(this).balance,\\n                \\\"insufficient balance\\\"\\n            );\\n            queueTxDataRequestStake[_chainId][_blockNumber].status = STAKESTATUS.SEQ_SET;\\n            if (queueTxDataRequestStake[_chainId][_blockNumber].amount > 0) {\\n                verifierStakes[\\n                    queueTxDataRequestStake[_chainId][_blockNumber].sender\\n                ] -= queueTxDataRequestStake[_chainId][_blockNumber].amount;\\n                // transfer from contract to sender ETHER and record\\n                (bool success, ) = payable(msg.sender).call{\\n                    value: queueTxDataRequestStake[_chainId][_blockNumber].amount\\n                }(\\\"\\\");\\n                require(success, \\\"insufficient balance\\\");\\n                queueTxDataRequestStake[_chainId][_blockNumber].amount = 0;\\n            }\\n        }\\n\\n        emit SetBatchTxData(\\n            msg.sender,\\n            _chainId,\\n            _batchIndex,\\n            _blockNumber,\\n            queueTxDataRequestStake[_chainId][_blockNumber].amount,\\n            true,\\n            true\\n        );\\n    }\\n\\n    function setBatchTxDataForVerifier(\\n        uint256 _chainId,\\n        uint256 _batchIndex,\\n        uint256 _blockNumber,\\n        bytes memory _data\\n    ) public override {\\n        require(\\n            msg.sender !=\\n                resolve(\\n                    string(abi.encodePacked(Lib_Uint.uint2str(_chainId), \\\"_MVM_Sequencer_Wrapper\\\"))\\n                ),\\n            \\\"Function can not be called by the Sequencer.\\\"\\n        );\\n        // check stake\\n        require(\\n            queueTxDataRequestStake[_chainId][_blockNumber].timestamp > 0,\\n            \\\"there is no stake for this block number\\\"\\n        );\\n        require(\\n            queueTxDataRequestStake[_chainId][_blockNumber].batchIndex == _batchIndex,\\n            \\\"incorrect batch index\\\"\\n        );\\n        // require(queueTxDataRequestStake[_chainId][_blockNumber].status == STAKESTATUS.INIT, \\\"not allowed to submit\\\");\\n        // require(queueTxDataRequestStake[_chainId][_blockNumber].sender == msg.sender, \\\"can not submit with other's stake\\\");\\n        require(\\n            queueTxDataRequestStake[_chainId][_blockNumber].endtime < block.timestamp,\\n            \\\"can not submit during sequencer submit protection\\\"\\n        );\\n        if (queueTxDataRequestStake[_chainId][_blockNumber].sender != msg.sender) {\\n            // other verifier can submit in double window times\\n            require(\\n                queueTxDataRequestStake[_chainId][_blockNumber].endtime + stakeSeqSeconds <\\n                    block.timestamp,\\n                \\\"can not submit during staker submit protection\\\"\\n            );\\n        }\\n\\n        _setBatchTxData(_chainId, _batchIndex, _blockNumber, _data, 0, 0, new bytes32[](0), false);\\n\\n        if (queueTxDataRequestStake[_chainId][_blockNumber].status == STAKESTATUS.INIT) {\\n            queueTxDataRequestStake[_chainId][_blockNumber].status = STAKESTATUS.VERIFIER_SET;\\n\\n            address claimer = queueTxDataRequestStake[_chainId][_blockNumber].sender;\\n            if (\\n                queueTxDataRequestStake[_chainId][_blockNumber].amount <= verifierStakes[claimer] &&\\n                queueTxDataRequestStake[_chainId][_blockNumber].amount > 0\\n            ) {\\n                require(\\n                    queueTxDataRequestStake[_chainId][_blockNumber].amount <= address(this).balance,\\n                    \\\"insufficient balance\\\"\\n                );\\n                verifierStakes[claimer] -= queueTxDataRequestStake[_chainId][_blockNumber].amount;\\n                // transfer from contract to sender ETHER and record\\n                (bool success, ) = payable(claimer).call{\\n                    value: queueTxDataRequestStake[_chainId][_blockNumber].amount\\n                }(\\\"\\\");\\n                require(success, \\\"insufficient balance\\\");\\n                queueTxDataRequestStake[_chainId][_blockNumber].amount = 0;\\n            }\\n        }\\n\\n        emit SetBatchTxData(\\n            msg.sender,\\n            _chainId,\\n            _batchIndex,\\n            _blockNumber,\\n            queueTxDataRequestStake[_chainId][_blockNumber].amount,\\n            false,\\n            false\\n        );\\n    }\\n\\n    function _setBatchTxData(\\n        uint256 _chainId,\\n        uint256 _batchIndex,\\n        uint256 _blockNumber,\\n        bytes memory _data,\\n        uint256 _leafIndex,\\n        uint256 _totalLeaves,\\n        bytes32[] memory _proof,\\n        bool _requireVerify\\n    ) internal {\\n        require(_data.length > 0, \\\"empty data\\\");\\n        // check queue BatchElement\\n        require(\\n            queueBatchElement[_chainId][_batchIndex].txBatchTime > 0,\\n            \\\"batch element does not exist\\\"\\n        );\\n        require(\\n            queueBatchElement[_chainId][_batchIndex].totalElementsToAppend > 0,\\n            \\\"batch total element to append should not be zero\\\"\\n        );\\n\\n        // sequencer protect\\n        if (queueTxData[_chainId][_blockNumber].timestamp > 0) {\\n            require(queueTxData[_chainId][_blockNumber].verified == false, \\\"tx data verified\\\");\\n            if (queueTxData[_chainId][_blockNumber].sender != msg.sender) {\\n                require(\\n                    queueTxData[_chainId][_blockNumber].timestamp + TXDATA_SUBMIT_TIMEOUT >\\n                        block.timestamp,\\n                    \\\"in submitting\\\"\\n                );\\n\\n                // change sumbitter\\n                queueTxData[_chainId][_blockNumber].sender = msg.sender;\\n                queueTxData[_chainId][_blockNumber].blockNumber = _blockNumber;\\n                queueTxData[_chainId][_blockNumber].batchIndex = _batchIndex;\\n                queueTxData[_chainId][_blockNumber].timestamp = block.timestamp;\\n                queueTxData[_chainId][_blockNumber].txData = _data;\\n                queueTxData[_chainId][_blockNumber].verified = false;\\n            } else {\\n                queueTxData[_chainId][_blockNumber].txData = _data;\\n                // verified restore to false\\n                queueTxData[_chainId][_blockNumber].verified = false;\\n            }\\n        } else {\\n            queueTxData[_chainId][_blockNumber] = TxDataSlice({\\n                sender: msg.sender,\\n                blockNumber: _blockNumber,\\n                batchIndex: _batchIndex,\\n                timestamp: block.timestamp,\\n                txData: _data,\\n                verified: false\\n            });\\n        }\\n        if (_requireVerify) {\\n            bytes32 currLeaf = keccak256(abi.encodePacked(_blockNumber, _data));\\n            bool verified = Lib_MerkleTree.verify(\\n                queueBatchElement[_chainId][_batchIndex].root,\\n                currLeaf,\\n                _leafIndex,\\n                _proof,\\n                _totalLeaves\\n            );\\n            require(verified == true, \\\"tx data verify failed\\\");\\n\\n            // save verified status\\n            queueTxData[_chainId][_blockNumber].verified = true;\\n        }\\n    }\\n\\n    function getBatchTxData(\\n        uint256 _chainId,\\n        uint256 _batchIndex,\\n        uint256 _blockNumber\\n    ) external view override returns (bytes memory txData, bool verified) {\\n        require(queueTxData[_chainId][_blockNumber].timestamp != 0, \\\"tx data does not exist\\\");\\n        require(\\n            queueTxData[_chainId][_blockNumber].batchIndex == _batchIndex,\\n            \\\"incorrect batch index\\\"\\n        );\\n        return (\\n            queueTxData[_chainId][_blockNumber].txData,\\n            queueTxData[_chainId][_blockNumber].verified\\n        );\\n    }\\n\\n    function checkBatchTxHash(\\n        uint256 _chainId,\\n        uint256 _batchIndex,\\n        uint256 _blockNumber,\\n        bytes memory _data\\n    ) external view override returns (bytes32 txHash, bool verified) {\\n        require(queueTxData[_chainId][_blockNumber].timestamp != 0, \\\"tx data does not exist\\\");\\n        require(\\n            queueTxData[_chainId][_blockNumber].batchIndex == _batchIndex,\\n            \\\"incorrect batch index\\\"\\n        );\\n        return (\\n            keccak256(abi.encodePacked(_blockNumber, _data)),\\n            queueTxData[_chainId][_blockNumber].verified\\n        );\\n    }\\n\\n    function setBatchTxDataVerified(\\n        uint256 _chainId,\\n        uint256 _batchIndex,\\n        uint256 _blockNumber,\\n        bool _verified\\n    ) public override onlyManager {\\n        require(queueTxData[_chainId][_blockNumber].timestamp != 0, \\\"tx data does not exist\\\");\\n        require(\\n            queueTxData[_chainId][_blockNumber].batchIndex == _batchIndex,\\n            \\\"incorrect batch index\\\"\\n        );\\n        require(\\n            queueTxData[_chainId][_blockNumber].verified != _verified,\\n            \\\"verified status not change\\\"\\n        );\\n\\n        queueTxData[_chainId][_blockNumber].verified = _verified;\\n    }\\n\\n    function verifierStake(\\n        uint256 _chainId,\\n        uint256 _batchIndex,\\n        uint256 _blockNumber\\n    ) public payable override onlyWhitelisted {\\n        uint256 _amount = msg.value;\\n        uint256 stakeCost = getStakeCostByBatch(_chainId, _batchIndex);\\n        require(stakeBaseCost > 0, \\\"stake base cost not config yet\\\");\\n        require(stakeCost == _amount, \\\"stake cost incorrect\\\");\\n        require(stakeSeqSeconds > 0, \\\"sequencer submit seconds not config yet\\\");\\n        // check queue BatchElement\\n        require(\\n            queueBatchElement[_chainId][_batchIndex].txBatchTime > 0,\\n            \\\"batch element does not exist\\\"\\n        );\\n        // check block number in batch range, block number = index + 1\\n        require(\\n            queueBatchElement[_chainId][_batchIndex].totalElementsToAppend +\\n                queueBatchElement[_chainId][_batchIndex].shouldStartAtElement >=\\n                _blockNumber &&\\n                queueBatchElement[_chainId][_batchIndex].shouldStartAtElement < _blockNumber,\\n            \\\"block number is not in this batch\\\"\\n        );\\n        if (queueTxDataRequestStake[_chainId][_blockNumber].timestamp > 0) {\\n            require(\\n                queueTxDataRequestStake[_chainId][_blockNumber].status == STAKESTATUS.PAYBACK,\\n                \\\"there is a stake for this batch index\\\"\\n            );\\n        }\\n\\n        //check window\\n        StateCommitmentChain stateChain = StateCommitmentChain(resolve(\\\"StateCommitmentChain\\\"));\\n        require(\\n            queueBatchElement[_chainId][_batchIndex].timestamp + stateChain.FRAUD_PROOF_WINDOW() >\\n                block.timestamp,\\n            \\\"the batch is outside of the fraud proof window\\\"\\n        );\\n\\n        queueTxDataRequestStake[_chainId][_blockNumber] = TxDataRequestStake({\\n            sender: msg.sender,\\n            blockNumber: _blockNumber,\\n            batchIndex: _batchIndex,\\n            timestamp: block.timestamp,\\n            endtime: block.timestamp + stakeSeqSeconds,\\n            amount: _amount,\\n            status: STAKESTATUS.INIT\\n        });\\n        verifierStakes[msg.sender] += _amount;\\n\\n        emit VerifierStake(msg.sender, _chainId, _batchIndex, _blockNumber, _amount);\\n    }\\n\\n    function withdrawStake(\\n        uint256 _chainId,\\n        uint256 _batchIndex,\\n        uint256 _blockNumber\\n    ) public override {\\n        require(\\n            queueTxDataRequestStake[_chainId][_blockNumber].timestamp > 0,\\n            \\\"there is no stake for this batch index\\\"\\n        );\\n        require(queueTxDataRequestStake[_chainId][_blockNumber].amount > 0, \\\"stake amount is zero\\\");\\n        require(\\n            queueTxDataRequestStake[_chainId][_blockNumber].status == STAKESTATUS.INIT,\\n            \\\"withdrawals are not allowed\\\"\\n        );\\n        require(\\n            queueTxDataRequestStake[_chainId][_blockNumber].sender == msg.sender,\\n            \\\"can not withdraw other's stake\\\"\\n        );\\n        require(\\n            queueTxDataRequestStake[_chainId][_blockNumber].endtime < block.timestamp,\\n            \\\"can not withdraw during submit protection\\\"\\n        );\\n        require(\\n            queueTxDataRequestStake[_chainId][_blockNumber].amount <= verifierStakes[msg.sender],\\n            \\\"insufficient stake\\\"\\n        );\\n\\n        require(\\n            queueTxDataRequestStake[_chainId][_blockNumber].amount <= address(this).balance,\\n            \\\"insufficient balance\\\"\\n        );\\n        queueTxDataRequestStake[_chainId][_blockNumber].status = STAKESTATUS.PAYBACK;\\n        verifierStakes[msg.sender] -= queueTxDataRequestStake[_chainId][_blockNumber].amount;\\n        // transfer from contract to sender ETHER and record\\n        (bool success, ) = payable(msg.sender).call{\\n            value: queueTxDataRequestStake[_chainId][_blockNumber].amount\\n        }(\\\"\\\");\\n        require(success, \\\"insufficient balance\\\");\\n        queueTxDataRequestStake[_chainId][_blockNumber].amount = 0;\\n    }\\n}\\n\",\"keccak256\":\"0xf390a67f2e63b3dc2224ebd6d4ced624c9fe4aa0503c3602706e3e3ea297d01c\",\"license\":\"MIT\"},\"contracts/MVM/iMVM_CanonicalTransaction.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.9;\\n\\n/* Contract Imports */\\n\\n/* External Imports */\\n\\n/**\\n * @title ICanonicalTransactionChain\\n */\\ninterface iMVM_CanonicalTransaction {\\n    /*********\\n     * Enums *\\n     *********/\\n\\n    enum STAKESTATUS {\\n        INIT,\\n        SEQ_SET,\\n        VERIFIER_SET,\\n        PAYBACK\\n    }\\n\\n    /**********\\n     * Events *\\n     **********/\\n\\n    event VerifierStake(\\n        address _sender,\\n        uint256 _chainId,\\n        uint256 _batchIndex,\\n        uint256 _blockNumber,\\n        uint256 _amount\\n    );\\n\\n    // default : stakeAmount=0, verified=true, sequencer=true\\n    // sequencer response for stake: stakeAmount>0, verified=true, sequencer=true\\n    // verifier response for stake timeout: stakeAmount>0, verified=false, sequencer=false\\n    event SetBatchTxData(\\n        address _sender,\\n        uint256 _chainId,\\n        uint256 _batchIndex,\\n        uint256 _blockNumber,\\n        uint256 _stakeAmount,\\n        bool _verified,\\n        bool _sequencer\\n    );\\n\\n    event AppendBatchElement(\\n        uint256 _chainId,\\n        uint256 _batchIndex,\\n        uint40 _shouldStartAtElement,\\n        uint24 _totalElementsToAppend,\\n        uint256 _txBatchSize,\\n        uint256 _txBatchTime,\\n        bytes32 _root\\n    );\\n\\n    /***********\\n     * Structs *\\n     ***********/\\n\\n    // locker the same sender for 30 min\\n    struct TxDataSlice {\\n        address sender;\\n        uint256 blockNumber;\\n        uint256 batchIndex;\\n        uint256 timestamp;\\n        bytes txData;\\n        bool verified;\\n    }\\n\\n    struct TxDataRequestStake {\\n        address sender;\\n        uint256 blockNumber;\\n        uint256 batchIndex;\\n        uint256 timestamp;\\n        uint256 endtime;\\n        uint256 amount;\\n        STAKESTATUS status;\\n    }\\n\\n    struct BatchElement {\\n        uint40 shouldStartAtElement;\\n        uint24 totalElementsToAppend;\\n        uint256 txBatchSize;\\n        uint256 txBatchTime; // sequencer client encode timestamp(ms)\\n        bytes32 root; // merkle hash root with [hash(txDataBytes + blockNumber)]\\n        uint256 timestamp; // block timestamp\\n    }\\n\\n    /*******************************\\n     * Authorized Setter Functions *\\n     *******************************/\\n\\n    /**\\n     * Sets address's chain id.\\n     * @param _address contract address.\\n     * @param _chainId chain id.\\n     */\\n    // function setAddressChainId(address _address, uint256 _chainId) external;\\n\\n    /**\\n     * Gets address's chain id.\\n     */\\n    // function getAddressChainId(address _address) external view returns (uint256);\\n\\n    /**\\n     * Sets the verifier stake base cost of ETH.\\n     * @param _stakeBaseCost Stake base cost for verifier.\\n     */\\n    function setStakeBaseCost(uint256 _stakeBaseCost) external;\\n\\n    /**\\n     * Gets the verifier stake base cost of ETH.\\n     */\\n    function getStakeBaseCost() external view returns (uint256);\\n\\n    /**\\n     * Sets the verifier stake unit cost of ETH.\\n     * @param _stakeUnitCost Stake cost for verifier.\\n     */\\n    function setStakeUnitCost(uint256 _stakeUnitCost) external;\\n\\n    /**\\n     * Gets the verifier stake unit cost of ETH for per storage unit.\\n     */\\n    function getStakeUnitCost() external view returns (uint256);\\n\\n    /**\\n     * Gets the verifier stake cost of ETH by batch index.\\n     */\\n    function getStakeCostByBatch(uint256 _chainId, uint256 _batchIndex)\\n        external\\n        view\\n        returns (uint256);\\n\\n    /**\\n     * Sets batch transaction data slice size per submit.\\n     * @param _size Slice size of batch transaction data.\\n     */\\n    function setTxDataSliceSize(uint256 _size) external;\\n\\n    /**\\n     * Gets batch transaction data slice size per submit.\\n     */\\n    function getTxDataSliceSize() external view returns (uint256);\\n\\n    /**\\n     * Sets batch size per batch.\\n     * @param _size Batch size of batch.\\n     */\\n    function setTxBatchSize(uint256 _size) external;\\n\\n    /**\\n     * Gets batch size per batch.\\n     */\\n    function getTxBatchSize() external view returns (uint256);\\n\\n    /**\\n     * Sets slice count per batch transaction data.\\n     * @param _count Slice count per batch transaction data.\\n     */\\n    function setTxDataSliceCount(uint256 _count) external;\\n\\n    /**\\n     * Gets slice count per batch transaction data.\\n     */\\n    function getTxDataSliceCount() external view returns (uint256);\\n\\n    /**\\n     * Sets seconds can submit transaction data after staking.\\n     * @param _seconds Seconds the Sequencer can sumbit transaction data after verifier staking.\\n     */\\n    function setStakeSeqSeconds(uint256 _seconds) external;\\n\\n    /**\\n     * Gets seconds can submit transaction data after staking.\\n     * @return Seconds the Sequencer can sumbit transaction data after verifier staking.\\n     */\\n    function getStakeSeqSeconds() external view returns (uint256);\\n\\n    function isWhiteListed(address _verifier) external view returns (bool);\\n\\n    // add the verifier to the whitelist\\n    function setWhiteList(address _verifier, bool _allowed) external;\\n\\n    // allow everyone to be the verifier\\n    function disableWhiteList() 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     */\\n    function appendSequencerBatchByChainId() external;\\n\\n    /**\\n     * Sets batch tx data for stake.\\n     * @param _chainId chain id.\\n     * @param _batchIndex batch index of CTC.\\n     * @param _blockNumber slice index.\\n     * @param _data tx data hex.\\n     */\\n    function setBatchTxDataForStake(\\n        uint256 _chainId,\\n        uint256 _batchIndex,\\n        uint256 _blockNumber,\\n        bytes memory _data,\\n        uint256 _leafIndex,\\n        uint256 _totalLeaves,\\n        bytes32[] memory _proof\\n    ) external;\\n\\n    /**\\n     * Sets batch tx data for verifier.\\n     * @param _chainId chain id.\\n     * @param _batchIndex batch index of CTC.\\n     * @param _blockNumber slice index.\\n     * @param _data tx data hex.\\n     */\\n    function setBatchTxDataForVerifier(\\n        uint256 _chainId,\\n        uint256 _batchIndex,\\n        uint256 _blockNumber,\\n        bytes memory _data\\n    ) external;\\n\\n    /**\\n     * Gets batch tx data.\\n     * @param _chainId chain id.\\n     * @param _batchIndex batch index of CTC.\\n     * @param _blockNumber block number.\\n     * @return txData\\n     * @return verified\\n     */\\n    function getBatchTxData(\\n        uint256 _chainId,\\n        uint256 _batchIndex,\\n        uint256 _blockNumber\\n    ) external view returns (bytes memory txData, bool verified);\\n\\n    function checkBatchTxHash(\\n        uint256 _chainId,\\n        uint256 _batchIndex,\\n        uint256 _blockNumber,\\n        bytes memory _data\\n    ) external view returns (bytes32 txHash, bool verified);\\n\\n    function setBatchTxDataVerified(\\n        uint256 _chainId,\\n        uint256 _batchIndex,\\n        uint256 _blockNumber,\\n        bool _verified\\n    ) external;\\n\\n    /**\\n     * Stake by verifier.\\n     * @param _chainId chain id.\\n     * @param _batchIndex batch index of CTC.\\n     * @param _blockNumber block number.\\n     */\\n    function verifierStake(\\n        uint256 _chainId,\\n        uint256 _batchIndex,\\n        uint256 _blockNumber\\n    ) external payable;\\n\\n    /**\\n     * Withdraw stake by verifier.\\n     * @param _chainId chain id.\\n     * @param _batchIndex batch index of CTC.\\n     * @param _blockNumber block number.\\n     */\\n    function withdrawStake(\\n        uint256 _chainId,\\n        uint256 _batchIndex,\\n        uint256 _blockNumber\\n    ) external;\\n}\\n\",\"keccak256\":\"0xdf8197030a57db77d2617e851d8e7c28af0ddad273d990b83a926a9deadf4610\",\"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/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\"}},\"version\":1}",
  "bytecode": "0x608060405234801561001057600080fd5b50600080546001600160a01b0319169055614294806100306000396000f3fe6080604052600436106102335760003560e01c80637600fa1211610138578063a6a56da5116100b0578063d6a97a341161007f578063f137391611610064578063f137391614610629578063f1e7746114610649578063f6f24f671461066957600080fd5b8063d6a97a34146105ff578063dcd836161461061457600080fd5b8063a6a56da51461058c578063a8cda37b1461059f578063b357ab92146105b4578063d5fb60d9146105ca57600080fd5b806386e4206e116101075780639447fe88116100ec5780639447fe88146105265780639b19251a1461053c578063a5f5e7191461056c57600080fd5b806386e4206e146104e65780638d14e1271461050657600080fd5b80637600fa12146104705780637f9c97771461049057806381147877146104b057806383cbbb6d146104c657600080fd5b80633ac19597116101cb5780634e74b1551161019a57806361f4edea1161017f57806361f4edea146103cc578063669fdeb5146103fa5780636f9170f61461044057600080fd5b80634e74b155146103a25780635e7ce13a146103b757600080fd5b80633ac1959714610337578063461a44781461035757806348406b861461037757806348f241651461038d57600080fd5b8063279f9b1111610207578063279f9b11146102a9578063299ca478146102c957806335005ffb1461030157806338897fdd1461032157600080fd5b806213c63d1461023857806302adf2d61461025c578063167c705014610271578063172e218d14610287575b600080fd5b34801561024457600080fd5b506002545b6040519081526020015b60405180910390f35b34801561026857600080fd5b50600454610249565b34801561027d57600080fd5b5061024960045481565b34801561029357600080fd5b506102a76102a2366004613a6d565b61067f565b005b3480156102b557600080fd5b506102a76102c4366004613aac565b6108c5565b3480156102d557600080fd5b506000546102e9906001600160a01b031681565b6040516001600160a01b039091168152602001610253565b34801561030d57600080fd5b506102a761031c366004613ad8565b610d42565b34801561032d57600080fd5b5061024960015481565b34801561034357600080fd5b506102a7610352366004613ad8565b610eb0565b34801561036357600080fd5b506102e9610372366004613ba9565b610f7d565b34801561038357600080fd5b5061024960065481565b34801561039957600080fd5b50600654610249565b3480156103ae57600080fd5b50600354610249565b3480156103c357600080fd5b50600554610249565b3480156103d857600080fd5b506103ec6103e7366004613aac565b61100e565b604051610253929190613c4e565b34801561040657600080fd5b506104336040518060400160405280600d81526020016c26a2aa24a9afa6a0a720a3a2a960991b81525081565b6040516102539190613c72565b34801561044c57600080fd5b5061046061045b366004613c9d565b6111aa565b6040519015158152602001610253565b34801561047c57600080fd5b5061024961048b366004613cba565b6111d9565b34801561049c57600080fd5b506102a76104ab366004613ad8565b6112d3565b3480156104bc57600080fd5b5061024960055481565b3480156104d257600080fd5b506102a76104e1366004613cfc565b611441565b3480156104f257600080fd5b506102a7610501366004613ad8565b611971565b34801561051257600080fd5b506102a7610521366004613df9565b611adf565b34801561053257600080fd5b5061024960025481565b34801561054857600080fd5b50610460610557366004613c9d565b60086020526000908152604090205460ff1681565b34801561057857600080fd5b506102a7610587366004613ad8565b611bdc565b6102a761059a366004613aac565b611ca9565b3480156105ab57600080fd5b506102a761231c565b3480156105c057600080fd5b5061024960035481565b3480156105d657600080fd5b506105ea6105e5366004613e2e565b61278e565b60408051928352901515602083015201610253565b34801561060b57600080fd5b50600154610249565b34801561062057600080fd5b506102a76128ba565b34801561063557600080fd5b506102a7610644366004613ad8565b61298e565b34801561065557600080fd5b506102a7610664366004613e2e565b612afc565b34801561067557600080fd5b5061024961070881565b6106ad6040518060400160405280600d81526020016c26a2aa24a9afa6a0a720a3a2a960991b815250610f7d565b6001600160a01b0316336001600160a01b03161461074c5760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201526a24a9afa6a0a720a3a2a91760a91b608482015260a4015b60405180910390fd5b6000848152600c6020908152604080832085845290915281206003015490036107b75760405162461bcd60e51b815260206004820152601660248201527f7478206461746120646f6573206e6f74206578697374000000000000000000006044820152606401610743565b6000848152600c6020908152604080832085845290915290206002015483146108225760405162461bcd60e51b815260206004820152601560248201527f696e636f727265637420626174636820696e64657800000000000000000000006044820152606401610743565b6000848152600c6020908152604080832085845290915290206005015481151560ff9091161515036108965760405162461bcd60e51b815260206004820152601a60248201527f766572696669656420737461747573206e6f74206368616e67650000000000006044820152606401610743565b6000938452600c602090815260408086209386529290529220600501805460ff19169215159290921790915550565b6000838152600b602090815260408083208484529091529020600301546109545760405162461bcd60e51b815260206004820152602660248201527f7468657265206973206e6f207374616b6520666f72207468697320626174636860448201527f20696e64657800000000000000000000000000000000000000000000000000006064820152608401610743565b6000838152600b602090815260408083208484529091529020600501546109bd5760405162461bcd60e51b815260206004820152601460248201527f7374616b6520616d6f756e74206973207a65726f0000000000000000000000006044820152606401610743565b6000838152600b6020908152604080832084845290915281206006015460ff1660038111156109ee576109ee613e88565b14610a3b5760405162461bcd60e51b815260206004820152601b60248201527f7769746864726177616c7320617265206e6f7420616c6c6f77656400000000006044820152606401610743565b6000838152600b602090815260408083208484529091529020546001600160a01b03163314610aac5760405162461bcd60e51b815260206004820152601e60248201527f63616e206e6f74207769746864726177206f746865722773207374616b6500006044820152606401610743565b6000838152600b602090815260408083208484529091529020600401544211610b3d5760405162461bcd60e51b815260206004820152602960248201527f63616e206e6f7420776974686472617720647572696e67207375626d6974207060448201527f726f74656374696f6e00000000000000000000000000000000000000000000006064820152608401610743565b33600090815260096020908152604080832054868452600b8352818420858552909252909120600501541115610bb55760405162461bcd60e51b815260206004820152601260248201527f696e73756666696369656e74207374616b6500000000000000000000000000006044820152606401610743565b6000838152600b60209081526040808320848452909152902060050154471015610c215760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610743565b6000838152600b60209081526040808320848452825280832060068101805460ff191660031790556005015433845260099092528220805491929091610c68908490613ee6565b90915550506000838152600b602090815260408083208484529091528082206005015490513391908381818185875af1925050503d8060008114610cc8576040519150601f19603f3d011682016040523d82523d6000602084013e610ccd565b606091505b5050905080610d1e5760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610743565b506000928352600b6020908152604080852092855291905282206005019190915550565b610d706040518060400160405280600d81526020016c26a2aa24a9afa6a0a720a3a2a960991b815250610f7d565b6001600160a01b0316336001600160a01b031614610e0a5760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201526a24a9afa6a0a720a3a2a91760a91b608482015260a401610743565b60008111610e5a5760405162461bcd60e51b815260206004820152601660248201527f736c6963652073697a652073686f756c642067742030000000000000000000006044820152606401610743565b6001548103610eab5760405162461bcd60e51b815260206004820152601a60248201527f736c6963652073697a6520686173206e6f74206368616e6765640000000000006044820152606401610743565b600155565b610ede6040518060400160405280600d81526020016c26a2aa24a9afa6a0a720a3a2a960991b815250610f7d565b6001600160a01b0316336001600160a01b031614610f785760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201526a24a9afa6a0a720a3a2a91760a91b608482015260a401610743565b600655565b600080546040517fbf40fac10000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063bf40fac190610fc7908590600401613c72565b602060405180830381865afa158015610fe4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110089190613efd565b92915050565b6000838152600c6020908152604080832084845290915281206003015460609190810361107d5760405162461bcd60e51b815260206004820152601660248201527f7478206461746120646f6573206e6f74206578697374000000000000000000006044820152606401610743565b6000858152600c6020908152604080832086845290915290206002015484146110e85760405162461bcd60e51b815260206004820152601560248201527f696e636f727265637420626174636820696e64657800000000000000000000006044820152606401610743565b6000858152600c602090815260408083208684529091529020600581015460049091018054909160ff1690829061111e90613f1a565b80601f016020809104026020016040519081016040528092919081815260200182805461114a90613f1a565b80156111975780601f1061116c57610100808354040283529160200191611197565b820191906000526020600020905b81548152906001019060200180831161117a57829003601f168201915b5050505050915091509150935093915050565b60075460009060ff1615806110085750506001600160a01b031660009081526008602052604090205460ff1690565b6000806003541161122c5760405162461bcd60e51b815260206004820152601e60248201527f7374616b65206261736520636f7374206e6f7420636f6e6669672079657400006044820152606401610743565b6000838152600a602090815260408083208584529091529020600201546112955760405162461bcd60e51b815260206004820152601c60248201527f626174636820656c656d656e7420646f6573206e6f74206578697374000000006044820152606401610743565b6006546000848152600a602090815260408083208684529091529020600101546112bf9190613f6d565b6003546112cc9190613f8c565b9392505050565b6113016040518060400160405280600d81526020016c26a2aa24a9afa6a0a720a3a2a960991b815250610f7d565b6001600160a01b0316336001600160a01b03161461139b5760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201526a24a9afa6a0a720a3a2a91760a91b608482015260a401610743565b600081116113eb5760405162461bcd60e51b815260206004820152601760248201527f736c69636520636f756e742073686f756c6420677420300000000000000000006044820152606401610743565b600454810361143c5760405162461bcd60e51b815260206004820152601b60248201527f736c69636520636f756e7420686173206e6f74206368616e67656400000000006044820152606401610743565b600455565b61147161144d886130cd565b60405160200161145d9190613fa4565b604051602081830303815290604052610f7d565b6001600160a01b0316336001600160a01b0316146114f75760405162461bcd60e51b815260206004820152602d60248201527f46756e6374696f6e2063616e206f6e6c792062652063616c6c6564206279207460448201527f68652053657175656e6365722e000000000000000000000000000000000000006064820152608401610743565b6000878152600b602090815260408083208884529091529020600301546115865760405162461bcd60e51b815260206004820152602760248201527f7468657265206973206e6f207374616b6520666f72207468697320626c6f636b60448201527f206e756d626572000000000000000000000000000000000000000000000000006064820152608401610743565b6000878152600b6020908152604080832088845290915290206002015486146115f15760405162461bcd60e51b815260206004820152601560248201527f696e636f727265637420626174636820696e64657800000000000000000000006044820152606401610743565b6000878152600b6020908152604080832088845290915281206006015460ff16600381111561162257611622613e88565b1461166f5760405162461bcd60e51b815260206004820152601560248201527f6e6f7420616c6c6f77656420746f207375626d697400000000000000000000006044820152606401610743565b61168087878787878787600161322d565b6000878152600b6020908152604080832088845290915281206006015460ff1660038111156116b1576116b1613e88565b036118f3576000878152600b6020908152604080832088845280835281842080546001600160a01b0316855260098452918420549389905290915260050154111561173e5760405162461bcd60e51b815260206004820152601260248201527f696e73756666696369656e74207374616b6500000000000000000000000000006044820152606401610743565b6000878152600b602090815260408083208884529091529020600501544710156117aa5760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610743565b6000878152600b60209081526040808320888452909152902060068101805460ff1916600117905560050154156118f3576000878152600b602090815260408083208884528252808320600581015490546001600160a01b031684526009909252822080549192909161181e908490613ee6565b90915550506000878152600b602090815260408083208884529091528082206005015490513391908381818185875af1925050503d806000811461187e576040519150601f19603f3d011682016040523d82523d6000602084013e611883565b606091505b50509050806118d45760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610743565b506000878152600b602090815260408083208884529091528120600501555b6000878152600b602090815260408083208884528252918290206005015482513381529182018a9052818301899052606082018890526080820152600160a0820181905260c082015290517ffa136ae724a018470beba9749c1fdfb83177d6bd6aaaab35d6dbfde739e509109181900360e00190a150505050505050565b61199f6040518060400160405280600d81526020016c26a2aa24a9afa6a0a720a3a2a960991b815250610f7d565b6001600160a01b0316336001600160a01b031614611a395760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201526a24a9afa6a0a720a3a2a91760a91b608482015260a401610743565b60008111611a895760405162461bcd60e51b815260206004820152601660248201527f62617463682073697a652073686f756c642067742030000000000000000000006044820152606401610743565b6005548103611ada5760405162461bcd60e51b815260206004820152601a60248201527f62617463682073697a6520686173206e6f74206368616e6765640000000000006044820152606401610743565b600555565b611b0d6040518060400160405280600d81526020016c26a2aa24a9afa6a0a720a3a2a960991b815250610f7d565b6001600160a01b0316336001600160a01b031614611ba75760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201526a24a9afa6a0a720a3a2a91760a91b608482015260a401610743565b6001600160a01b039091166000908152600860205260409020805491151560ff19928316179055600780549091166001179055565b611c0a6040518060400160405280600d81526020016c26a2aa24a9afa6a0a720a3a2a960991b815250610f7d565b6001600160a01b0316336001600160a01b031614611ca45760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201526a24a9afa6a0a720a3a2a91760a91b608482015260a401610743565b600355565b611cb2336111aa565b611d245760405162461bcd60e51b815260206004820152602360248201527f6f6e6c792077686974656c6973746564207665726966696572732063616e206360448201527f616c6c00000000000000000000000000000000000000000000000000000000006064820152608401610743565b346000611d3185856111d9565b9050600060035411611d855760405162461bcd60e51b815260206004820152601e60248201527f7374616b65206261736520636f7374206e6f7420636f6e6669672079657400006044820152606401610743565b818114611dd45760405162461bcd60e51b815260206004820152601460248201527f7374616b6520636f737420696e636f72726563740000000000000000000000006044820152606401610743565b600060025411611e4c5760405162461bcd60e51b815260206004820152602760248201527f73657175656e636572207375626d6974207365636f6e6473206e6f7420636f6e60448201527f66696720796574000000000000000000000000000000000000000000000000006064820152608401610743565b6000858152600a60209081526040808320878452909152902060020154611eb55760405162461bcd60e51b815260206004820152601c60248201527f626174636820656c656d656e7420646f6573206e6f74206578697374000000006044820152606401610743565b6000858152600a602090815260408083208784529091529020548390611ef19064ffffffffff81169065010000000000900462ffffff16613fe5565b64ffffffffff1610158015611f2557506000858152600a6020908152604080832087845290915290205464ffffffffff1683115b611f975760405162461bcd60e51b815260206004820152602160248201527f626c6f636b206e756d626572206973206e6f7420696e2074686973206261746360448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610743565b6000858152600b602090815260408083208684529091529020600301541561205f5760036000868152600b6020908152604080832087845290915290206006015460ff166003811115611fec57611fec613e88565b1461205f5760405162461bcd60e51b815260206004820152602560248201527f74686572652069732061207374616b6520666f7220746869732062617463682060448201527f696e6465780000000000000000000000000000000000000000000000000000006064820152608401610743565b600061209f6040518060400160405280601481526020017f5374617465436f6d6d69746d656e74436861696e000000000000000000000000815250610f7d565b905042816001600160a01b031663c17b291b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120e0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612104919061400e565b6000888152600a602090815260408083208a845290915290206004015461212b9190613f8c565b1161219e5760405162461bcd60e51b815260206004820152602e60248201527f746865206261746368206973206f757473696465206f6620746865206672617560448201527f642070726f6f662077696e646f770000000000000000000000000000000000006064820152608401610743565b6040518060e00160405280336001600160a01b03168152602001858152602001868152602001428152602001600254426121d89190613f8c565b815260208101859052604001600090526000878152600b60209081526040808320888452825291829020835181547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039091161781559083015160018083019190915591830151600282015560608301516003808301919091556080840151600483015560a0840151600583015560c084015160068301805493949193909260ff199091169190849081111561229857612298613e88565b02179055505033600090815260096020526040812080548693509091906122c0908490613f8c565b9091555050604080513381526020810188905290810186905260608101859052608081018490527f918b3eda1688b2f6d3e6d173db1ec863e43f4d1c369d647b1912b0df8be5f12f9060a00160405180910390a1505050505050565b60043560243560d81c60293560e890811c90602c35901c600036818061234461144d896130cd565b6001600160a01b0316336001600160a01b0316146123ca5760405162461bcd60e51b815260206004820152602d60248201527f46756e6374696f6e2063616e206f6e6c792062652063616c6c6564206279207460448201527f68652053657175656e6365722e000000000000000000000000000000000000006064820152608401610743565b60006123d7866010614027565b6123e290602f614052565b62ffffff169050808411156124815760006123fe826007613f8c565b9050600061240d83600b613f8c565b600554843560cc1c9850833560e01c965081359550909150612430600287614070565b111561247e5760405162461bcd60e51b815260206004820152601c60248201527f73697a65206f66207478206461746120697320746f6f206c61726765000000006044820152606401610743565b50505b60006124c16040518060400160405280601981526020017f43616e6f6e6963616c5472616e73616374696f6e436861696e00000000000000815250610f7d565b90506000816001600160a01b031663cfdf677e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612503573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125279190613efd565b6040517f576f2588000000000000000000000000000000000000000000000000000000008152600481018d90529091506000906001600160a01b0383169063576f258890602401602060405180830381865afa15801561258b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125af919061400e565b9050600080846001600160a01b03166000366040516125cf9291906140ab565b6000604051808303816000865af19150503d806000811461260c576040519150601f19603f3d011682016040523d82523d6000602084013e612611565b606091505b50909250905081151560000361262e576040513d806000833e8082fd5b50506040518060c001604052808c64ffffffffff1681526020018b62ffffff16815260200187815260200189815260200186815260200142815250600a60008e8152602001908152602001600020600083815260200190815260200160002060008201518160000160006101000a81548164ffffffffff021916908364ffffffffff16021790555060208201518160000160056101000a81548162ffffff021916908362ffffff16021790555060408201518160010155606082015181600201556080820151816003015560a082015181600401559050507f77e48e0d46be115d5fe8dd03f4dbf8eb309c5fdc8ffdcbe6f8eaa5bd6c65aed98c828d8d8a8d8b6040516127789796959493929190968752602087019590955264ffffffffff93909316604086015262ffffff919091166060850152608084015260a083015260c082015260e00190565b60405180910390a1505050505050505050505050565b6000848152600c60209081526040808320858452909152812060030154819081036127fb5760405162461bcd60e51b815260206004820152601660248201527f7478206461746120646f6573206e6f74206578697374000000000000000000006044820152606401610743565b6000868152600c6020908152604080832087845290915290206002015485146128665760405162461bcd60e51b815260206004820152601560248201527f696e636f727265637420626174636820696e64657800000000000000000000006044820152606401610743565b83836040516020016128799291906140bb565b60408051601f1981840301815291815281516020928301206000898152600c845282812088825290935291206005015490925060ff16905094509492505050565b6128e86040518060400160405280600d81526020016c26a2aa24a9afa6a0a720a3a2a960991b815250610f7d565b6001600160a01b0316336001600160a01b0316146129825760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201526a24a9afa6a0a720a3a2a91760a91b608482015260a401610743565b6007805460ff19169055565b6129bc6040518060400160405280600d81526020016c26a2aa24a9afa6a0a720a3a2a960991b815250610f7d565b6001600160a01b0316336001600160a01b031614612a565760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201526a24a9afa6a0a720a3a2a91760a91b608482015260a401610743565b60008111612aa65760405162461bcd60e51b815260206004820152601360248201527f7365636f6e64732073686f756c642067742030000000000000000000000000006044820152606401610743565b6002548103612af75760405162461bcd60e51b815260206004820152601760248201527f7365636f6e647320686173206e6f74206368616e6765640000000000000000006044820152606401610743565b600255565b612b0861144d856130cd565b6001600160a01b03163303612b855760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e2063616e206e6f742062652063616c6c656420627920746860448201527f652053657175656e6365722e00000000000000000000000000000000000000006064820152608401610743565b6000848152600b60209081526040808320858452909152902060030154612c145760405162461bcd60e51b815260206004820152602760248201527f7468657265206973206e6f207374616b6520666f72207468697320626c6f636b60448201527f206e756d626572000000000000000000000000000000000000000000000000006064820152608401610743565b6000848152600b602090815260408083208584529091529020600201548314612c7f5760405162461bcd60e51b815260206004820152601560248201527f696e636f727265637420626174636820696e64657800000000000000000000006044820152606401610743565b6000848152600b602090815260408083208584529091529020600401544211612d105760405162461bcd60e51b815260206004820152603160248201527f63616e206e6f74207375626d697420647572696e672073657175656e6365722060448201527f7375626d69742070726f74656374696f6e0000000000000000000000000000006064820152608401610743565b6000848152600b602090815260408083208584529091529020546001600160a01b03163314612dd7576002546000858152600b602090815260408083208684529091529020600401544291612d6491613f8c565b10612dd75760405162461bcd60e51b815260206004820152602e60248201527f63616e206e6f74207375626d697420647572696e67207374616b65722073756260448201527f6d69742070726f74656374696f6e0000000000000000000000000000000000006064820152608401610743565b612e138484848460008080604051908082528060200260200182016040528015612e0b578160200160208202803683370190505b50600061322d565b6000848152600b6020908152604080832085845290915281206006015460ff166003811115612e4457612e44613e88565b03613051576000848152600b6020908152604080832085845280835281842060068101805460ff1916600217905580546001600160a01b03168086526009855292852054948790529252600590910154909110801590612ebf57506000858152600b6020908152604080832086845290915290206005015415155b1561304f576000858152600b60209081526040808320868452909152902060050154471015612f305760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610743565b6000858152600b602090815260408083208684528252808320600501546001600160a01b038516845260099092528220805491929091612f71908490613ee6565b90915550506000858152600b602090815260408083208684529091528082206005015490516001600160a01b03841691908381818185875af1925050503d8060008114612fda576040519150601f19603f3d011682016040523d82523d6000602084013e612fdf565b606091505b50509050806130305760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610743565b506000858152600b602090815260408083208684529091528120600501555b505b6000848152600b60209081526040808320858452825280832060050154815133815292830188905290820186905260608201859052608082015260a0810182905260c08101919091527ffa136ae724a018470beba9749c1fdfb83177d6bd6aaaab35d6dbfde739e509109060e00160405180910390a150505050565b60608160000361311057505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561313a5780613124816140e1565b91506131339050600a83614070565b9150613114565b60008167ffffffffffffffff81111561315557613155613af1565b6040519080825280601f01601f19166020018201604052801561317f576020820181803683370190505b509050815b851561322457613195600182613ee6565b905060006131a4600a88614070565b6131af90600a613f6d565b6131b99088613ee6565b6131c49060306140fb565b905060008160f81b9050808484815181106131e1576131e1614120565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061321b600a89614070565b97505050613184565b50949350505050565b600085511161327e5760405162461bcd60e51b815260206004820152600a60248201527f656d7074792064617461000000000000000000000000000000000000000000006044820152606401610743565b6000888152600a602090815260408083208a84529091529020600201546132e75760405162461bcd60e51b815260206004820152601c60248201527f626174636820656c656d656e7420646f6573206e6f74206578697374000000006044820152606401610743565b6000888152600a602090815260408083208a845290915290205465010000000000900462ffffff166133815760405162461bcd60e51b815260206004820152603060248201527f626174636820746f74616c20656c656d656e7420746f20617070656e6420736860448201527f6f756c64206e6f74206265207a65726f000000000000000000000000000000006064820152608401610743565b6000888152600c6020908152604080832089845290915290206003015415613564576000888152600c6020908152604080832089845290915290206005015460ff16156134105760405162461bcd60e51b815260206004820152601060248201527f74782064617461207665726966696564000000000000000000000000000000006044820152606401610743565b6000888152600c602090815260408083208984529091529020546001600160a01b0316331461353e576000888152600c6020908152604080832089845290915290206003015442906134659061070890613f8c565b116134b25760405162461bcd60e51b815260206004820152600d60248201527f696e207375626d697474696e67000000000000000000000000000000000000006044820152606401610743565b6000888152600c60209081526040808320898452909152902080547fffffffffffffffffffffffff000000000000000000000000000000000000000016331781556001810187905560028101889055426003820155600401613514868261419e565b506000888152600c602090815260408083208984529091529020600501805460ff19169055613624565b6000888152600c602090815260408083208984529091529020600401613514868261419e565b6040805160c08101825233815260208082018981528284018b81524260608501908152608085018b8152600060a087018190528f8152600c86528781208e825290955295909320845181547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03909116178155915160018301555160028201559051600382015591519091906004820190613607908261419e565b5060a091909101516005909101805460ff19169115159190911790555b80156136fe576000868660405160200161363f9291906140bb565b60408051601f19818403018152918152815160209283012060008c8152600a84528281208c8252909352908220600301549092506136809083888789613708565b90506001811515146136d45760405162461bcd60e51b815260206004820152601560248201527f7478206461746120766572696679206661696c656400000000000000000000006044820152606401610743565b50506000888152600c602090815260408083208984529091529020600501805460ff191660011790555b5050505050505050565b600080821161377f5760405162461bcd60e51b815260206004820152603760248201527f4c69625f4d65726b6c65547265653a20546f74616c206c6561766573206d757360448201527f742062652067726561746572207468616e207a65726f2e0000000000000000006064820152608401610743565b8184106137f35760405162461bcd60e51b8152602060048201526024808201527f4c69625f4d65726b6c65547265653a20496e646578206f7574206f6620626f7560448201527f6e64732e000000000000000000000000000000000000000000000000000000006064820152608401610743565b6137fc82613975565b8351146138975760405162461bcd60e51b815260206004820152604d60248201527f4c69625f4d65726b6c65547265653a20546f74616c207369626c696e6773206460448201527f6f6573206e6f7420636f72726563746c7920636f72726573706f6e6420746f2060648201527f746f74616c206c65617665732e00000000000000000000000000000000000000608482015260a401610743565b8460005b84518110156139685785600116600103613901578481815181106138c1576138c1614120565b6020026020010151826040516020016138e4929190918252602082015260400190565b60405160208183030381529060405280519060200120915061394f565b8185828151811061391457613914614120565b6020026020010151604051602001613936929190918252602082015260400190565b6040516020818303038152906040528051906020012091505b60019590951c9480613960816140e1565b91505061389b565b5090951495945050505050565b60008082116139ec5760405162461bcd60e51b815260206004820152603060248201527f4c69625f4d65726b6c65547265653a2043616e6e6f7420636f6d70757465206360448201527f65696c286c6f675f3229206f6620302e000000000000000000000000000000006064820152608401610743565b816001036139fc57506000919050565b81600060805b60018110613a3a5780613a18600180831b613ee6565b901b831615613a3257613a2b8183613f8c565b92811c9291505b60011c613a02565b506001811b84146112cc57613a50600182613f8c565b949350505050565b80358015158114613a6857600080fd5b919050565b60008060008060808587031215613a8357600080fd5b843593506020850135925060408501359150613aa160608601613a58565b905092959194509250565b600080600060608486031215613ac157600080fd5b505081359360208301359350604090920135919050565b600060208284031215613aea57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613b4957613b49613af1565b604052919050565b600067ffffffffffffffff831115613b6b57613b6b613af1565b613b7e6020601f19601f86011601613b20565b9050828152838383011115613b9257600080fd5b828260208301376000602084830101529392505050565b600060208284031215613bbb57600080fd5b813567ffffffffffffffff811115613bd257600080fd5b8201601f81018413613be357600080fd5b613a5084823560208401613b51565b60005b83811015613c0d578181015183820152602001613bf5565b83811115613c1c576000848401525b50505050565b60008151808452613c3a816020860160208601613bf2565b601f01601f19169290920160200192915050565b604081526000613c616040830185613c22565b905082151560208301529392505050565b6020815260006112cc6020830184613c22565b6001600160a01b0381168114613c9a57600080fd5b50565b600060208284031215613caf57600080fd5b81356112cc81613c85565b60008060408385031215613ccd57600080fd5b50508035926020909101359150565b600082601f830112613ced57600080fd5b6112cc83833560208501613b51565b600080600080600080600060e0888a031215613d1757600080fd5b87359650602080890135965060408901359550606089013567ffffffffffffffff80821115613d4557600080fd5b613d518c838d01613cdc565b965060808b0135955060a08b0135945060c08b0135915080821115613d7557600080fd5b818b0191508b601f830112613d8957600080fd5b813581811115613d9b57613d9b613af1565b8060051b9150613dac848301613b20565b818152918301840191848101908e841115613dc657600080fd5b938501935b83851015613de457843582529385019390850190613dcb565b80965050505050505092959891949750929550565b60008060408385031215613e0c57600080fd5b8235613e1781613c85565b9150613e2560208401613a58565b90509250929050565b60008060008060808587031215613e4457600080fd5b843593506020850135925060408501359150606085013567ffffffffffffffff811115613e7057600080fd5b613e7c87828801613cdc565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015613ef857613ef8613eb7565b500390565b600060208284031215613f0f57600080fd5b81516112cc81613c85565b600181811c90821680613f2e57607f821691505b602082108103613f67577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b6000816000190483118215151615613f8757613f87613eb7565b500290565b60008219821115613f9f57613f9f613eb7565b500190565b60008251613fb6818460208701613bf2565b7f5f4d564d5f53657175656e6365725f5772617070657200000000000000000000920191825250601601919050565b600064ffffffffff80831681851680830382111561400557614005613eb7565b01949350505050565b60006020828403121561402057600080fd5b5051919050565b600062ffffff8083168185168183048111821515161561404957614049613eb7565b02949350505050565b600062ffffff80831681851680830382111561400557614005613eb7565b6000826140a6577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b8183823760009101908152919050565b828152600082516140d3816020850160208701613bf2565b919091016020019392505050565b600060001982036140f4576140f4613eb7565b5060010190565b600060ff821660ff84168060ff0382111561411857614118613eb7565b019392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b601f82111561419957600081815260208120601f850160051c810160208610156141765750805b601f850160051c820191505b8181101561419557828155600101614182565b5050505b505050565b815167ffffffffffffffff8111156141b8576141b8613af1565b6141cc816141c68454613f1a565b8461414f565b602080601f83116001811461420157600084156141e95750858301515b600019600386901b1c1916600185901b178555614195565b600085815260208120601f198616915b8281101561423057888601518255948401946001909101908401614211565b508582101561424e5787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fea2646970667358221220399360f05caf5c4f912caca9248d7b53f4a27046bd52e312904f590e8d6a7f5364736f6c634300080f0033",
  "deployedBytecode": "0x6080604052600436106102335760003560e01c80637600fa1211610138578063a6a56da5116100b0578063d6a97a341161007f578063f137391611610064578063f137391614610629578063f1e7746114610649578063f6f24f671461066957600080fd5b8063d6a97a34146105ff578063dcd836161461061457600080fd5b8063a6a56da51461058c578063a8cda37b1461059f578063b357ab92146105b4578063d5fb60d9146105ca57600080fd5b806386e4206e116101075780639447fe88116100ec5780639447fe88146105265780639b19251a1461053c578063a5f5e7191461056c57600080fd5b806386e4206e146104e65780638d14e1271461050657600080fd5b80637600fa12146104705780637f9c97771461049057806381147877146104b057806383cbbb6d146104c657600080fd5b80633ac19597116101cb5780634e74b1551161019a57806361f4edea1161017f57806361f4edea146103cc578063669fdeb5146103fa5780636f9170f61461044057600080fd5b80634e74b155146103a25780635e7ce13a146103b757600080fd5b80633ac1959714610337578063461a44781461035757806348406b861461037757806348f241651461038d57600080fd5b8063279f9b1111610207578063279f9b11146102a9578063299ca478146102c957806335005ffb1461030157806338897fdd1461032157600080fd5b806213c63d1461023857806302adf2d61461025c578063167c705014610271578063172e218d14610287575b600080fd5b34801561024457600080fd5b506002545b6040519081526020015b60405180910390f35b34801561026857600080fd5b50600454610249565b34801561027d57600080fd5b5061024960045481565b34801561029357600080fd5b506102a76102a2366004613a6d565b61067f565b005b3480156102b557600080fd5b506102a76102c4366004613aac565b6108c5565b3480156102d557600080fd5b506000546102e9906001600160a01b031681565b6040516001600160a01b039091168152602001610253565b34801561030d57600080fd5b506102a761031c366004613ad8565b610d42565b34801561032d57600080fd5b5061024960015481565b34801561034357600080fd5b506102a7610352366004613ad8565b610eb0565b34801561036357600080fd5b506102e9610372366004613ba9565b610f7d565b34801561038357600080fd5b5061024960065481565b34801561039957600080fd5b50600654610249565b3480156103ae57600080fd5b50600354610249565b3480156103c357600080fd5b50600554610249565b3480156103d857600080fd5b506103ec6103e7366004613aac565b61100e565b604051610253929190613c4e565b34801561040657600080fd5b506104336040518060400160405280600d81526020016c26a2aa24a9afa6a0a720a3a2a960991b81525081565b6040516102539190613c72565b34801561044c57600080fd5b5061046061045b366004613c9d565b6111aa565b6040519015158152602001610253565b34801561047c57600080fd5b5061024961048b366004613cba565b6111d9565b34801561049c57600080fd5b506102a76104ab366004613ad8565b6112d3565b3480156104bc57600080fd5b5061024960055481565b3480156104d257600080fd5b506102a76104e1366004613cfc565b611441565b3480156104f257600080fd5b506102a7610501366004613ad8565b611971565b34801561051257600080fd5b506102a7610521366004613df9565b611adf565b34801561053257600080fd5b5061024960025481565b34801561054857600080fd5b50610460610557366004613c9d565b60086020526000908152604090205460ff1681565b34801561057857600080fd5b506102a7610587366004613ad8565b611bdc565b6102a761059a366004613aac565b611ca9565b3480156105ab57600080fd5b506102a761231c565b3480156105c057600080fd5b5061024960035481565b3480156105d657600080fd5b506105ea6105e5366004613e2e565b61278e565b60408051928352901515602083015201610253565b34801561060b57600080fd5b50600154610249565b34801561062057600080fd5b506102a76128ba565b34801561063557600080fd5b506102a7610644366004613ad8565b61298e565b34801561065557600080fd5b506102a7610664366004613e2e565b612afc565b34801561067557600080fd5b5061024961070881565b6106ad6040518060400160405280600d81526020016c26a2aa24a9afa6a0a720a3a2a960991b815250610f7d565b6001600160a01b0316336001600160a01b03161461074c5760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201526a24a9afa6a0a720a3a2a91760a91b608482015260a4015b60405180910390fd5b6000848152600c6020908152604080832085845290915281206003015490036107b75760405162461bcd60e51b815260206004820152601660248201527f7478206461746120646f6573206e6f74206578697374000000000000000000006044820152606401610743565b6000848152600c6020908152604080832085845290915290206002015483146108225760405162461bcd60e51b815260206004820152601560248201527f696e636f727265637420626174636820696e64657800000000000000000000006044820152606401610743565b6000848152600c6020908152604080832085845290915290206005015481151560ff9091161515036108965760405162461bcd60e51b815260206004820152601a60248201527f766572696669656420737461747573206e6f74206368616e67650000000000006044820152606401610743565b6000938452600c602090815260408086209386529290529220600501805460ff19169215159290921790915550565b6000838152600b602090815260408083208484529091529020600301546109545760405162461bcd60e51b815260206004820152602660248201527f7468657265206973206e6f207374616b6520666f72207468697320626174636860448201527f20696e64657800000000000000000000000000000000000000000000000000006064820152608401610743565b6000838152600b602090815260408083208484529091529020600501546109bd5760405162461bcd60e51b815260206004820152601460248201527f7374616b6520616d6f756e74206973207a65726f0000000000000000000000006044820152606401610743565b6000838152600b6020908152604080832084845290915281206006015460ff1660038111156109ee576109ee613e88565b14610a3b5760405162461bcd60e51b815260206004820152601b60248201527f7769746864726177616c7320617265206e6f7420616c6c6f77656400000000006044820152606401610743565b6000838152600b602090815260408083208484529091529020546001600160a01b03163314610aac5760405162461bcd60e51b815260206004820152601e60248201527f63616e206e6f74207769746864726177206f746865722773207374616b6500006044820152606401610743565b6000838152600b602090815260408083208484529091529020600401544211610b3d5760405162461bcd60e51b815260206004820152602960248201527f63616e206e6f7420776974686472617720647572696e67207375626d6974207060448201527f726f74656374696f6e00000000000000000000000000000000000000000000006064820152608401610743565b33600090815260096020908152604080832054868452600b8352818420858552909252909120600501541115610bb55760405162461bcd60e51b815260206004820152601260248201527f696e73756666696369656e74207374616b6500000000000000000000000000006044820152606401610743565b6000838152600b60209081526040808320848452909152902060050154471015610c215760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610743565b6000838152600b60209081526040808320848452825280832060068101805460ff191660031790556005015433845260099092528220805491929091610c68908490613ee6565b90915550506000838152600b602090815260408083208484529091528082206005015490513391908381818185875af1925050503d8060008114610cc8576040519150601f19603f3d011682016040523d82523d6000602084013e610ccd565b606091505b5050905080610d1e5760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610743565b506000928352600b6020908152604080852092855291905282206005019190915550565b610d706040518060400160405280600d81526020016c26a2aa24a9afa6a0a720a3a2a960991b815250610f7d565b6001600160a01b0316336001600160a01b031614610e0a5760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201526a24a9afa6a0a720a3a2a91760a91b608482015260a401610743565b60008111610e5a5760405162461bcd60e51b815260206004820152601660248201527f736c6963652073697a652073686f756c642067742030000000000000000000006044820152606401610743565b6001548103610eab5760405162461bcd60e51b815260206004820152601a60248201527f736c6963652073697a6520686173206e6f74206368616e6765640000000000006044820152606401610743565b600155565b610ede6040518060400160405280600d81526020016c26a2aa24a9afa6a0a720a3a2a960991b815250610f7d565b6001600160a01b0316336001600160a01b031614610f785760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201526a24a9afa6a0a720a3a2a91760a91b608482015260a401610743565b600655565b600080546040517fbf40fac10000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063bf40fac190610fc7908590600401613c72565b602060405180830381865afa158015610fe4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110089190613efd565b92915050565b6000838152600c6020908152604080832084845290915281206003015460609190810361107d5760405162461bcd60e51b815260206004820152601660248201527f7478206461746120646f6573206e6f74206578697374000000000000000000006044820152606401610743565b6000858152600c6020908152604080832086845290915290206002015484146110e85760405162461bcd60e51b815260206004820152601560248201527f696e636f727265637420626174636820696e64657800000000000000000000006044820152606401610743565b6000858152600c602090815260408083208684529091529020600581015460049091018054909160ff1690829061111e90613f1a565b80601f016020809104026020016040519081016040528092919081815260200182805461114a90613f1a565b80156111975780601f1061116c57610100808354040283529160200191611197565b820191906000526020600020905b81548152906001019060200180831161117a57829003601f168201915b5050505050915091509150935093915050565b60075460009060ff1615806110085750506001600160a01b031660009081526008602052604090205460ff1690565b6000806003541161122c5760405162461bcd60e51b815260206004820152601e60248201527f7374616b65206261736520636f7374206e6f7420636f6e6669672079657400006044820152606401610743565b6000838152600a602090815260408083208584529091529020600201546112955760405162461bcd60e51b815260206004820152601c60248201527f626174636820656c656d656e7420646f6573206e6f74206578697374000000006044820152606401610743565b6006546000848152600a602090815260408083208684529091529020600101546112bf9190613f6d565b6003546112cc9190613f8c565b9392505050565b6113016040518060400160405280600d81526020016c26a2aa24a9afa6a0a720a3a2a960991b815250610f7d565b6001600160a01b0316336001600160a01b03161461139b5760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201526a24a9afa6a0a720a3a2a91760a91b608482015260a401610743565b600081116113eb5760405162461bcd60e51b815260206004820152601760248201527f736c69636520636f756e742073686f756c6420677420300000000000000000006044820152606401610743565b600454810361143c5760405162461bcd60e51b815260206004820152601b60248201527f736c69636520636f756e7420686173206e6f74206368616e67656400000000006044820152606401610743565b600455565b61147161144d886130cd565b60405160200161145d9190613fa4565b604051602081830303815290604052610f7d565b6001600160a01b0316336001600160a01b0316146114f75760405162461bcd60e51b815260206004820152602d60248201527f46756e6374696f6e2063616e206f6e6c792062652063616c6c6564206279207460448201527f68652053657175656e6365722e000000000000000000000000000000000000006064820152608401610743565b6000878152600b602090815260408083208884529091529020600301546115865760405162461bcd60e51b815260206004820152602760248201527f7468657265206973206e6f207374616b6520666f72207468697320626c6f636b60448201527f206e756d626572000000000000000000000000000000000000000000000000006064820152608401610743565b6000878152600b6020908152604080832088845290915290206002015486146115f15760405162461bcd60e51b815260206004820152601560248201527f696e636f727265637420626174636820696e64657800000000000000000000006044820152606401610743565b6000878152600b6020908152604080832088845290915281206006015460ff16600381111561162257611622613e88565b1461166f5760405162461bcd60e51b815260206004820152601560248201527f6e6f7420616c6c6f77656420746f207375626d697400000000000000000000006044820152606401610743565b61168087878787878787600161322d565b6000878152600b6020908152604080832088845290915281206006015460ff1660038111156116b1576116b1613e88565b036118f3576000878152600b6020908152604080832088845280835281842080546001600160a01b0316855260098452918420549389905290915260050154111561173e5760405162461bcd60e51b815260206004820152601260248201527f696e73756666696369656e74207374616b6500000000000000000000000000006044820152606401610743565b6000878152600b602090815260408083208884529091529020600501544710156117aa5760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610743565b6000878152600b60209081526040808320888452909152902060068101805460ff1916600117905560050154156118f3576000878152600b602090815260408083208884528252808320600581015490546001600160a01b031684526009909252822080549192909161181e908490613ee6565b90915550506000878152600b602090815260408083208884529091528082206005015490513391908381818185875af1925050503d806000811461187e576040519150601f19603f3d011682016040523d82523d6000602084013e611883565b606091505b50509050806118d45760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610743565b506000878152600b602090815260408083208884529091528120600501555b6000878152600b602090815260408083208884528252918290206005015482513381529182018a9052818301899052606082018890526080820152600160a0820181905260c082015290517ffa136ae724a018470beba9749c1fdfb83177d6bd6aaaab35d6dbfde739e509109181900360e00190a150505050505050565b61199f6040518060400160405280600d81526020016c26a2aa24a9afa6a0a720a3a2a960991b815250610f7d565b6001600160a01b0316336001600160a01b031614611a395760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201526a24a9afa6a0a720a3a2a91760a91b608482015260a401610743565b60008111611a895760405162461bcd60e51b815260206004820152601660248201527f62617463682073697a652073686f756c642067742030000000000000000000006044820152606401610743565b6005548103611ada5760405162461bcd60e51b815260206004820152601a60248201527f62617463682073697a6520686173206e6f74206368616e6765640000000000006044820152606401610743565b600555565b611b0d6040518060400160405280600d81526020016c26a2aa24a9afa6a0a720a3a2a960991b815250610f7d565b6001600160a01b0316336001600160a01b031614611ba75760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201526a24a9afa6a0a720a3a2a91760a91b608482015260a401610743565b6001600160a01b039091166000908152600860205260409020805491151560ff19928316179055600780549091166001179055565b611c0a6040518060400160405280600d81526020016c26a2aa24a9afa6a0a720a3a2a960991b815250610f7d565b6001600160a01b0316336001600160a01b031614611ca45760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201526a24a9afa6a0a720a3a2a91760a91b608482015260a401610743565b600355565b611cb2336111aa565b611d245760405162461bcd60e51b815260206004820152602360248201527f6f6e6c792077686974656c6973746564207665726966696572732063616e206360448201527f616c6c00000000000000000000000000000000000000000000000000000000006064820152608401610743565b346000611d3185856111d9565b9050600060035411611d855760405162461bcd60e51b815260206004820152601e60248201527f7374616b65206261736520636f7374206e6f7420636f6e6669672079657400006044820152606401610743565b818114611dd45760405162461bcd60e51b815260206004820152601460248201527f7374616b6520636f737420696e636f72726563740000000000000000000000006044820152606401610743565b600060025411611e4c5760405162461bcd60e51b815260206004820152602760248201527f73657175656e636572207375626d6974207365636f6e6473206e6f7420636f6e60448201527f66696720796574000000000000000000000000000000000000000000000000006064820152608401610743565b6000858152600a60209081526040808320878452909152902060020154611eb55760405162461bcd60e51b815260206004820152601c60248201527f626174636820656c656d656e7420646f6573206e6f74206578697374000000006044820152606401610743565b6000858152600a602090815260408083208784529091529020548390611ef19064ffffffffff81169065010000000000900462ffffff16613fe5565b64ffffffffff1610158015611f2557506000858152600a6020908152604080832087845290915290205464ffffffffff1683115b611f975760405162461bcd60e51b815260206004820152602160248201527f626c6f636b206e756d626572206973206e6f7420696e2074686973206261746360448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610743565b6000858152600b602090815260408083208684529091529020600301541561205f5760036000868152600b6020908152604080832087845290915290206006015460ff166003811115611fec57611fec613e88565b1461205f5760405162461bcd60e51b815260206004820152602560248201527f74686572652069732061207374616b6520666f7220746869732062617463682060448201527f696e6465780000000000000000000000000000000000000000000000000000006064820152608401610743565b600061209f6040518060400160405280601481526020017f5374617465436f6d6d69746d656e74436861696e000000000000000000000000815250610f7d565b905042816001600160a01b031663c17b291b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120e0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612104919061400e565b6000888152600a602090815260408083208a845290915290206004015461212b9190613f8c565b1161219e5760405162461bcd60e51b815260206004820152602e60248201527f746865206261746368206973206f757473696465206f6620746865206672617560448201527f642070726f6f662077696e646f770000000000000000000000000000000000006064820152608401610743565b6040518060e00160405280336001600160a01b03168152602001858152602001868152602001428152602001600254426121d89190613f8c565b815260208101859052604001600090526000878152600b60209081526040808320888452825291829020835181547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039091161781559083015160018083019190915591830151600282015560608301516003808301919091556080840151600483015560a0840151600583015560c084015160068301805493949193909260ff199091169190849081111561229857612298613e88565b02179055505033600090815260096020526040812080548693509091906122c0908490613f8c565b9091555050604080513381526020810188905290810186905260608101859052608081018490527f918b3eda1688b2f6d3e6d173db1ec863e43f4d1c369d647b1912b0df8be5f12f9060a00160405180910390a1505050505050565b60043560243560d81c60293560e890811c90602c35901c600036818061234461144d896130cd565b6001600160a01b0316336001600160a01b0316146123ca5760405162461bcd60e51b815260206004820152602d60248201527f46756e6374696f6e2063616e206f6e6c792062652063616c6c6564206279207460448201527f68652053657175656e6365722e000000000000000000000000000000000000006064820152608401610743565b60006123d7866010614027565b6123e290602f614052565b62ffffff169050808411156124815760006123fe826007613f8c565b9050600061240d83600b613f8c565b600554843560cc1c9850833560e01c965081359550909150612430600287614070565b111561247e5760405162461bcd60e51b815260206004820152601c60248201527f73697a65206f66207478206461746120697320746f6f206c61726765000000006044820152606401610743565b50505b60006124c16040518060400160405280601981526020017f43616e6f6e6963616c5472616e73616374696f6e436861696e00000000000000815250610f7d565b90506000816001600160a01b031663cfdf677e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612503573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125279190613efd565b6040517f576f2588000000000000000000000000000000000000000000000000000000008152600481018d90529091506000906001600160a01b0383169063576f258890602401602060405180830381865afa15801561258b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125af919061400e565b9050600080846001600160a01b03166000366040516125cf9291906140ab565b6000604051808303816000865af19150503d806000811461260c576040519150601f19603f3d011682016040523d82523d6000602084013e612611565b606091505b50909250905081151560000361262e576040513d806000833e8082fd5b50506040518060c001604052808c64ffffffffff1681526020018b62ffffff16815260200187815260200189815260200186815260200142815250600a60008e8152602001908152602001600020600083815260200190815260200160002060008201518160000160006101000a81548164ffffffffff021916908364ffffffffff16021790555060208201518160000160056101000a81548162ffffff021916908362ffffff16021790555060408201518160010155606082015181600201556080820151816003015560a082015181600401559050507f77e48e0d46be115d5fe8dd03f4dbf8eb309c5fdc8ffdcbe6f8eaa5bd6c65aed98c828d8d8a8d8b6040516127789796959493929190968752602087019590955264ffffffffff93909316604086015262ffffff919091166060850152608084015260a083015260c082015260e00190565b60405180910390a1505050505050505050505050565b6000848152600c60209081526040808320858452909152812060030154819081036127fb5760405162461bcd60e51b815260206004820152601660248201527f7478206461746120646f6573206e6f74206578697374000000000000000000006044820152606401610743565b6000868152600c6020908152604080832087845290915290206002015485146128665760405162461bcd60e51b815260206004820152601560248201527f696e636f727265637420626174636820696e64657800000000000000000000006044820152606401610743565b83836040516020016128799291906140bb565b60408051601f1981840301815291815281516020928301206000898152600c845282812088825290935291206005015490925060ff16905094509492505050565b6128e86040518060400160405280600d81526020016c26a2aa24a9afa6a0a720a3a2a960991b815250610f7d565b6001600160a01b0316336001600160a01b0316146129825760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201526a24a9afa6a0a720a3a2a91760a91b608482015260a401610743565b6007805460ff19169055565b6129bc6040518060400160405280600d81526020016c26a2aa24a9afa6a0a720a3a2a960991b815250610f7d565b6001600160a01b0316336001600160a01b031614612a565760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201526a24a9afa6a0a720a3a2a91760a91b608482015260a401610743565b60008111612aa65760405162461bcd60e51b815260206004820152601360248201527f7365636f6e64732073686f756c642067742030000000000000000000000000006044820152606401610743565b6002548103612af75760405162461bcd60e51b815260206004820152601760248201527f7365636f6e647320686173206e6f74206368616e6765640000000000000000006044820152606401610743565b600255565b612b0861144d856130cd565b6001600160a01b03163303612b855760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e2063616e206e6f742062652063616c6c656420627920746860448201527f652053657175656e6365722e00000000000000000000000000000000000000006064820152608401610743565b6000848152600b60209081526040808320858452909152902060030154612c145760405162461bcd60e51b815260206004820152602760248201527f7468657265206973206e6f207374616b6520666f72207468697320626c6f636b60448201527f206e756d626572000000000000000000000000000000000000000000000000006064820152608401610743565b6000848152600b602090815260408083208584529091529020600201548314612c7f5760405162461bcd60e51b815260206004820152601560248201527f696e636f727265637420626174636820696e64657800000000000000000000006044820152606401610743565b6000848152600b602090815260408083208584529091529020600401544211612d105760405162461bcd60e51b815260206004820152603160248201527f63616e206e6f74207375626d697420647572696e672073657175656e6365722060448201527f7375626d69742070726f74656374696f6e0000000000000000000000000000006064820152608401610743565b6000848152600b602090815260408083208584529091529020546001600160a01b03163314612dd7576002546000858152600b602090815260408083208684529091529020600401544291612d6491613f8c565b10612dd75760405162461bcd60e51b815260206004820152602e60248201527f63616e206e6f74207375626d697420647572696e67207374616b65722073756260448201527f6d69742070726f74656374696f6e0000000000000000000000000000000000006064820152608401610743565b612e138484848460008080604051908082528060200260200182016040528015612e0b578160200160208202803683370190505b50600061322d565b6000848152600b6020908152604080832085845290915281206006015460ff166003811115612e4457612e44613e88565b03613051576000848152600b6020908152604080832085845280835281842060068101805460ff1916600217905580546001600160a01b03168086526009855292852054948790529252600590910154909110801590612ebf57506000858152600b6020908152604080832086845290915290206005015415155b1561304f576000858152600b60209081526040808320868452909152902060050154471015612f305760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610743565b6000858152600b602090815260408083208684528252808320600501546001600160a01b038516845260099092528220805491929091612f71908490613ee6565b90915550506000858152600b602090815260408083208684529091528082206005015490516001600160a01b03841691908381818185875af1925050503d8060008114612fda576040519150601f19603f3d011682016040523d82523d6000602084013e612fdf565b606091505b50509050806130305760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610743565b506000858152600b602090815260408083208684529091528120600501555b505b6000848152600b60209081526040808320858452825280832060050154815133815292830188905290820186905260608201859052608082015260a0810182905260c08101919091527ffa136ae724a018470beba9749c1fdfb83177d6bd6aaaab35d6dbfde739e509109060e00160405180910390a150505050565b60608160000361311057505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561313a5780613124816140e1565b91506131339050600a83614070565b9150613114565b60008167ffffffffffffffff81111561315557613155613af1565b6040519080825280601f01601f19166020018201604052801561317f576020820181803683370190505b509050815b851561322457613195600182613ee6565b905060006131a4600a88614070565b6131af90600a613f6d565b6131b99088613ee6565b6131c49060306140fb565b905060008160f81b9050808484815181106131e1576131e1614120565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061321b600a89614070565b97505050613184565b50949350505050565b600085511161327e5760405162461bcd60e51b815260206004820152600a60248201527f656d7074792064617461000000000000000000000000000000000000000000006044820152606401610743565b6000888152600a602090815260408083208a84529091529020600201546132e75760405162461bcd60e51b815260206004820152601c60248201527f626174636820656c656d656e7420646f6573206e6f74206578697374000000006044820152606401610743565b6000888152600a602090815260408083208a845290915290205465010000000000900462ffffff166133815760405162461bcd60e51b815260206004820152603060248201527f626174636820746f74616c20656c656d656e7420746f20617070656e6420736860448201527f6f756c64206e6f74206265207a65726f000000000000000000000000000000006064820152608401610743565b6000888152600c6020908152604080832089845290915290206003015415613564576000888152600c6020908152604080832089845290915290206005015460ff16156134105760405162461bcd60e51b815260206004820152601060248201527f74782064617461207665726966696564000000000000000000000000000000006044820152606401610743565b6000888152600c602090815260408083208984529091529020546001600160a01b0316331461353e576000888152600c6020908152604080832089845290915290206003015442906134659061070890613f8c565b116134b25760405162461bcd60e51b815260206004820152600d60248201527f696e207375626d697474696e67000000000000000000000000000000000000006044820152606401610743565b6000888152600c60209081526040808320898452909152902080547fffffffffffffffffffffffff000000000000000000000000000000000000000016331781556001810187905560028101889055426003820155600401613514868261419e565b506000888152600c602090815260408083208984529091529020600501805460ff19169055613624565b6000888152600c602090815260408083208984529091529020600401613514868261419e565b6040805160c08101825233815260208082018981528284018b81524260608501908152608085018b8152600060a087018190528f8152600c86528781208e825290955295909320845181547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03909116178155915160018301555160028201559051600382015591519091906004820190613607908261419e565b5060a091909101516005909101805460ff19169115159190911790555b80156136fe576000868660405160200161363f9291906140bb565b60408051601f19818403018152918152815160209283012060008c8152600a84528281208c8252909352908220600301549092506136809083888789613708565b90506001811515146136d45760405162461bcd60e51b815260206004820152601560248201527f7478206461746120766572696679206661696c656400000000000000000000006044820152606401610743565b50506000888152600c602090815260408083208984529091529020600501805460ff191660011790555b5050505050505050565b600080821161377f5760405162461bcd60e51b815260206004820152603760248201527f4c69625f4d65726b6c65547265653a20546f74616c206c6561766573206d757360448201527f742062652067726561746572207468616e207a65726f2e0000000000000000006064820152608401610743565b8184106137f35760405162461bcd60e51b8152602060048201526024808201527f4c69625f4d65726b6c65547265653a20496e646578206f7574206f6620626f7560448201527f6e64732e000000000000000000000000000000000000000000000000000000006064820152608401610743565b6137fc82613975565b8351146138975760405162461bcd60e51b815260206004820152604d60248201527f4c69625f4d65726b6c65547265653a20546f74616c207369626c696e6773206460448201527f6f6573206e6f7420636f72726563746c7920636f72726573706f6e6420746f2060648201527f746f74616c206c65617665732e00000000000000000000000000000000000000608482015260a401610743565b8460005b84518110156139685785600116600103613901578481815181106138c1576138c1614120565b6020026020010151826040516020016138e4929190918252602082015260400190565b60405160208183030381529060405280519060200120915061394f565b8185828151811061391457613914614120565b6020026020010151604051602001613936929190918252602082015260400190565b6040516020818303038152906040528051906020012091505b60019590951c9480613960816140e1565b91505061389b565b5090951495945050505050565b60008082116139ec5760405162461bcd60e51b815260206004820152603060248201527f4c69625f4d65726b6c65547265653a2043616e6e6f7420636f6d70757465206360448201527f65696c286c6f675f3229206f6620302e000000000000000000000000000000006064820152608401610743565b816001036139fc57506000919050565b81600060805b60018110613a3a5780613a18600180831b613ee6565b901b831615613a3257613a2b8183613f8c565b92811c9291505b60011c613a02565b506001811b84146112cc57613a50600182613f8c565b949350505050565b80358015158114613a6857600080fd5b919050565b60008060008060808587031215613a8357600080fd5b843593506020850135925060408501359150613aa160608601613a58565b905092959194509250565b600080600060608486031215613ac157600080fd5b505081359360208301359350604090920135919050565b600060208284031215613aea57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613b4957613b49613af1565b604052919050565b600067ffffffffffffffff831115613b6b57613b6b613af1565b613b7e6020601f19601f86011601613b20565b9050828152838383011115613b9257600080fd5b828260208301376000602084830101529392505050565b600060208284031215613bbb57600080fd5b813567ffffffffffffffff811115613bd257600080fd5b8201601f81018413613be357600080fd5b613a5084823560208401613b51565b60005b83811015613c0d578181015183820152602001613bf5565b83811115613c1c576000848401525b50505050565b60008151808452613c3a816020860160208601613bf2565b601f01601f19169290920160200192915050565b604081526000613c616040830185613c22565b905082151560208301529392505050565b6020815260006112cc6020830184613c22565b6001600160a01b0381168114613c9a57600080fd5b50565b600060208284031215613caf57600080fd5b81356112cc81613c85565b60008060408385031215613ccd57600080fd5b50508035926020909101359150565b600082601f830112613ced57600080fd5b6112cc83833560208501613b51565b600080600080600080600060e0888a031215613d1757600080fd5b87359650602080890135965060408901359550606089013567ffffffffffffffff80821115613d4557600080fd5b613d518c838d01613cdc565b965060808b0135955060a08b0135945060c08b0135915080821115613d7557600080fd5b818b0191508b601f830112613d8957600080fd5b813581811115613d9b57613d9b613af1565b8060051b9150613dac848301613b20565b818152918301840191848101908e841115613dc657600080fd5b938501935b83851015613de457843582529385019390850190613dcb565b80965050505050505092959891949750929550565b60008060408385031215613e0c57600080fd5b8235613e1781613c85565b9150613e2560208401613a58565b90509250929050565b60008060008060808587031215613e4457600080fd5b843593506020850135925060408501359150606085013567ffffffffffffffff811115613e7057600080fd5b613e7c87828801613cdc565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015613ef857613ef8613eb7565b500390565b600060208284031215613f0f57600080fd5b81516112cc81613c85565b600181811c90821680613f2e57607f821691505b602082108103613f67577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b6000816000190483118215151615613f8757613f87613eb7565b500290565b60008219821115613f9f57613f9f613eb7565b500190565b60008251613fb6818460208701613bf2565b7f5f4d564d5f53657175656e6365725f5772617070657200000000000000000000920191825250601601919050565b600064ffffffffff80831681851680830382111561400557614005613eb7565b01949350505050565b60006020828403121561402057600080fd5b5051919050565b600062ffffff8083168185168183048111821515161561404957614049613eb7565b02949350505050565b600062ffffff80831681851680830382111561400557614005613eb7565b6000826140a6577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b8183823760009101908152919050565b828152600082516140d3816020850160208701613bf2565b919091016020019392505050565b600060001982036140f4576140f4613eb7565b5060010190565b600060ff821660ff84168060ff0382111561411857614118613eb7565b019392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b601f82111561419957600081815260208120601f850160051c810160208610156141765750805b601f850160051c820191505b8181101561419557828155600101614182565b5050505b505050565b815167ffffffffffffffff8111156141b8576141b8613af1565b6141cc816141c68454613f1a565b8461414f565b602080601f83116001811461420157600084156141e95750858301515b600019600386901b1c1916600185901b178555614195565b600085815260208120601f198616915b8281101561423057888601518255948401946001909101908401614211565b508582101561424e5787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fea2646970667358221220399360f05caf5c4f912caca9248d7b53f4a27046bd52e312904f590e8d6a7f5364736f6c634300080f0033",
  "devdoc": {
    "kind": "dev",
    "methods": {
      "appendSequencerBatchByChainId()": {
        "details": "This function uses a custom encoding scheme for efficiency reasons."
      },
      "getBatchTxData(uint256,uint256,uint256)": {
        "params": {
          "_batchIndex": "batch index of CTC.",
          "_blockNumber": "block number.",
          "_chainId": "chain id."
        },
        "returns": {
          "txData": "txData",
          "verified": "verified"
        }
      },
      "getStakeSeqSeconds()": {
        "returns": {
          "_0": "Seconds the Sequencer can sumbit transaction data after verifier staking."
        }
      },
      "resolve(string)": {
        "params": {
          "_name": "Name to resolve an address for."
        },
        "returns": {
          "_0": "Address associated with the given name."
        }
      },
      "setBatchTxDataForStake(uint256,uint256,uint256,bytes,uint256,uint256,bytes32[])": {
        "params": {
          "_batchIndex": "batch index of CTC.",
          "_blockNumber": "slice index.",
          "_chainId": "chain id.",
          "_data": "tx data hex."
        }
      },
      "setBatchTxDataForVerifier(uint256,uint256,uint256,bytes)": {
        "params": {
          "_batchIndex": "batch index of CTC.",
          "_blockNumber": "slice index.",
          "_chainId": "chain id.",
          "_data": "tx data hex."
        }
      },
      "setStakeSeqSeconds(uint256)": {
        "params": {
          "_seconds": "Seconds the Sequencer can sumbit transaction data after verifier staking."
        }
      },
      "setStakeUnitCost(uint256)": {
        "params": {
          "_stakeUnitCost": "Stake cost for verifier."
        }
      },
      "setTxBatchSize(uint256)": {
        "params": {
          "_size": "Batch size of batch."
        }
      },
      "setTxDataSliceCount(uint256)": {
        "params": {
          "_count": "Slice count per batch transaction data."
        }
      },
      "setTxDataSliceSize(uint256)": {
        "params": {
          "_size": "Slice size of batch transaction data."
        }
      },
      "verifierStake(uint256,uint256,uint256)": {
        "params": {
          "_batchIndex": "batch index of CTC.",
          "_blockNumber": "block number.",
          "_chainId": "chain id."
        }
      },
      "withdrawStake(uint256,uint256,uint256)": {
        "params": {
          "_batchIndex": "batch index of CTC.",
          "_blockNumber": "block number.",
          "_chainId": "chain id."
        }
      }
    },
    "version": 1
  },
  "userdoc": {
    "kind": "user",
    "methods": {
      "appendSequencerBatchByChainId()": {
        "notice": "Allows the sequencer to append a batch of transactions."
      },
      "getBatchTxData(uint256,uint256,uint256)": {
        "notice": "Gets batch tx data."
      },
      "getStakeBaseCost()": {
        "notice": "Gets the verifier stake base cost of ETH."
      },
      "getStakeCostByBatch(uint256,uint256)": {
        "notice": "Gets the verifier stake cost of ETH by batch index."
      },
      "getStakeSeqSeconds()": {
        "notice": "Gets seconds can submit transaction data after staking."
      },
      "getStakeUnitCost()": {
        "notice": "Gets the verifier stake unit cost of ETH for per storage unit."
      },
      "getTxBatchSize()": {
        "notice": "Gets batch size per batch."
      },
      "getTxDataSliceCount()": {
        "notice": "Gets slice count per batch transaction data."
      },
      "getTxDataSliceSize()": {
        "notice": "Gets batch transaction data slice size per submit."
      },
      "resolve(string)": {
        "notice": "Resolves the address associated with a given name."
      },
      "setBatchTxDataForStake(uint256,uint256,uint256,bytes,uint256,uint256,bytes32[])": {
        "notice": "Sets batch tx data for stake."
      },
      "setBatchTxDataForVerifier(uint256,uint256,uint256,bytes)": {
        "notice": "Sets batch tx data for verifier."
      },
      "setStakeBaseCost(uint256)": {
        "notice": "receive() external payable { // msg.sender if (msg.sender == resolve('MVM_DiscountOracle')) { uint256 _chainId = getAddressChainId(msg.sender); if (_chainId > 0) { address _to = resolve(string(abi.encodePacked(Lib_Uint.uint2str(_chainId),\"_MVM_Sequencer_Wrapper\"))); if (_to != address(0) && _to != address(this)) { _to.call{value: msg.value}(\"\"); } } } } function setAddressChainId(address _address, uint256 _chainId)  override public onlyManager { require(_address != address(0), \"address not available\"); require(_chainId > 0, \"chainId not available\"); require(addressChains[_address] != _chainId, \"no change\"); addressChains[_address] = _chainId; } function getAddressChainId(address _address) override public view returns (uint256) { return addressChains[_address]; }"
      },
      "setStakeSeqSeconds(uint256)": {
        "notice": "Sets seconds can submit transaction data after staking."
      },
      "setStakeUnitCost(uint256)": {
        "notice": "Sets the verifier stake unit cost of ETH."
      },
      "setTxBatchSize(uint256)": {
        "notice": "Sets batch size per batch."
      },
      "setTxDataSliceCount(uint256)": {
        "notice": "Sets slice count per batch transaction data."
      },
      "setTxDataSliceSize(uint256)": {
        "notice": "Sets batch transaction data slice size per submit."
      },
      "verifierStake(uint256,uint256,uint256)": {
        "notice": "Stake by verifier."
      },
      "withdrawStake(uint256,uint256,uint256)": {
        "notice": "Withdraw stake by verifier."
      }
    },
    "version": 1
  },
  "storageLayout": {
    "storage": [
      {
        "astId": 33414,
        "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
        "label": "libAddressManager",
        "offset": 0,
        "slot": "0",
        "type": "t_contract(Lib_AddressManager)33406"
      },
      {
        "astId": 25138,
        "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
        "label": "txDataSliceSize",
        "offset": 0,
        "slot": "1",
        "type": "t_uint256"
      },
      {
        "astId": 25140,
        "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
        "label": "stakeSeqSeconds",
        "offset": 0,
        "slot": "2",
        "type": "t_uint256"
      },
      {
        "astId": 25142,
        "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
        "label": "stakeBaseCost",
        "offset": 0,
        "slot": "3",
        "type": "t_uint256"
      },
      {
        "astId": 25144,
        "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
        "label": "txDataSliceCount",
        "offset": 0,
        "slot": "4",
        "type": "t_uint256"
      },
      {
        "astId": 25146,
        "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
        "label": "txBatchSize",
        "offset": 0,
        "slot": "5",
        "type": "t_uint256"
      },
      {
        "astId": 25148,
        "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
        "label": "stakeUnitCost",
        "offset": 0,
        "slot": "6",
        "type": "t_uint256"
      },
      {
        "astId": 25150,
        "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
        "label": "useWhiteList",
        "offset": 0,
        "slot": "7",
        "type": "t_bool"
      },
      {
        "astId": 25154,
        "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
        "label": "whitelist",
        "offset": 0,
        "slot": "8",
        "type": "t_mapping(t_address,t_bool)"
      },
      {
        "astId": 25158,
        "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
        "label": "verifierStakes",
        "offset": 0,
        "slot": "9",
        "type": "t_mapping(t_address,t_uint256)"
      },
      {
        "astId": 25165,
        "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
        "label": "queueBatchElement",
        "offset": 0,
        "slot": "10",
        "type": "t_mapping(t_uint256,t_mapping(t_uint256,t_struct(BatchElement)31290_storage))"
      },
      {
        "astId": 25172,
        "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
        "label": "queueTxDataRequestStake",
        "offset": 0,
        "slot": "11",
        "type": "t_mapping(t_uint256,t_mapping(t_uint256,t_struct(TxDataRequestStake)31277_storage))"
      },
      {
        "astId": 25179,
        "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
        "label": "queueTxData",
        "offset": 0,
        "slot": "12",
        "type": "t_mapping(t_uint256,t_mapping(t_uint256,t_struct(TxDataSlice)31261_storage))"
      }
    ],
    "types": {
      "t_address": {
        "encoding": "inplace",
        "label": "address",
        "numberOfBytes": "20"
      },
      "t_bool": {
        "encoding": "inplace",
        "label": "bool",
        "numberOfBytes": "1"
      },
      "t_bytes32": {
        "encoding": "inplace",
        "label": "bytes32",
        "numberOfBytes": "32"
      },
      "t_bytes_storage": {
        "encoding": "bytes",
        "label": "bytes",
        "numberOfBytes": "32"
      },
      "t_contract(Lib_AddressManager)33406": {
        "encoding": "inplace",
        "label": "contract Lib_AddressManager",
        "numberOfBytes": "20"
      },
      "t_enum(STAKESTATUS)31204": {
        "encoding": "inplace",
        "label": "enum iMVM_CanonicalTransaction.STAKESTATUS",
        "numberOfBytes": "1"
      },
      "t_mapping(t_address,t_bool)": {
        "encoding": "mapping",
        "key": "t_address",
        "label": "mapping(address => bool)",
        "numberOfBytes": "32",
        "value": "t_bool"
      },
      "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_mapping(t_uint256,t_struct(BatchElement)31290_storage))": {
        "encoding": "mapping",
        "key": "t_uint256",
        "label": "mapping(uint256 => mapping(uint256 => struct iMVM_CanonicalTransaction.BatchElement))",
        "numberOfBytes": "32",
        "value": "t_mapping(t_uint256,t_struct(BatchElement)31290_storage)"
      },
      "t_mapping(t_uint256,t_mapping(t_uint256,t_struct(TxDataRequestStake)31277_storage))": {
        "encoding": "mapping",
        "key": "t_uint256",
        "label": "mapping(uint256 => mapping(uint256 => struct iMVM_CanonicalTransaction.TxDataRequestStake))",
        "numberOfBytes": "32",
        "value": "t_mapping(t_uint256,t_struct(TxDataRequestStake)31277_storage)"
      },
      "t_mapping(t_uint256,t_mapping(t_uint256,t_struct(TxDataSlice)31261_storage))": {
        "encoding": "mapping",
        "key": "t_uint256",
        "label": "mapping(uint256 => mapping(uint256 => struct iMVM_CanonicalTransaction.TxDataSlice))",
        "numberOfBytes": "32",
        "value": "t_mapping(t_uint256,t_struct(TxDataSlice)31261_storage)"
      },
      "t_mapping(t_uint256,t_struct(BatchElement)31290_storage)": {
        "encoding": "mapping",
        "key": "t_uint256",
        "label": "mapping(uint256 => struct iMVM_CanonicalTransaction.BatchElement)",
        "numberOfBytes": "32",
        "value": "t_struct(BatchElement)31290_storage"
      },
      "t_mapping(t_uint256,t_struct(TxDataRequestStake)31277_storage)": {
        "encoding": "mapping",
        "key": "t_uint256",
        "label": "mapping(uint256 => struct iMVM_CanonicalTransaction.TxDataRequestStake)",
        "numberOfBytes": "32",
        "value": "t_struct(TxDataRequestStake)31277_storage"
      },
      "t_mapping(t_uint256,t_struct(TxDataSlice)31261_storage)": {
        "encoding": "mapping",
        "key": "t_uint256",
        "label": "mapping(uint256 => struct iMVM_CanonicalTransaction.TxDataSlice)",
        "numberOfBytes": "32",
        "value": "t_struct(TxDataSlice)31261_storage"
      },
      "t_struct(BatchElement)31290_storage": {
        "encoding": "inplace",
        "label": "struct iMVM_CanonicalTransaction.BatchElement",
        "members": [
          {
            "astId": 31279,
            "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
            "label": "shouldStartAtElement",
            "offset": 0,
            "slot": "0",
            "type": "t_uint40"
          },
          {
            "astId": 31281,
            "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
            "label": "totalElementsToAppend",
            "offset": 5,
            "slot": "0",
            "type": "t_uint24"
          },
          {
            "astId": 31283,
            "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
            "label": "txBatchSize",
            "offset": 0,
            "slot": "1",
            "type": "t_uint256"
          },
          {
            "astId": 31285,
            "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
            "label": "txBatchTime",
            "offset": 0,
            "slot": "2",
            "type": "t_uint256"
          },
          {
            "astId": 31287,
            "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
            "label": "root",
            "offset": 0,
            "slot": "3",
            "type": "t_bytes32"
          },
          {
            "astId": 31289,
            "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
            "label": "timestamp",
            "offset": 0,
            "slot": "4",
            "type": "t_uint256"
          }
        ],
        "numberOfBytes": "160"
      },
      "t_struct(TxDataRequestStake)31277_storage": {
        "encoding": "inplace",
        "label": "struct iMVM_CanonicalTransaction.TxDataRequestStake",
        "members": [
          {
            "astId": 31263,
            "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
            "label": "sender",
            "offset": 0,
            "slot": "0",
            "type": "t_address"
          },
          {
            "astId": 31265,
            "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
            "label": "blockNumber",
            "offset": 0,
            "slot": "1",
            "type": "t_uint256"
          },
          {
            "astId": 31267,
            "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
            "label": "batchIndex",
            "offset": 0,
            "slot": "2",
            "type": "t_uint256"
          },
          {
            "astId": 31269,
            "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
            "label": "timestamp",
            "offset": 0,
            "slot": "3",
            "type": "t_uint256"
          },
          {
            "astId": 31271,
            "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
            "label": "endtime",
            "offset": 0,
            "slot": "4",
            "type": "t_uint256"
          },
          {
            "astId": 31273,
            "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
            "label": "amount",
            "offset": 0,
            "slot": "5",
            "type": "t_uint256"
          },
          {
            "astId": 31276,
            "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
            "label": "status",
            "offset": 0,
            "slot": "6",
            "type": "t_enum(STAKESTATUS)31204"
          }
        ],
        "numberOfBytes": "224"
      },
      "t_struct(TxDataSlice)31261_storage": {
        "encoding": "inplace",
        "label": "struct iMVM_CanonicalTransaction.TxDataSlice",
        "members": [
          {
            "astId": 31250,
            "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
            "label": "sender",
            "offset": 0,
            "slot": "0",
            "type": "t_address"
          },
          {
            "astId": 31252,
            "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
            "label": "blockNumber",
            "offset": 0,
            "slot": "1",
            "type": "t_uint256"
          },
          {
            "astId": 31254,
            "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
            "label": "batchIndex",
            "offset": 0,
            "slot": "2",
            "type": "t_uint256"
          },
          {
            "astId": 31256,
            "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
            "label": "timestamp",
            "offset": 0,
            "slot": "3",
            "type": "t_uint256"
          },
          {
            "astId": 31258,
            "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
            "label": "txData",
            "offset": 0,
            "slot": "4",
            "type": "t_bytes_storage"
          },
          {
            "astId": 31260,
            "contract": "contracts/MVM/MVM_CanonicalTransaction.sol:MVM_CanonicalTransaction",
            "label": "verified",
            "offset": 0,
            "slot": "5",
            "type": "t_bool"
          }
        ],
        "numberOfBytes": "192"
      },
      "t_uint24": {
        "encoding": "inplace",
        "label": "uint24",
        "numberOfBytes": "3"
      },
      "t_uint256": {
        "encoding": "inplace",
        "label": "uint256",
        "numberOfBytes": "32"
      },
      "t_uint40": {
        "encoding": "inplace",
        "label": "uint40",
        "numberOfBytes": "5"
      }
    }
  }
}