{
  "address": "0xca2028b5e0FFD4a5236fBBb0bC8C4A7C079be1B0",
  "abi": [
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "amount",
          "type": "uint256"
        }
      ],
      "name": "DefaultSlashAmountUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "nonce",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "candidate",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "uint64",
          "name": "slashBlock",
          "type": "uint64"
        },
        {
          "indexed": false,
          "internalType": "string",
          "name": "manifest",
          "type": "string"
        },
        {
          "indexed": false,
          "internalType": "uint64",
          "name": "accuracy",
          "type": "uint64"
        }
      ],
      "name": "DraftSlash",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint64",
          "name": "drafterCoef",
          "type": "uint64"
        }
      ],
      "name": "DrafterCoefUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "nonce",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "executor",
          "type": "address"
        }
      ],
      "name": "ExecuteSlash",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "executorCoef",
          "type": "uint256"
        }
      ],
      "name": "ExecutorCoefUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "address",
          "name": "governance",
          "type": "address"
        }
      ],
      "name": "GovernanceUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint8",
          "name": "version",
          "type": "uint8"
        }
      ],
      "name": "Initialized",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "contract IMajorCandidates",
          "name": "majorCandidates",
          "type": "address"
        }
      ],
      "name": "MajorCandidatesUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "maxCoef",
          "type": "uint256"
        }
      ],
      "name": "MaxCoefUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "address",
          "name": "previousOwner",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "newOwner",
          "type": "address"
        }
      ],
      "name": "OwnershipTransferred",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "period",
          "type": "uint256"
        }
      ],
      "name": "PublicNoticePeriodUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "nonce",
          "type": "uint256"
        }
      ],
      "name": "RejectSlash",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "contract IStake",
          "name": "stake",
          "type": "address"
        }
      ],
      "name": "StakeUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "validatorCoef",
          "type": "uint256"
        }
      ],
      "name": "ValidatorCoefUpdated",
      "type": "event"
    },
    {
      "inputs": [],
      "name": "MAXCOEF",
      "outputs": [
        {
          "internalType": "uint64",
          "name": "",
          "type": "uint64"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "newGovernance",
          "type": "address"
        }
      ],
      "name": "changeGovernance",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "hash",
          "type": "bytes32"
        },
        {
          "internalType": "bytes[]",
          "name": "signatures",
          "type": "bytes[]"
        }
      ],
      "name": "checkNSignatures",
      "outputs": [
        {
          "internalType": "address[]",
          "name": "signers",
          "type": "address[]"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "defaultSlashAmount",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint64",
          "name": "slashBlock",
          "type": "uint64"
        },
        {
          "internalType": "string",
          "name": "manifest",
          "type": "string"
        },
        {
          "internalType": "uint64",
          "name": "accuracy",
          "type": "uint64"
        },
        {
          "internalType": "bytes[]",
          "name": "signatures",
          "type": "bytes[]"
        }
      ],
      "name": "draft",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "drafterCoef",
      "outputs": [
        {
          "internalType": "uint64",
          "name": "",
          "type": "uint64"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_nonce",
          "type": "uint256"
        }
      ],
      "name": "endOf",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "string",
          "name": "manifest",
          "type": "string"
        }
      ],
      "name": "execute",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "executorCoef",
      "outputs": [
        {
          "internalType": "uint64",
          "name": "",
          "type": "uint64"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_nonce",
          "type": "uint256"
        }
      ],
      "name": "getSlashAt",
      "outputs": [
        {
          "components": [
            {
              "internalType": "address",
              "name": "candidate",
              "type": "address"
            },
            {
              "internalType": "address",
              "name": "drafter",
              "type": "address"
            },
            {
              "internalType": "address[]",
              "name": "validators",
              "type": "address[]"
            },
            {
              "internalType": "uint256",
              "name": "amount",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "timestamp",
              "type": "uint256"
            },
            {
              "internalType": "enum Types.SlashStatus",
              "name": "status",
              "type": "uint8"
            }
          ],
          "internalType": "struct Types.SlashInfo",
          "name": "",
          "type": "tuple"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "governance",
      "outputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "newOwner",
          "type": "address"
        },
        {
          "internalType": "address",
          "name": "_governance",
          "type": "address"
        },
        {
          "internalType": "contract IStake",
          "name": "_stake",
          "type": "address"
        },
        {
          "internalType": "contract IMajorCandidates",
          "name": "_majorCandidates",
          "type": "address"
        },
        {
          "internalType": "uint256",
          "name": "_defaultSlashAmount",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_publicNoticePeriod",
          "type": "uint256"
        },
        {
          "internalType": "uint64",
          "name": "maxCoef",
          "type": "uint64"
        },
        {
          "internalType": "uint64",
          "name": "_drafterCoef",
          "type": "uint64"
        },
        {
          "internalType": "uint64",
          "name": "_validatorCoef",
          "type": "uint64"
        },
        {
          "internalType": "uint64",
          "name": "_executorCoef",
          "type": "uint64"
        }
      ],
      "name": "initialize",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "majorCandidates",
      "outputs": [
        {
          "internalType": "contract IMajorCandidates",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "nonce",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "candidate",
          "type": "address"
        }
      ],
      "name": "nonceOf",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "owner",
      "outputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "publicNoticePeriod",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "string",
          "name": "manifest",
          "type": "string"
        }
      ],
      "name": "reject",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "renounceOwnership",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint64",
          "name": "_drafterCoef",
          "type": "uint64"
        }
      ],
      "name": "setDrafterCoef",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint64",
          "name": "_executorCoef",
          "type": "uint64"
        }
      ],
      "name": "setExecutorCoef",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint64",
          "name": "_validatorCoef",
          "type": "uint64"
        }
      ],
      "name": "setValidatorCoef",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "candidate",
          "type": "address"
        }
      ],
      "name": "slashExists",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "stake",
      "outputs": [
        {
          "internalType": "contract IStake",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "newOwner",
          "type": "address"
        }
      ],
      "name": "transferOwnership",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "validatorCoef",
      "outputs": [
        {
          "internalType": "uint64",
          "name": "",
          "type": "uint64"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    }
  ],
  "transactionHash": "0x19e05549a7327d3433ce4ca7b8b92cc43d24daeea8d49e2484e6dda9a16b9e3e",
  "receipt": {
    "to": null,
    "from": "0xF1658C608708172655A8e70a1624c29F956Ee63D",
    "contractAddress": "0xca2028b5e0FFD4a5236fBBb0bC8C4A7C079be1B0",
    "transactionIndex": 31,
    "gasUsed": "2555118",
    "logsBloom": "0x00000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000008000000000000000000000010000000000800000000000000000000100000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000080000000000000000000000000000000000000000004000000000000000000001200000000100000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000100000",
    "blockHash": "0x64ceacec020d436bad5c45456c156e171bf359ec4a3cfab8dc9dee15adebccc7",
    "transactionHash": "0x19e05549a7327d3433ce4ca7b8b92cc43d24daeea8d49e2484e6dda9a16b9e3e",
    "logs": [
      {
        "transactionIndex": 31,
        "blockNumber": 28316107,
        "transactionHash": "0x19e05549a7327d3433ce4ca7b8b92cc43d24daeea8d49e2484e6dda9a16b9e3e",
        "address": "0x0000000000000000000000000000000000001010",
        "topics": [
          "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63",
          "0x0000000000000000000000000000000000000000000000000000000000001010",
          "0x000000000000000000000000f1658c608708172655a8e70a1624c29f956ee63d",
          "0x0000000000000000000000003a22c8bc68e98b0faf40f349dd2b2890fae01484"
        ],
        "data": "0x0000000000000000000000000000000000000000000000000016b1aa6dda561600000000000000000000000000000000000000000000000049ab1e7bc8ecda7400000000000000000000000000000000000000000000000075d95555ebf6b8c300000000000000000000000000000000000000000000000049946cd15b12845e00000000000000000000000000000000000000000000000075f0070059d10ed9",
        "logIndex": 175,
        "blockHash": "0x64ceacec020d436bad5c45456c156e171bf359ec4a3cfab8dc9dee15adebccc7"
      }
    ],
    "blockNumber": 28316107,
    "cumulativeGasUsed": "8448770",
    "status": 1,
    "byzantium": true
  },
  "args": [],
  "numDeployments": 1,
  "solcInputHash": "28a0b0bba0d34a2e0f97b06f2c3c6d0b",
  "metadata": "{\"compiler\":{\"version\":\"0.8.9+commit.e5eed63a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"DefaultSlashAmountUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"candidate\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"slashBlock\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"manifest\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"accuracy\",\"type\":\"uint64\"}],\"name\":\"DraftSlash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"drafterCoef\",\"type\":\"uint64\"}],\"name\":\"DrafterCoefUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"executor\",\"type\":\"address\"}],\"name\":\"ExecuteSlash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"executorCoef\",\"type\":\"uint256\"}],\"name\":\"ExecutorCoefUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"governance\",\"type\":\"address\"}],\"name\":\"GovernanceUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"contract IMajorCandidates\",\"name\":\"majorCandidates\",\"type\":\"address\"}],\"name\":\"MajorCandidatesUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxCoef\",\"type\":\"uint256\"}],\"name\":\"MaxCoefUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"period\",\"type\":\"uint256\"}],\"name\":\"PublicNoticePeriodUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"}],\"name\":\"RejectSlash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"contract IStake\",\"name\":\"stake\",\"type\":\"address\"}],\"name\":\"StakeUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"validatorCoef\",\"type\":\"uint256\"}],\"name\":\"ValidatorCoefUpdated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MAXCOEF\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newGovernance\",\"type\":\"address\"}],\"name\":\"changeGovernance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"}],\"name\":\"checkNSignatures\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultSlashAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"slashBlock\",\"type\":\"uint64\"},{\"internalType\":\"string\",\"name\":\"manifest\",\"type\":\"string\"},{\"internalType\":\"uint64\",\"name\":\"accuracy\",\"type\":\"uint64\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"}],\"name\":\"draft\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"drafterCoef\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_nonce\",\"type\":\"uint256\"}],\"name\":\"endOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"manifest\",\"type\":\"string\"}],\"name\":\"execute\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"executorCoef\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_nonce\",\"type\":\"uint256\"}],\"name\":\"getSlashAt\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"candidate\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"drafter\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"validators\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"enum Types.SlashStatus\",\"name\":\"status\",\"type\":\"uint8\"}],\"internalType\":\"struct Types.SlashInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"governance\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_governance\",\"type\":\"address\"},{\"internalType\":\"contract IStake\",\"name\":\"_stake\",\"type\":\"address\"},{\"internalType\":\"contract IMajorCandidates\",\"name\":\"_majorCandidates\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_defaultSlashAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_publicNoticePeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"maxCoef\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"_drafterCoef\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"_validatorCoef\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"_executorCoef\",\"type\":\"uint64\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"majorCandidates\",\"outputs\":[{\"internalType\":\"contract IMajorCandidates\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"candidate\",\"type\":\"address\"}],\"name\":\"nonceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"publicNoticePeriod\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"manifest\",\"type\":\"string\"}],\"name\":\"reject\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"_drafterCoef\",\"type\":\"uint64\"}],\"name\":\"setDrafterCoef\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"_executorCoef\",\"type\":\"uint64\"}],\"name\":\"setExecutorCoef\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"_validatorCoef\",\"type\":\"uint64\"}],\"name\":\"setValidatorCoef\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"candidate\",\"type\":\"address\"}],\"name\":\"slashExists\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stake\",\"outputs\":[{\"internalType\":\"contract IStake\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"validatorCoef\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Alexandas\",\"details\":\"Slasher contract\",\"kind\":\"dev\",\"methods\":{\"checkNSignatures(bytes32,bytes[])\":{\"details\":\"check whether signatures is valid\",\"params\":{\"hash\":\"message hash\",\"signatures\":\"signatures for major candidates\",\"signers\":\"major candidate signers\"}},\"draft(uint64,string,uint64,bytes[])\":{\"details\":\"draft a slash\",\"params\":{\"accuracy\":\"posc accuracy\",\"manifest\":\"node manifest\",\"signatures\":\"major candidates signatures\",\"slashBlock\":\"slashed block in posc\"}},\"execute(string)\":{\"details\":\"execute a slash\",\"params\":{\"manifest\":\"node manifest\"}},\"getSlashAt(uint256)\":{\"details\":\"return slash information at a specific nonce\",\"params\":{\"_nonce\":\"nonce number\"},\"returns\":{\"_0\":\"slash information\"}},\"initialize(address,address,address,address,uint256,uint256,uint64,uint64,uint64,uint64)\":{\"details\":\"proxy initialize function\",\"params\":{\"_defaultSlashAmount\":\"default slash amount\",\"_drafterCoef\":\"drafter slash reward coefficient\",\"_executorCoef\":\"executor slash reward coefficient\",\"_governance\":\"governance address\",\"_majorCandidates\":\"`MajorCandidates` contract\",\"_publicNoticePeriod\":\"public notice period\",\"_stake\":\"`Stake` contract\",\"_validatorCoef\":\"validator slash reward coefficient\",\"maxCoef\":\"max coefficient\",\"newOwner\":\"contract owner\"}},\"nonceOf(address)\":{\"details\":\"return nonce given a candidate if the candidate is in slashing\",\"params\":{\"candidate\":\"candidate address\"},\"returns\":{\"_0\":\"nonce number\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"reject(string)\":{\"details\":\"reject a slash\",\"params\":{\"manifest\":\"node manifest\"}},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"setDrafterCoef(uint64)\":{\"details\":\"set drafter slash reward coefficient\",\"params\":{\"_drafterCoef\":\"drafter slash reward coefficient\"}},\"setExecutorCoef(uint64)\":{\"details\":\"set executor slash reward coefficient\",\"params\":{\"_executorCoef\":\"executor slash reward coefficient\"}},\"setValidatorCoef(uint64)\":{\"details\":\"set validator slash reward coefficient\",\"params\":{\"_validatorCoef\":\"validator slash reward coefficient\"}},\"slashExists(address)\":{\"details\":\"return whether candidate is in slashing\",\"params\":{\"candidate\":\"candidate address\"},\"returns\":{\"_0\":\"whether candidate is in slashing\"}},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"stateVariables\":{\"MAXCOEF\":{\"details\":\"return max coefficient\"},\"defaultSlashAmount\":{\"details\":\"return default slash amount\"},\"drafterCoef\":{\"details\":\"return drafter slash reward coefficient\"},\"executorCoef\":{\"details\":\"return executor slash reward coefficient\"},\"governance\":{\"details\":\"governance address\"},\"majorCandidates\":{\"details\":\"return `MajorCandidates` contract address\"},\"nonce\":{\"details\":\"return current slash nonce\"},\"publicNoticePeriod\":{\"details\":\"return public notice period\"},\"stake\":{\"details\":\"return `Stake` contract address\"},\"validatorCoef\":{\"details\":\"return validator slash reward coefficient\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/slasher/Slasher.sol\":\"Slasher\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"details\":{\"constantOptimizer\":true,\"cse\":true,\"deduplicate\":true,\"inliner\":true,\"jumpdestRemover\":true,\"orderLiterals\":true,\"peephole\":true,\"yul\":false},\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.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/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {\\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    function __Ownable_init() internal onlyInitializing {\\n        __Ownable_init_unchained();\\n    }\\n\\n    function __Ownable_init_unchained() internal onlyInitializing {\\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    /**\\n     * @dev This empty reserved space is put in place to allow future versions to add new\\n     * variables without shifting down storage in the inheritance chain.\\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n     */\\n    uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x247c62047745915c0af6b955470a72d1696ebad4352d7d3011aef1a2463cd888\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * contract MyToken is ERC20Upgradeable {\\n *     function initialize() initializer public {\\n *         __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n *     }\\n * }\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n *     function initializeV2() reinitializer(2) public {\\n *         __ERC20Permit_init(\\\"MyToken\\\");\\n *     }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n *     _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n    /**\\n     * @dev Indicates that the contract has been initialized.\\n     * @custom:oz-retyped-from bool\\n     */\\n    uint8 private _initialized;\\n\\n    /**\\n     * @dev Indicates that the contract is in the process of being initialized.\\n     */\\n    bool private _initializing;\\n\\n    /**\\n     * @dev Triggered when the contract has been initialized or reinitialized.\\n     */\\n    event Initialized(uint8 version);\\n\\n    /**\\n     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n     * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`.\\n     */\\n    modifier initializer() {\\n        bool isTopLevelCall = !_initializing;\\n        require(\\n            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\\n            \\\"Initializable: contract is already initialized\\\"\\n        );\\n        _initialized = 1;\\n        if (isTopLevelCall) {\\n            _initializing = true;\\n        }\\n        _;\\n        if (isTopLevelCall) {\\n            _initializing = false;\\n            emit Initialized(1);\\n        }\\n    }\\n\\n    /**\\n     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n     * used to initialize parent contracts.\\n     *\\n     * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original\\n     * initialization step. This is essential to configure modules that are added through upgrades and that require\\n     * initialization.\\n     *\\n     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n     * a contract, executing them in the right order is up to the developer or operator.\\n     */\\n    modifier reinitializer(uint8 version) {\\n        require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n        _initialized = version;\\n        _initializing = true;\\n        _;\\n        _initializing = false;\\n        emit Initialized(version);\\n    }\\n\\n    /**\\n     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n     * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n     */\\n    modifier onlyInitializing() {\\n        require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n        _;\\n    }\\n\\n    /**\\n     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n     * through proxies.\\n     */\\n    function _disableInitializers() internal virtual {\\n        require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n        if (_initialized < type(uint8).max) {\\n            _initialized = type(uint8).max;\\n            emit Initialized(type(uint8).max);\\n        }\\n    }\\n}\\n\",\"keccak256\":\"0x0203dcadc5737d9ef2c211d6fa15d18ebc3b30dfa51903b64870b01a062b0b4e\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20Upgradeable {\\n    /**\\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n     * another (`to`).\\n     *\\n     * Note that `value` may be zero.\\n     */\\n    event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n    /**\\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n     * a call to {approve}. `value` is the new allowance.\\n     */\\n    event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n    /**\\n     * @dev Returns the amount of tokens in existence.\\n     */\\n    function totalSupply() external view returns (uint256);\\n\\n    /**\\n     * @dev Returns the amount of tokens owned by `account`.\\n     */\\n    function balanceOf(address account) external view returns (uint256);\\n\\n    /**\\n     * @dev Moves `amount` tokens from the caller's account to `to`.\\n     *\\n     * Returns a boolean value indicating whether the operation succeeded.\\n     *\\n     * Emits a {Transfer} event.\\n     */\\n    function transfer(address to, uint256 amount) external returns (bool);\\n\\n    /**\\n     * @dev Returns the remaining number of tokens that `spender` will be\\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n     * zero by default.\\n     *\\n     * This value changes when {approve} or {transferFrom} are called.\\n     */\\n    function allowance(address owner, address spender) external view returns (uint256);\\n\\n    /**\\n     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n     *\\n     * Returns a boolean value indicating whether the operation succeeded.\\n     *\\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n     * that someone may use both the old and the new allowance by unfortunate\\n     * transaction ordering. One possible solution to mitigate this race\\n     * condition is to first reduce the spender's allowance to 0 and set the\\n     * desired value afterwards:\\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n     *\\n     * Emits an {Approval} event.\\n     */\\n    function approve(address spender, uint256 amount) external returns (bool);\\n\\n    /**\\n     * @dev Moves `amount` tokens from `from` to `to` using the\\n     * allowance mechanism. `amount` is then deducted from the caller's\\n     * allowance.\\n     *\\n     * Returns a boolean value indicating whether the operation succeeded.\\n     *\\n     * Emits a {Transfer} event.\\n     */\\n    function transferFrom(\\n        address from,\\n        address to,\\n        uint256 amount\\n    ) external returns (bool);\\n}\\n\",\"keccak256\":\"0x4e733d3164f73f461eaf9d8087a7ad1ea180bdc8ba0d3d61b0e1ae16d8e63dff\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n    /**\\n     * @dev Returns true if `account` is a contract.\\n     *\\n     * [IMPORTANT]\\n     * ====\\n     * It is unsafe to assume that an address for which this function returns\\n     * false is an externally-owned account (EOA) and not a contract.\\n     *\\n     * Among others, `isContract` will return false for the following\\n     * types of addresses:\\n     *\\n     *  - an externally-owned account\\n     *  - a contract in construction\\n     *  - an address where a contract will be created\\n     *  - an address where a contract lived, but was destroyed\\n     * ====\\n     *\\n     * [IMPORTANT]\\n     * ====\\n     * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n     *\\n     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n     * constructor.\\n     * ====\\n     */\\n    function isContract(address account) internal view returns (bool) {\\n        // This method relies on extcodesize/address.code.length, which returns 0\\n        // for contracts in construction, since the code is only stored at the end\\n        // of the constructor execution.\\n\\n        return account.code.length > 0;\\n    }\\n\\n    /**\\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n     * `recipient`, forwarding all available gas and reverting on errors.\\n     *\\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n     * imposed by `transfer`, making them unable to receive funds via\\n     * `transfer`. {sendValue} removes this limitation.\\n     *\\n     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n     *\\n     * IMPORTANT: because control is transferred to `recipient`, care must be\\n     * taken to not create reentrancy vulnerabilities. Consider using\\n     * {ReentrancyGuard} or the\\n     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n     */\\n    function sendValue(address payable recipient, uint256 amount) internal {\\n        require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n        (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n        require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n    }\\n\\n    /**\\n     * @dev Performs a Solidity function call using a low level `call`. A\\n     * plain `call` is an unsafe replacement for a function call: use this\\n     * function instead.\\n     *\\n     * If `target` reverts with a revert reason, it is bubbled up by this\\n     * function (like regular Solidity function calls).\\n     *\\n     * Returns the raw returned data. To convert to the expected return value,\\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n     *\\n     * Requirements:\\n     *\\n     * - `target` must be a contract.\\n     * - calling `target` with `data` must not revert.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n        return functionCall(target, data, \\\"Address: low-level call failed\\\");\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n     * `errorMessage` as a fallback revert reason when `target` reverts.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCall(\\n        address target,\\n        bytes memory data,\\n        string memory errorMessage\\n    ) internal returns (bytes memory) {\\n        return functionCallWithValue(target, data, 0, errorMessage);\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n     * but also transferring `value` wei to `target`.\\n     *\\n     * Requirements:\\n     *\\n     * - the calling contract must have an ETH balance of at least `value`.\\n     * - the called Solidity function must be `payable`.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCallWithValue(\\n        address target,\\n        bytes memory data,\\n        uint256 value\\n    ) internal returns (bytes memory) {\\n        return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n     * with `errorMessage` as a fallback revert reason when `target` reverts.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCallWithValue(\\n        address target,\\n        bytes memory data,\\n        uint256 value,\\n        string memory errorMessage\\n    ) internal returns (bytes memory) {\\n        require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n        require(isContract(target), \\\"Address: call to non-contract\\\");\\n\\n        (bool success, bytes memory returndata) = target.call{value: value}(data);\\n        return verifyCallResult(success, returndata, errorMessage);\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n     * but performing a static call.\\n     *\\n     * _Available since v3.3._\\n     */\\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n        return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n     * but performing a static call.\\n     *\\n     * _Available since v3.3._\\n     */\\n    function functionStaticCall(\\n        address target,\\n        bytes memory data,\\n        string memory errorMessage\\n    ) internal view returns (bytes memory) {\\n        require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n        (bool success, bytes memory returndata) = target.staticcall(data);\\n        return verifyCallResult(success, returndata, errorMessage);\\n    }\\n\\n    /**\\n     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the\\n     * revert reason using the provided one.\\n     *\\n     * _Available since v4.3._\\n     */\\n    function verifyCallResult(\\n        bool success,\\n        bytes memory returndata,\\n        string memory errorMessage\\n    ) internal pure returns (bytes memory) {\\n        if (success) {\\n            return returndata;\\n        } else {\\n            // Look for revert reason and bubble it up if present\\n            if (returndata.length > 0) {\\n                // The easiest way to bubble the revert reason is using memory via assembly\\n                /// @solidity memory-safe-assembly\\n                assembly {\\n                    let returndata_size := mload(returndata)\\n                    revert(add(32, returndata), returndata_size)\\n                }\\n            } else {\\n                revert(errorMessage);\\n            }\\n        }\\n    }\\n}\\n\",\"keccak256\":\"0x611aa3f23e59cfdd1863c536776407b3e33d695152a266fa7cfb34440a29a8a3\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\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 ContextUpgradeable is Initializable {\\n    function __Context_init() internal onlyInitializing {\\n    }\\n\\n    function __Context_init_unchained() internal onlyInitializing {\\n    }\\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    /**\\n     * @dev This empty reserved space is put in place to allow future versions to add new\\n     * variables without shifting down storage in the inheritance chain.\\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n     */\\n    uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary StringsUpgradeable {\\n    bytes16 private constant _HEX_SYMBOLS = \\\"0123456789abcdef\\\";\\n    uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n    /**\\n     * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n     */\\n    function toString(uint256 value) internal pure returns (string memory) {\\n        // Inspired by OraclizeAPI's implementation - MIT licence\\n        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol\\n\\n        if (value == 0) {\\n            return \\\"0\\\";\\n        }\\n        uint256 temp = value;\\n        uint256 digits;\\n        while (temp != 0) {\\n            digits++;\\n            temp /= 10;\\n        }\\n        bytes memory buffer = new bytes(digits);\\n        while (value != 0) {\\n            digits -= 1;\\n            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));\\n            value /= 10;\\n        }\\n        return string(buffer);\\n    }\\n\\n    /**\\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n     */\\n    function toHexString(uint256 value) internal pure returns (string memory) {\\n        if (value == 0) {\\n            return \\\"0x00\\\";\\n        }\\n        uint256 temp = value;\\n        uint256 length = 0;\\n        while (temp != 0) {\\n            length++;\\n            temp >>= 8;\\n        }\\n        return toHexString(value, length);\\n    }\\n\\n    /**\\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n     */\\n    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n        bytes memory buffer = new bytes(2 * length + 2);\\n        buffer[0] = \\\"0\\\";\\n        buffer[1] = \\\"x\\\";\\n        for (uint256 i = 2 * length + 1; i > 1; --i) {\\n            buffer[i] = _HEX_SYMBOLS[value & 0xf];\\n            value >>= 4;\\n        }\\n        require(value == 0, \\\"Strings: hex length insufficient\\\");\\n        return string(buffer);\\n    }\\n\\n    /**\\n     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n     */\\n    function toHexString(address addr) internal pure returns (string memory) {\\n        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n    }\\n}\\n\",\"keccak256\":\"0xea5339a7fff0ed42b45be56a88efdd0b2ddde9fa480dc99fef9a6a4c5b776863\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../StringsUpgradeable.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSAUpgradeable {\\n    enum RecoverError {\\n        NoError,\\n        InvalidSignature,\\n        InvalidSignatureLength,\\n        InvalidSignatureS,\\n        InvalidSignatureV\\n    }\\n\\n    function _throwError(RecoverError error) private pure {\\n        if (error == RecoverError.NoError) {\\n            return; // no error: do nothing\\n        } else if (error == RecoverError.InvalidSignature) {\\n            revert(\\\"ECDSA: invalid signature\\\");\\n        } else if (error == RecoverError.InvalidSignatureLength) {\\n            revert(\\\"ECDSA: invalid signature length\\\");\\n        } else if (error == RecoverError.InvalidSignatureS) {\\n            revert(\\\"ECDSA: invalid signature 's' value\\\");\\n        } else if (error == RecoverError.InvalidSignatureV) {\\n            revert(\\\"ECDSA: invalid signature 'v' value\\\");\\n        }\\n    }\\n\\n    /**\\n     * @dev Returns the address that signed a hashed message (`hash`) with\\n     * `signature` or error string. This address can then be used for verification purposes.\\n     *\\n     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n     * this function rejects them by requiring the `s` value to be in the lower\\n     * half order, and the `v` value to be either 27 or 28.\\n     *\\n     * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n     * verification to be secure: it is possible to craft signatures that\\n     * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n     * this is by receiving a hash of the original message (which may otherwise\\n     * be too long), and then calling {toEthSignedMessageHash} on it.\\n     *\\n     * Documentation for signature generation:\\n     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n     *\\n     * _Available since v4.3._\\n     */\\n    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n        if (signature.length == 65) {\\n            bytes32 r;\\n            bytes32 s;\\n            uint8 v;\\n            // ecrecover takes the signature parameters, and the only way to get them\\n            // currently is to use assembly.\\n            /// @solidity memory-safe-assembly\\n            assembly {\\n                r := mload(add(signature, 0x20))\\n                s := mload(add(signature, 0x40))\\n                v := byte(0, mload(add(signature, 0x60)))\\n            }\\n            return tryRecover(hash, v, r, s);\\n        } else {\\n            return (address(0), RecoverError.InvalidSignatureLength);\\n        }\\n    }\\n\\n    /**\\n     * @dev Returns the address that signed a hashed message (`hash`) with\\n     * `signature`. This address can then be used for verification purposes.\\n     *\\n     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n     * this function rejects them by requiring the `s` value to be in the lower\\n     * half order, and the `v` value to be either 27 or 28.\\n     *\\n     * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n     * verification to be secure: it is possible to craft signatures that\\n     * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n     * this is by receiving a hash of the original message (which may otherwise\\n     * be too long), and then calling {toEthSignedMessageHash} on it.\\n     */\\n    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n        (address recovered, RecoverError error) = tryRecover(hash, signature);\\n        _throwError(error);\\n        return recovered;\\n    }\\n\\n    /**\\n     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n     *\\n     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n     *\\n     * _Available since v4.3._\\n     */\\n    function tryRecover(\\n        bytes32 hash,\\n        bytes32 r,\\n        bytes32 vs\\n    ) internal pure returns (address, RecoverError) {\\n        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n        uint8 v = uint8((uint256(vs) >> 255) + 27);\\n        return tryRecover(hash, v, r, s);\\n    }\\n\\n    /**\\n     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n     *\\n     * _Available since v4.2._\\n     */\\n    function recover(\\n        bytes32 hash,\\n        bytes32 r,\\n        bytes32 vs\\n    ) internal pure returns (address) {\\n        (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n        _throwError(error);\\n        return recovered;\\n    }\\n\\n    /**\\n     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n     * `r` and `s` signature fields separately.\\n     *\\n     * _Available since v4.3._\\n     */\\n    function tryRecover(\\n        bytes32 hash,\\n        uint8 v,\\n        bytes32 r,\\n        bytes32 s\\n    ) internal pure returns (address, RecoverError) {\\n        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n        // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n        // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n        //\\n        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n        // these malleable signatures as well.\\n        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n            return (address(0), RecoverError.InvalidSignatureS);\\n        }\\n        if (v != 27 && v != 28) {\\n            return (address(0), RecoverError.InvalidSignatureV);\\n        }\\n\\n        // If the signature is valid (and not malleable), return the signer address\\n        address signer = ecrecover(hash, v, r, s);\\n        if (signer == address(0)) {\\n            return (address(0), RecoverError.InvalidSignature);\\n        }\\n\\n        return (signer, RecoverError.NoError);\\n    }\\n\\n    /**\\n     * @dev Overload of {ECDSA-recover} that receives the `v`,\\n     * `r` and `s` signature fields separately.\\n     */\\n    function recover(\\n        bytes32 hash,\\n        uint8 v,\\n        bytes32 r,\\n        bytes32 s\\n    ) internal pure returns (address) {\\n        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n        _throwError(error);\\n        return recovered;\\n    }\\n\\n    /**\\n     * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n     * produces hash corresponding to the one signed with the\\n     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n     * JSON-RPC method as part of EIP-191.\\n     *\\n     * See {recover}.\\n     */\\n    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n        // 32 is the length in bytes of hash,\\n        // enforced by the type signature above\\n        return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n    }\\n\\n    /**\\n     * @dev Returns an Ethereum Signed Message, created from `s`. This\\n     * produces hash corresponding to the one signed with the\\n     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n     * JSON-RPC method as part of EIP-191.\\n     *\\n     * See {recover}.\\n     */\\n    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n        return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", StringsUpgradeable.toString(s.length), s));\\n    }\\n\\n    /**\\n     * @dev Returns an Ethereum Signed Typed Data, created from a\\n     * `domainSeparator` and a `structHash`. This produces hash corresponding\\n     * to the one signed with the\\n     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n     * JSON-RPC method as part of EIP-712.\\n     *\\n     * See {recover}.\\n     */\\n    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n        return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n    }\\n}\\n\",\"keccak256\":\"0xbf5daf926894541a40a64b43c3746aa1940c5a1b3b8d14a06465eea72a9b90cc\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n    bytes16 private constant _HEX_SYMBOLS = \\\"0123456789abcdef\\\";\\n    uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n    /**\\n     * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n     */\\n    function toString(uint256 value) internal pure returns (string memory) {\\n        // Inspired by OraclizeAPI's implementation - MIT licence\\n        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol\\n\\n        if (value == 0) {\\n            return \\\"0\\\";\\n        }\\n        uint256 temp = value;\\n        uint256 digits;\\n        while (temp != 0) {\\n            digits++;\\n            temp /= 10;\\n        }\\n        bytes memory buffer = new bytes(digits);\\n        while (value != 0) {\\n            digits -= 1;\\n            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));\\n            value /= 10;\\n        }\\n        return string(buffer);\\n    }\\n\\n    /**\\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n     */\\n    function toHexString(uint256 value) internal pure returns (string memory) {\\n        if (value == 0) {\\n            return \\\"0x00\\\";\\n        }\\n        uint256 temp = value;\\n        uint256 length = 0;\\n        while (temp != 0) {\\n            length++;\\n            temp >>= 8;\\n        }\\n        return toHexString(value, length);\\n    }\\n\\n    /**\\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n     */\\n    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n        bytes memory buffer = new bytes(2 * length + 2);\\n        buffer[0] = \\\"0\\\";\\n        buffer[1] = \\\"x\\\";\\n        for (uint256 i = 2 * length + 1; i > 1; --i) {\\n            buffer[i] = _HEX_SYMBOLS[value & 0xf];\\n            value >>= 4;\\n        }\\n        require(value == 0, \\\"Strings: hex length insufficient\\\");\\n        return string(buffer);\\n    }\\n\\n    /**\\n     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n     */\\n    function toHexString(address addr) internal pure returns (string memory) {\\n        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n    }\\n}\\n\",\"keccak256\":\"0xaf159a8b1923ad2a26d516089bceca9bdeaeacd04be50983ea00ba63070f08a3\",\"license\":\"MIT\"},\"contracts/interfaces/ICandidateRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\n\\npragma solidity >=0.8.0;\\n\\nimport '../libraries/Types.sol';\\n\\n/// @dev Candidate registry interface\\n/// @author Alexandas\\ninterface ICandidateRegistry {\\n\\n\\t/// @dev emit when candidate registered\\n\\t/// @param candidate candidate address\\n\\tevent Register(address candidate);\\n\\n\\t/// @dev register a candidate with node manifest\\n\\t/// @param manifest node manifest\\n\\tfunction register(string memory manifest) external;\\n\\n\\t/// @dev return a candidate\\n\\t/// @param candidate candidate address\\n\\t/// @return candidate information\\n\\tfunction candidateInfo(address candidate) external view returns(Types.CandidateInfo memory);\\n\\n\\t/// @dev return a candidate address for a specific node manifest\\n\\t/// @param manifest node manifest\\n\\t/// @return candidate address\\n\\tfunction manifestMap(string memory manifest) external view returns(address);\\n\\n\\t/// @dev return whether a candidate is registered\\n\\t/// @param candidate candidate address\\n\\t/// @return whether the candidate is registered\\n\\tfunction isCandidateRegistered(address candidate) external view returns (bool);\\n\\n\\t/// @dev return grade of a candidate\\n\\t/// @param candidate candidate address\\n\\t/// @return candidate grade\\n\\tfunction gradeOf(address candidate) external view returns (Types.Grade);\\n\\n}\\n\",\"keccak256\":\"0xd8519308649be704107281712dcbe57e3720c5458193a2ab40dc51cebcb43b80\",\"license\":\"GPL-2.0-or-later\"},\"contracts/interfaces/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\n\\npragma solidity >=0.8.0;\\n\\nimport '@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol';\\n\\n/// @dev Burnable ERC20 Token interface\\n/// @author Alexandas\\ninterface IERC20 is IERC20Upgradeable {\\n\\n\\t/// @dev burn tokens\\n\\t/// @param amount token amount\\n\\tfunction burn(uint256 amount) external;\\n\\n\\t/// @dev burn tokens\\n\\t/// @param account user address\\n\\t/// @param amount token amount\\n\\tfunction burnFrom(address account, uint256 amount) external;\\n\\n}\\n\",\"keccak256\":\"0xb45f4f11d5a0a93d60c5238dfce558196db50b3986cee01f2e65b8781bcb7d4f\",\"license\":\"GPL-2.0-or-later\"},\"contracts/interfaces/IElection.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\n\\npragma solidity >=0.8.0;\\n\\nimport './IRewarder.sol';\\nimport './IStake.sol';\\nimport './IMajorCandidates.sol';\\nimport './IERC20.sol';\\n\\n/// @dev Election contract interface\\n/// @author Alexandas\\ninterface IElection {\\n\\n\\t/// @dev emit when ERC20 token address updated\\n\\t/// @param token ERC20 token address\\n\\tevent TokenUpdated(IERC20 token);\\n\\n\\t/// @dev emit when `Rewarder` contract updated\\n\\t/// @param rewarder `Rewarder` contract \\n\\tevent RewarderUpdated(IRewarder rewarder);\\n\\n\\t/// @dev emit when `Stake` contract updated\\n\\t/// @param stake `Stake` contract \\n\\tevent StakeUpdated(IStake stake);\\n\\n\\t/// @dev emit when `MajorCandidates` contract updated\\n\\t/// @param majorCandidates `MajorCandidates` contract \\n\\tevent MajorCandidatesUpdated(IMajorCandidates majorCandidates);\\n\\n\\t/// @dev emit when vote frozen period updated\\n\\t/// @param period vote frozen period\\n\\tevent VoteFrozenPeriodUpdated(uint256 period);\\n\\n\\t/// @dev emit when shares updated for a specific candidate\\n\\t/// @param candidate candidate address\\n\\tevent ShareUpdated(address candidate);\\n\\n\\t/// @dev emit when voter voted for a candidate\\n\\t/// @param candidate candidate address\\n\\t/// @param voter voter address\\n\\t/// @param amount token amount\\n\\tevent Vote(address candidate, address voter, uint256 amount);\\n\\n\\t/// @dev emit when voter claimed the reward\\n\\t/// @param candidate candidate address\\n\\t/// @param voter voter address\\n\\t/// @param to receiver address\\n\\t/// @param amount reward amount\\n\\tevent Claimed(address candidate, address voter, address to, uint256 amount);\\n\\n\\t/// @dev emit when voter withdrawn the votes\\n\\t/// @param candidate candidate address\\n\\t/// @param voter voter address\\n\\t/// @param to receiver address\\n\\t/// @param amount reward amount\\n\\tevent Withdrawn(address candidate, address voter, address to, uint256 amount);\\n\\n\\t/// @dev voter vote a specific candidate\\n\\t/// @param candidate candidate address\\n\\t/// @param voter voter address\\n\\t/// @param amount reward amount\\n\\t/// @param anchor anchor candidate address\\n\\t/// @param maxSlippage maximum rank change value for the candidate from the anchor candidate\\n\\tfunction vote(\\n\\t\\taddress candidate,\\n\\t\\taddress voter,\\n\\t\\tuint256 amount,\\n\\t\\taddress anchor,\\n\\t\\tuint256 maxSlippage\\n\\t) external;\\n\\n\\t/// @dev voter claim reward for a specific candidate\\n\\t/// @param candidate candidate address\\n\\t/// @param to receiver address\\n\\tfunction claim(address candidate, address to) external;\\n\\n\\t/// @dev voter withdraw reward for a specific candidate\\n\\t/// @param candidate candidate address\\n\\t/// @param amount reward amount\\n\\t/// @param to receiver address\\n\\t/// @param anchor anchor candidate address\\n\\t/// @param maxSlippage maximum rank change value for the candidate from the anchor candidate\\n\\tfunction withdraw(\\n\\t\\taddress candidate,\\n\\t\\tuint256 amount,\\n\\t\\taddress to,\\n\\t\\taddress anchor,\\n\\t\\tuint256 maxSlippage\\n\\t) external;\\n\\n\\t/// @dev voter withdraw votes and claim reward for a specific candidate\\n\\t/// @param candidate candidate address\\n\\t/// @param amount reward amount\\n\\t/// @param to receiver address\\n\\t/// @param anchor anchor candidate address\\n\\t/// @param maxSlippage maximum rank change value for the candidate from the anchor candidate\\n\\tfunction withdrawAndClaim(\\n\\t\\taddress candidate,\\n\\t\\tuint256 amount,\\n\\t\\taddress to,\\n\\t\\taddress anchor,\\n\\t\\tuint256 maxSlippage\\n\\t) external;\\n\\n\\t/// @dev candidate allocate reward for the voters\\n\\t/// @param candidate candidate address\\n\\t/// @param amount reward amount\\n\\tfunction onAllocate(address candidate, uint256 amount) external;\\n\\n\\t/// @dev return ERC20 token address\\n\\tfunction token() external view returns(IERC20);\\n\\n\\t/// @dev return `Rewarder` contract address\\n\\tfunction rewarder() external view returns(IRewarder);\\n\\n\\t/// @dev return `Stake` contract address\\n\\tfunction stake() external view returns(IStake);\\n\\n\\t/// @dev return `MajorCandidates` contract address\\n\\tfunction majorCandidates() external view returns(IMajorCandidates);\\n\\n\\t/// @dev return precision for shares\\n\\tfunction ACC_PRECISION() external view returns(uint256);\\n\\n\\t/// @dev return votes for a specific candidate\\n\\t/// @param candidate candidate address\\n\\t/// @return votes for a specific candidate\\n\\tfunction voteSupply(address candidate) external view returns(uint256);\\n\\n\\t/// @dev pending reward for a voter given a candidate\\n\\t/// @param candidate candidate address\\n\\t/// @param voter voter address\\n\\t/// @return pending pending reward\\n\\tfunction pendingReward(address candidate, address voter) external view returns (uint256 pending);\\n\\n}\\n\",\"keccak256\":\"0xad12e388dbfd8245c6e33fc8bd3adeb0a77c5ebcf28fd189114044d026670e7d\",\"license\":\"GPL-2.0-or-later\"},\"contracts/interfaces/IMajorCandidates.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\n\\npragma solidity >=0.8.0;\\n\\nimport './IElection.sol';\\nimport './IStake.sol';\\n\\n/// @dev MajorCandidates interface\\n/// @author Alexandas\\ninterface IMajorCandidates {\\n\\n\\t/// @dev emit when max major candidates changed\\n\\t/// @param max max major candidates\\n\\tevent MaxMajorCandidateUpdated(uint256 max);\\n\\n\\t/// @dev emit when `Election` contract changed\\n\\t/// @param election `Election` contract address\\n\\tevent ElectionUpdated(IElection election);\\n\\n\\t/// @dev emit when `Stake` contract updated\\n\\t/// @param stake `Stake` contract \\n\\tevent StakeUpdated(IStake stake);\\n\\n\\t/// @dev emit when a candidate insert or update in the sorted list\\n\\t/// @param candidate candidate address\\n\\t/// @param amount candidate votes\\n\\tevent UpsetCandidate(address candidate, uint256 amount);\\n\\n\\t/// @dev emit when a candidate removed from the sorted list\\n\\t/// @param candidate candidate address\\n\\tevent RemoveCandidate(address candidate);\\n\\n\\t/// @dev insert or update a candidate in the sorted list\\n\\t/// @param candidate candidate address\\n\\t/// @param amount candidate votes\\n\\t/// @param anchor anchor candidate address\\n\\t/// @param maxSlippage maximum rank change value for the candidate from the anchor candidate\\n\\tfunction upsetCandidateWithAnchor(\\n\\t\\taddress candidate,\\n\\t\\tuint256 amount,\\n\\t\\taddress anchor,\\n\\t\\tuint256 maxSlippage\\n\\t) external;\\n\\n\\t/// @dev emit removed a candidate from the sorted list\\n\\t/// @param candidate candidate address\\n\\tfunction remove(address candidate) external;\\n\\n\\t/// @dev return max major candidates\\n\\tfunction MAX_MAJOR_CANDIDATES() external view returns(uint256);\\n\\n\\t/// @dev return `Election` contract address\\n\\tfunction election() external view returns(IElection);\\n\\n\\t/// @dev return `Stake` contract address\\n\\tfunction stake() external view returns(IStake);\\n\\n\\t/// @dev return whether a candidate is existed in the sorted list\\n\\t/// @param candidate candidate address\\n\\t/// @return whether the candidate is existed in the sorted list\\n\\tfunction exists(address candidate) external view returns (bool);\\n\\n\\t/// @dev return whether a candidate is a major candidate\\n\\t/// @param candidate candidate address\\n\\t/// @return existed the candidate is a major candidate\\n\\tfunction isMajor(address candidate) external view returns(bool existed);\\n\\n\\t/// @dev return all major candidates\\n\\t/// @return majors all major candidates\\n\\tfunction majorCandidateList() external view returns(address[] memory majors);\\n\\n\\n}\\n\",\"keccak256\":\"0xe81b3600f2652084188b90a53ca9078786c17c5ffa59486a56c4a62250660f9b\",\"license\":\"GPL-2.0-or-later\"},\"contracts/interfaces/IPools.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\n\\npragma solidity >=0.8.0;\\n\\nimport './IERC20.sol';\\nimport './IRewarder.sol';\\nimport '../libraries/Types.sol';\\n\\n/// @dev Pools interface\\n/// @author Alexandas\\ninterface IPools {\\n\\n\\t/// @dev emit when ERC20 Token contract updated\\n\\t/// @param token ERC20 Token contract\\n\\tevent TokenUpdated(IERC20 token);\\n\\n\\t/// @dev emit when `Rewarder` contract updated\\n\\t/// @param rewarder `Rewarder` contract \\n\\tevent RewarderUpdated(IRewarder rewarder);\\n\\n\\t/// @dev emit when `rewardPerSecond` updated\\n\\t/// @param rewardPerSecond reward generated for per second\\n\\tevent RewardPerSecondUpdated(uint256 rewardPerSecond);\\n\\n\\t/// @dev emit when shares precision updated\\n\\t/// @param precision shares precision\\n\\tevent PrecisionUpdated(uint256 precision);\\n\\n\\t/// @dev emit when max coefficient updated\\n\\t/// @param maxCoef max coefficient\\n\\tevent MaxCoefUpdated(uint256 maxCoef);\\n\\n\\t/// @dev emit when add a pool\\n\\t/// @param grade pool grade\\n\\tevent AddPool(Types.Grade grade);\\n\\n\\t/// @dev emit when pool updated\\n\\t/// @param grade pool grade\\n\\tevent PoolUpdated(Types.Grade grade);\\n\\n\\t/// @dev return ERC20 token address\\n\\tfunction token() external view returns(IERC20);\\n\\n\\t/// @dev return `Rewarder` contract address\\n\\tfunction rewarder() external view returns(IRewarder);\\n\\n\\t/// @dev return precision for shares\\n\\tfunction ACC_PRECISION() external view returns(uint256);\\n\\n\\t/// @dev return max coefficient\\n\\tfunction MAXCOEF() external view returns(uint256);\\n\\n\\t/// @dev return total pools allocation points\\n\\tfunction totalAllocPoint() external view returns(uint256);\\n\\n\\t/// @dev return reward generated for per second\\n\\tfunction rewardPerSecond() external view returns(uint256);\\n\\n\\t/// @dev update a specific pool\\n\\t/// @param grade pool grade\\n\\t/// @return pool pool info\\n\\tfunction updatePool(Types.Grade grade) external returns (Types.PoolInfo memory pool);\\n\\n\\t/// @dev return a specific pool\\n\\t/// @param grade pool grade\\n\\t/// @return pool pool info\\n\\tfunction poolInfo(Types.Grade grade) external view returns(Types.PoolInfo memory);\\n\\n}\\n\",\"keccak256\":\"0xc5f1962a2579d1fadb8669766b62564436a6c4b779e38b0f9271fe74c7cbd613\",\"license\":\"GPL-2.0-or-later\"},\"contracts/interfaces/IRewarder.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\n\\npragma solidity >=0.8.0;\\n\\nimport '@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol';\\nimport './IERC20.sol';\\n\\n/// @dev Rewarder interface\\n/// @author Alexandas\\ninterface IRewarder {\\n\\n\\t/// @dev emit when ERC20 token address updated\\n\\t/// @param token ERC20 token address\\n\\tevent TokenUpdated(IERC20 token);\\n\\n\\t/// @dev emit when auth address updated\\n\\t/// @param auth authorized address\\n\\tevent AuthUpdated(address auth);\\n\\n\\t/// @dev emit when reward minted\\n\\t/// @param from authorized address\\n\\t/// @param to receiver address\\n\\t/// @param amount token amount\\n\\tevent Minted(address from, address to, uint256 amount);\\n\\n\\t/// @dev return ERC20 token address\\n\\tfunction token() external view returns(IERC20);\\n\\n\\t/// @dev mint reward to receiver\\n\\t/// @param to receiver address\\n\\t/// @param amount token amount\\n\\tfunction mint(address to, uint256 amount) external;\\n\\n}\",\"keccak256\":\"0xc41fb19972737ba746c9dea24922b35745aaff3a6c5839993269a843bffe3160\",\"license\":\"GPL-2.0-or-later\"},\"contracts/interfaces/ISlasher.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\n\\npragma solidity >=0.8.0;\\n\\nimport '../libraries/Types.sol';\\nimport './IMajorCandidates.sol';\\nimport './IStake.sol';\\n\\n/// @dev Slasher interface\\n/// @author Alexandas\\ninterface ISlasher {\\n\\n\\t/// @dev emit when governance address updated\\n\\t/// @param governance governance address\\n\\tevent GovernanceUpdated(address governance);\\n\\n\\t/// @dev emit when `Stake` contract updated\\n\\t/// @param stake `Stake` contract \\n\\tevent StakeUpdated(IStake stake);\\n\\n\\t/// @dev emit when `MajorCandidates` contract updated\\n\\t/// @param majorCandidates `MajorCandidates` contract \\n\\tevent MajorCandidatesUpdated(IMajorCandidates majorCandidates);\\n\\n\\t/// @dev emit when default slash amount updated\\n\\t/// @param amount slash amount\\n\\tevent DefaultSlashAmountUpdated(uint256 amount);\\n\\n\\t/// @dev emit when public notice period updated\\n\\t/// @param period public notice period\\n\\tevent PublicNoticePeriodUpdated(uint256 period);\\n\\n\\t/// @dev emit when max coefficient updated\\n\\t/// @param maxCoef max coefficient\\n\\tevent MaxCoefUpdated(uint256 maxCoef);\\n\\n\\t/// @dev emit when drafter slash reward coefficient updated\\n\\t/// @param drafterCoef drafter slash reward coefficient\\n\\tevent DrafterCoefUpdated(uint64 drafterCoef);\\n\\n\\t/// @dev emit when validator slash reward coefficient updated\\n\\t/// @param validatorCoef validator slash reward coefficient\\n\\tevent ValidatorCoefUpdated(uint256 validatorCoef);\\n\\n\\t/// @dev emit when executor slash reward coefficient updated\\n\\t/// @param executorCoef executor slash reward coefficient\\n\\tevent ExecutorCoefUpdated(uint256 executorCoef);\\n\\n\\t/// @dev emit when slash drafted\\n\\t/// @param nonce slash number\\n\\t/// @param candidate candidate address\\n\\t/// @param slashBlock slashed block in posc\\n\\t/// @param manifest node manifest\\n\\t/// @param accuracy posc accuracy\\n\\tevent DraftSlash(uint256 nonce, address candidate, uint64 slashBlock, string manifest, uint64 accuracy);\\n\\n\\t/// @dev emit when slash drafted\\n\\t/// @param nonce slash number\\n\\tevent RejectSlash(uint256 nonce);\\n\\n\\t/// @dev emit when slash drafted\\n\\t/// @param nonce slash number\\n\\tevent ExecuteSlash(uint256 nonce, address executor);\\n\\n\\t/// @dev return `Stake` contract address\\n\\tfunction stake() external view returns(IStake);\\n\\n\\t/// @dev return `MajorCandidates` contract address\\n\\tfunction majorCandidates() external view returns(IMajorCandidates);\\n\\n\\t/// @dev return default slash amount\\n\\tfunction defaultSlashAmount() external view returns(uint256);\\n\\n\\t/// @dev return public notice period\\n\\tfunction publicNoticePeriod() external view returns(uint256);\\n\\n\\t/// @dev return current slash nonce\\n\\tfunction nonce() external view returns(uint256);\\n\\n\\t/// @dev return max coefficient\\n\\tfunction MAXCOEF() external view returns(uint64);\\n\\n\\t/// @dev return drafter slash reward coefficient\\n\\tfunction drafterCoef() external view returns(uint64);\\n\\n\\t/// @dev return validator slash reward coefficient\\n\\tfunction validatorCoef() external view returns(uint64);\\n\\n\\t/// @dev return executor slash reward coefficient\\n\\tfunction executorCoef() external view returns(uint64);\\n\\n\\t/// @dev return slash information at a specific nonce\\n\\t/// @param _nonce nonce number\\n\\t/// @return slash information\\n\\tfunction getSlashAt(uint256 _nonce) external view returns(Types.SlashInfo memory);\\n\\n\\t/// @dev return nonce given a candidate if the candidate is in slashing\\n\\t/// @param candidate candidate address\\n\\t/// @return nonce number\\n\\tfunction nonceOf(address candidate) external view returns(uint256);\\n\\n\\t/// @dev set drafter slash reward coefficient\\n\\t/// @param _drafterCoef drafter slash reward coefficient\\n\\tfunction setDrafterCoef(uint64 _drafterCoef) external;\\n\\n\\t/// @dev set validator slash reward coefficient\\n\\t/// @param _validatorCoef validator slash reward coefficient\\n\\tfunction setValidatorCoef(uint64 _validatorCoef) external;\\n\\n\\t/// @dev set executor slash reward coefficient\\n\\t/// @param _executorCoef executor slash reward coefficient\\n\\tfunction setExecutorCoef(uint64 _executorCoef) external;\\n\\n\\t/// @dev draft a slash\\n\\t/// @param slashBlock slashed block in posc\\n\\t/// @param manifest node manifest\\n\\t/// @param accuracy posc accuracy\\n\\t/// @param signatures major candidates signatures\\n\\tfunction draft(uint64 slashBlock, string memory manifest, uint64 accuracy, bytes[] memory signatures) external;\\n\\n\\t/// @dev reject a slash\\n\\t/// @param manifest node manifest\\n\\tfunction reject(string memory manifest) external;\\n\\n\\t/// @dev execute a slash\\n\\t/// @param manifest node manifest\\n\\tfunction execute(string memory manifest) external;\\n\\n\\t/// @dev return whether candidate is in slashing\\n\\t/// @param candidate candidate address\\n\\t/// @return whether candidate is in slashing\\n\\tfunction slashExists(address candidate) external view returns(bool);\\n\\n\\t/// @dev check whether signatures is valid\\n\\t/// @param hash message hash\\n\\t/// @param signatures signatures for major candidates\\n\\t/// @param signers major candidate signers\\n\\tfunction checkNSignatures(bytes32 hash, bytes[] memory signatures) external view returns(address[] memory signers);\\n\\n}\\n\",\"keccak256\":\"0x2a098f6fdb061970bf7f00c0018f3950b5d96d7d0702b21bfde897f973e6e36b\",\"license\":\"GPL-2.0-or-later\"},\"contracts/interfaces/IStake.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\n\\npragma solidity >=0.8.0;\\n\\nimport './IElection.sol';\\nimport './IMajorCandidates.sol';\\nimport './ISlasher.sol';\\nimport './IPools.sol';\\nimport './ICandidateRegistry.sol';\\n\\n/// @dev Stake interface\\n/// @author Alexandas\\ninterface IStake is IPools, ICandidateRegistry {\\n\\n\\t/// @dev emit when `Election` contract changed\\n\\t/// @param election `Election` contract address\\n\\tevent ElectionUpdated(IElection election);\\n\\n\\t/// @dev emit when `MajorCandidates` contract updated\\n\\t/// @param majorCandidates `MajorCandidates` contract \\n\\tevent IMajorCandidatesUpdated(IMajorCandidates majorCandidates);\\n\\n\\t/// @dev emit when `Slasher` contract updated\\n\\t/// @param slasher `Slasher` contract \\n\\tevent SlasherUpdated(ISlasher slasher);\\n\\n\\t/// @dev emit when minimum stake updated\\n\\t/// @param amount minimum stake\\n\\tevent MinStakeUpdated(uint256 amount);\\n\\n\\t/// @dev emit when stake frozen period updated\\n\\t/// @param period stake frozen period\\n\\tevent StakeFrozenPeriodUpdated(uint256 period);\\n\\n\\t/// @dev emit when claim frozen period updated\\n\\t/// @param period claim frozen period\\n\\tevent ClaimFrozenPeriodUpdated(uint256 period);\\n\\n\\t/// @dev emit when a candidate upgraded\\n\\t/// @param candidate candidate address\\n\\t/// @param fromGrade from grade\\n\\t/// @param toGrade to grade\\n\\tevent Upgrade(address candidate, Types.Grade fromGrade, Types.Grade toGrade);\\n\\n\\t/// @dev emit when a candidate downgraded\\n\\t/// @param candidate candidate address\\n\\t/// @param fromGrade from grade\\n\\t/// @param toGrade to grade\\n\\tevent Downgrade(address candidate, Types.Grade fromGrade, Types.Grade toGrade);\\n\\n\\t/// @dev emit when a candidate staked tokens\\n\\t/// @param from token consumer\\n\\t/// @param candidate candidate address\\n\\t/// @param amount token amount\\n\\tevent Stake(address from, address candidate, uint256 amount);\\n\\n\\t/// @dev emit when a candidate withdraw tokens\\n\\t/// @param candidate candidate address\\n\\t/// @param to token receiver\\n\\t/// @param amount token amount\\n\\tevent Withdrawn(address candidate, address to, uint256 amount);\\n\\n\\t/// @dev emit when a candidate claimed reward\\n\\t/// @param candidate candidate address\\n\\t/// @param to token receiver\\n\\t/// @param pending token amount\\n\\tevent Claimed(address candidate, address to, uint256 pending);\\n\\n\\t/// @dev emit when a candidate quit from the protocol\\n\\t/// @param grade candidate grade\\n\\t/// @param candidate candidate address\\n\\tevent Quit(Types.Grade grade, address candidate);\\n\\n\\t/// @dev emit when a candidate allocate reward for the voters\\n\\t/// @param candidate candidate address\\n\\t/// @param amount token amount\\n\\tevent VoterAllocated(address candidate, uint256 amount);\\n\\n\\t/// @dev emit when the reward for a candidate\\n\\t/// @param candidate candidate address\\n\\t/// @param amount token amount\\n\\tevent CandidateAllocated(address candidate, uint256 amount);\\n\\n\\t/// @dev emit when the vote reward coefficient updated\\n\\t/// @param coef vote reward coefficient\\n\\tevent VoteRewardCoefUpdated(uint256 coef);\\n\\n\\t/// @dev emit when drafted a slash\\n\\t/// @param candidate candidate address\\n\\t/// @param pendingSlash pending slash amount\\n\\tevent DraftSlash(address candidate, uint256 pendingSlash);\\n\\n\\t/// @dev emit when rejected a slash\\n\\t/// @param candidate candidate address\\n\\t/// @param pendingSlash pending slash amount\\n\\tevent RejectSlash(address candidate, uint256 pendingSlash);\\n\\n\\t/// @dev emit when executed a slash\\n\\t/// @param candidate candidate address\\n\\t/// @param pendingSlash pending slash amount\\n\\t/// @param beneficiaries slash reward beneficiaries\\n\\t/// @param amounts slash reward amounts\\n\\t/// @param burned burned amount\\n\\tevent ExcuteSlash(address candidate, uint256 pendingSlash, address[] beneficiaries, uint256[] amounts, uint256 burned);\\n\\n\\t/// @dev return `Election` contract\\n\\tfunction election() external view returns(IElection);\\n\\n\\t/// @dev return `MajorCandidates` contract\\n\\tfunction majorCandidates() external view returns(IMajorCandidates);\\n\\n\\t/// @dev return `Slasher` contract\\n\\tfunction slasher() external returns(ISlasher);\\n\\n\\t/// @dev candidate stake tokens\\n\\t/// @param amount token amount\\n\\tfunction stake(uint256 amount) external;\\n\\n\\t/// @dev register a candidate and stake tokens\\n\\t/// @param amount token amount\\n\\t/// @param manifest node manifest\\n\\tfunction registerAndStake(uint256 amount, string memory manifest) external;\\n\\n\\t/// @dev candidate quit from the protocol\\n\\t/// @param to token receiver\\n\\tfunction quit(address to) external;\\n\\n\\t/// @dev candidate claim reward from the protocol\\n\\t/// @param to token receiver\\n\\tfunction claim(address to) external;\\n\\n\\t/// @dev candidate withdraw the tokens and claim reward from the protocol\\n\\t/// @param amount token amount\\n\\t/// @param to token receiver\\n\\t// function withdrawAndClaim(uint256 amount, address to) external;\\n\\n\\t/// @dev return pending reward for a specific candidate\\n\\t/// @param candidate candidate address\\n\\t/// @return pending reward for the candidate\\n\\tfunction pendingReward(address candidate) external view returns (uint256 pending);\\n\\n\\t/// @dev set voter slash reward coefficient\\n\\t/// @param coef voter reward coefficient\\n\\tfunction setVoteRewardCoef(uint256 coef) external;\\n\\n\\t/// @dev set allocate the reward to voters from the candidate\\n\\t/// @param candidate candidate address\\n\\tfunction voterAllocate(address candidate) external;\\n\\n\\t/// @dev return voter reward coefficient for a specific candidate\\n\\t/// @param candidate candidate address\\n\\t/// @return coef voter reward coefficient\\n\\tfunction voteRewardCoef(address candidate) external view returns (uint256 coef);\\n\\n\\t/// @dev return pending voters allocation for a specific candidate\\n\\t/// @param candidate candidate address\\n\\t/// @return pending pending voters allocation\\n\\tfunction pendingVoterAllocation(address candidate) external view returns (uint256 pending);\\n\\n\\t/// @dev return pending candidate allocation\\n\\t/// @param candidate candidate address\\n\\t/// @return pending pending candidate allocation\\n\\tfunction pendingCandidateAllocation(address candidate) external view returns (uint256 pending);\\n\\n\\t/// @dev upgrade a candidate\\n\\t/// @param candidate candidate address\\n\\tfunction upgrade(address candidate) external;\\n\\n\\t/// @dev downgrade a candidate\\n\\t/// @param candidate candidate address\\n\\tfunction downgrade(address candidate) external;\\n\\n\\t/// @dev draft a slash for a candidate\\n\\t/// @param candidate candidate address\\n\\t/// @param amount slash amount\\n\\t/// @return pendingSlash real slash amount\\n\\tfunction draftSlash(address candidate, uint256 amount) external returns(uint256 pendingSlash);\\n\\n\\t/// @dev reject a slash for a candidate\\n\\t/// @param candidate candidate address\\n\\t/// @param pendingSlash real slash amount\\n\\tfunction rejectSlash(address candidate, uint256 pendingSlash) external;\\n\\n\\t/// @dev executed a slash for a candiate\\n\\t/// @param candidate candidate address\\n\\t/// @param slash slash amount\\n\\t/// @param beneficiaries slash reward beneficiaries\\n\\t/// @param amounts slash reward amounts\\n\\t/// @param burned burned amount\\n\\tfunction executeSlash(\\n\\t\\taddress candidate, \\n\\t\\tuint256 slash,\\n\\t\\taddress[] memory beneficiaries, \\n\\t\\tuint256[] memory amounts,\\n\\t\\tuint256 burned\\n\\t) external;\\n}\",\"keccak256\":\"0x9eeba75d51080c9762f25fb5872a0dc0e92aa3f7ec3533957379e6f10cb7978a\",\"license\":\"GPL-2.0-or-later\"},\"contracts/libraries/Types.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\n\\npragma solidity >=0.8.0;\\n\\nlibrary Types {\\n\\n\\tenum Grade {\\n\\t\\tNull,\\n\\t\\tMajor,\\n\\t\\tSecondary\\n\\t}\\n\\n\\tstruct CandidateInfo {\\n\\t\\tGrade grade;\\n\\t\\tuint256 amount;\\n\\t\\tint256 rewardDebt;\\n\\t\\tuint256 allocation;\\n\\t\\tstring manifest;\\n\\t}\\n\\n\\tstruct PoolInfo {\\n\\t\\tuint256 accPerShare;\\n\\t\\tuint256 lastRewardTime;\\n\\t\\tuint256 allocPoint;\\n\\t}\\n\\n\\tenum SlashStatus {\\n\\t\\tDrafted,\\n\\t\\tRejected,\\n\\t\\tExecuted\\n\\t}\\n\\n\\tstruct SlashInfo {\\n\\t\\taddress candidate;\\n\\t\\taddress drafter;\\n\\t\\taddress[] validators;\\n\\t\\tuint256 amount;\\n\\t\\tuint256 timestamp;\\n\\t\\tSlashStatus status;\\n\\t}\\n\\n}\\n\",\"keccak256\":\"0x5260f5f3e8e5cf789e355d0f4827e5c6a9c4289545a2a9d94732830cd80a9a1e\",\"license\":\"GPL-2.0-or-later\"},\"contracts/slasher/Slasher.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\n\\npragma solidity >=0.8.0;\\n\\nimport '@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol';\\nimport '@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol';\\nimport '@openzeppelin/contracts/utils/Strings.sol';\\n\\nimport '../interfaces/ISlasher.sol';\\n\\n/// @dev Slasher contract\\n/// @author Alexandas\\ncontract Slasher is ISlasher, OwnableUpgradeable {\\n\\n\\t/// @dev governance address\\n\\taddress public governance;\\n\\n\\t/// @dev return `Stake` contract address\\n\\tIStake public override stake;\\n\\n\\t/// @dev return `MajorCandidates` contract address\\n\\tIMajorCandidates public override majorCandidates;\\n\\n\\t/// @dev return default slash amount\\n\\tuint256 public override defaultSlashAmount;\\n\\n\\t/// @dev return public notice period\\n\\tuint256 public override publicNoticePeriod;\\n\\n\\t/// @dev return current slash nonce\\n\\tuint256 public override nonce;\\n\\n\\t/// @dev return max coefficient\\n\\tuint64 public override MAXCOEF;\\n\\n\\t/// @dev return drafter slash reward coefficient\\n\\tuint64 public override drafterCoef;\\n\\n\\t/// @dev return validator slash reward coefficient\\n\\tuint64 public override validatorCoef;\\n\\n\\t/// @dev return executor slash reward coefficient\\n\\tuint64 public override executorCoef;\\n\\n\\tmapping(uint256 => Types.SlashInfo) internal slashes;\\n\\n\\tmapping(address => uint256) internal nonces;\\n\\n\\tmodifier onlyGovernance() {\\n\\t\\trequire(msg.sender == governance, 'Slasher: caller must be the Governace');\\n\\t\\t_;\\n\\t}\\n\\n\\t/// @dev proxy initialize function\\n\\t/// @param newOwner contract owner\\n\\t/// @param _governance governance address\\n\\t/// @param _stake `Stake` contract\\n\\t/// @param _majorCandidates `MajorCandidates` contract\\n\\t/// @param _defaultSlashAmount default slash amount\\n\\t/// @param _publicNoticePeriod public notice period\\n\\t/// @param maxCoef max coefficient\\n\\t/// @param _drafterCoef drafter slash reward coefficient\\n\\t/// @param _validatorCoef validator slash reward coefficient\\n\\t/// @param _executorCoef executor slash reward coefficient\\n\\tfunction initialize(\\n\\t\\taddress newOwner,\\n\\t\\taddress _governance,\\n\\t\\tIStake _stake,\\n\\t\\tIMajorCandidates _majorCandidates,\\n\\t\\tuint256 _defaultSlashAmount,\\n\\t\\tuint256 _publicNoticePeriod,\\n\\t\\tuint64 maxCoef,\\n\\t\\tuint64 _drafterCoef,\\n\\t\\tuint64 _validatorCoef,\\n\\t\\tuint64 _executorCoef\\n\\t) external initializer {\\n\\t\\t_transferOwnership(newOwner);\\n\\t\\t_setGovernance(_governance);\\n\\t\\t_setStake(_stake);\\n\\t\\t_setMajorCandidates(_majorCandidates);\\n\\t\\t_setDefaultSlashAmount(_defaultSlashAmount);\\n\\t\\t_setPublicNoticePeriod(_publicNoticePeriod);\\n\\t\\t_setMaxCoef(maxCoef);\\n\\t\\t_setDrafterCoef(_drafterCoef);\\n\\t\\t_setValidatorCoef(_validatorCoef);\\n\\t\\t_setExecutorCoef(_executorCoef);\\n\\t\\tnonce = 1;\\n\\t}\\n\\n\\t/// @dev draft a slash\\n\\t/// @param slashBlock slashed block in posc\\n\\t/// @param manifest node manifest\\n\\t/// @param accuracy posc accuracy\\n\\t/// @param signatures major candidates signatures\\n\\tfunction draft(\\n\\t\\tuint64 slashBlock,\\n\\t\\tstring memory manifest,\\n\\t\\tuint64 accuracy,\\n\\t\\tbytes[] memory signatures\\n\\t) external override onlyGovernance {\\n\\t\\taddress candidate = stake.manifestMap(manifest);\\n\\t\\trequire(candidate != address(0), 'Slasher: nonexistent candidate');\\n\\t\\trequire(!slashExists(candidate), 'Slasher: candidate is in slash');\\n\\t\\tbytes memory raw = abi.encode(nonce, slashBlock, manifest, accuracy);\\n\\t\\tbytes memory messsage = abi.encodePacked(bytes('\\\\x19Ethereum Signed Message:\\\\n'), bytes(Strings.toString(raw.length)), raw);\\n\\t\\taddress[] memory validators = checkNSignatures(keccak256(messsage), signatures);\\n\\t\\tuint256 amount = stake.draftSlash(candidate, defaultSlashAmount);\\n\\t\\tif (amount > 0) {\\n\\t\\t\\tslashes[nonce] = Types.SlashInfo({\\n\\t\\t\\t\\tcandidate: candidate,\\n\\t\\t\\t\\tdrafter: msg.sender,\\n\\t\\t\\t\\tvalidators: validators,\\n\\t\\t\\t\\tamount: amount,\\n\\t\\t\\t\\ttimestamp: block.timestamp,\\n\\t\\t\\t\\tstatus: Types.SlashStatus.Drafted\\n\\t\\t\\t});\\n\\t\\t\\tnonces[candidate] = nonce;\\n\\t\\t\\temit DraftSlash(nonce, candidate, slashBlock, manifest, accuracy);\\n\\t\\t\\tnonce++;\\n\\t\\t}\\n\\t}\\n\\n\\t/// @dev reject a slash\\n\\t/// @param manifest node manifest\\n\\tfunction reject(string memory manifest) external override onlyGovernance {\\n\\t\\taddress candidate = stake.manifestMap(manifest);\\n\\t\\trequire(candidate != address(0), 'Slasher: nonexistent candidate');\\n\\t\\tuint256 _nonce = nonces[candidate];\\n\\t\\trequire(slashes[_nonce].timestamp > 0, 'Slasher: nonexistent slash');\\n\\t\\trequire(slashes[_nonce].status == Types.SlashStatus.Drafted, 'Slasher: slash status is not drafted');\\n\\t\\trequire(block.timestamp <= slashes[_nonce].timestamp + publicNoticePeriod, 'Slasher: slash is not in public notice period');\\n\\t\\tslashes[_nonce].status = Types.SlashStatus.Rejected;\\n\\t\\tstake.rejectSlash(candidate, slashes[_nonce].amount);\\n\\n\\t\\tdelete nonces[candidate];\\n\\t\\temit RejectSlash(_nonce);\\n\\t}\\n\\n\\t/// @dev execute a slash\\n\\t/// @param manifest node manifest\\n\\tfunction execute(string memory manifest) external override onlyGovernance {\\n\\t\\taddress candidate = stake.manifestMap(manifest);\\n\\t\\trequire(candidate != address(0), 'Slasher: nonexistent candidate');\\n\\t\\tuint256 _nonce = nonceOf(candidate);\\n\\t\\trequire(slashes[_nonce].timestamp > 0, 'Slasher: nonexistent slash');\\n\\t\\trequire(slashes[_nonce].status == Types.SlashStatus.Drafted, 'Slasher: slash status is not drafted');\\n\\t\\trequire(block.timestamp > slashes[_nonce].timestamp + publicNoticePeriod, 'Slasher: slash is in public notice period');\\n\\t\\tslashes[nonce].status = Types.SlashStatus.Executed;\\n\\t\\tuint256 amount = slashes[_nonce].amount;\\n\\t\\taddress[] memory validators = slashes[_nonce].validators;\\n\\t\\tuint256 validatorLen = validators.length;\\n\\t\\taddress[] memory beneficiaries = new address[](validatorLen + 2);\\n\\t\\tuint256[] memory amounts = new uint256[](validatorLen + 2);\\n\\t\\tuint256 validatorAmount = (amount * validatorCoef) / MAXCOEF;\\n\\t\\tuint256 drafterAmount = (amount * drafterCoef) / MAXCOEF;\\n\\t\\tuint256 executorAmount = (amount * executorCoef) / MAXCOEF;\\n\\t\\tuint256 burned = amount - drafterAmount - validatorAmount - executorAmount;\\n\\t\\tuint256 averageValidatorAmount = validatorAmount / validatorLen;\\n\\t\\tfor (uint256 i = 0; i < validators.length; i++) {\\n\\t\\t\\tbeneficiaries[i] = validators[i];\\n\\t\\t\\tamounts[i] = averageValidatorAmount;\\n\\t\\t}\\n\\t\\tbeneficiaries[validatorLen] = slashes[_nonce].drafter;\\n\\t\\tamounts[validatorLen] = drafterAmount;\\n\\t\\tbeneficiaries[validatorLen + 1] = msg.sender;\\n\\t\\tamounts[validatorLen + 1] = executorAmount;\\n\\n\\t\\tstake.executeSlash(candidate, amount, beneficiaries, amounts, burned);\\n\\t\\tdelete nonces[candidate];\\n\\n\\t\\temit ExecuteSlash(_nonce, msg.sender);\\n\\t}\\n\\n\\t/// @dev return whether candidate is in slashing\\n\\t/// @param candidate candidate address\\n\\t/// @return whether candidate is in slashing\\n\\tfunction slashExists(address candidate) public view override returns (bool) {\\n\\t\\treturn nonces[candidate] > 0;\\n\\t}\\n\\n\\t/// @dev check whether signatures is valid\\n\\t/// @param hash message hash\\n\\t/// @param signatures signatures for major candidates\\n\\t/// @param signers major candidate signers\\n\\tfunction checkNSignatures(bytes32 hash, bytes[] memory signatures) public view override returns (address[] memory signers) {\\n\\t\\trequire(signatures.length >= majorCandidates.MAX_MAJOR_CANDIDATES() * 2 / 3, 'Slasher: signature length is not enough');\\n\\t\\tsigners = new address[](signatures.length);\\n\\t\\tfor (uint8 i = 0; i < signatures.length; i++) {\\n\\t\\t\\t(address recovered, ECDSAUpgradeable.RecoverError err) = ECDSAUpgradeable.tryRecover(hash, signatures[i]);\\n\\t\\t\\trequire(err == ECDSAUpgradeable.RecoverError.NoError, 'Slasher: invalid signature');\\n\\t\\t\\tif (i > 0) {\\n\\t\\t\\t\\trequire(recovered > signers[i-1], 'Slasher: incorrect signature order');\\n\\t\\t\\t}\\n\\t\\t\\trequire(majorCandidates.isMajor(recovered), 'Slasher: signer is not the major candidate');\\n\\t\\t\\tsigners[i] = recovered;\\n\\t\\t}\\n\\t}\\n\\n\\tfunction getSlashAt(uint256 _nonce) public view override returns (Types.SlashInfo memory) {\\n\\t\\treturn slashes[_nonce];\\n\\t}\\n\\n\\tfunction nonceOf(address candidate) public view override returns (uint256) {\\n\\t\\trequire(slashExists(candidate), 'Slasher: nonexistent slash');\\n\\t\\treturn nonces[candidate];\\n\\t}\\n\\n\\tfunction endOf(uint256 _nonce) public view returns (uint256) {\\n\\t\\trequire(_nonce > 0 && _nonce < nonce, 'Slasher: invalid nonce');\\n\\t\\treturn slashes[_nonce].timestamp + publicNoticePeriod;\\n\\t}\\n\\n\\t/// @dev set drafter slash reward coefficient\\n\\t/// @param _drafterCoef drafter slash reward coefficient\\n\\tfunction setDrafterCoef(uint64 _drafterCoef) external override onlyOwner {\\n\\t\\t_setDrafterCoef(_drafterCoef);\\n\\t}\\n\\n\\t/// @dev set validator slash reward coefficient\\n\\t/// @param _validatorCoef validator slash reward coefficient\\n\\tfunction setValidatorCoef(uint64 _validatorCoef) external override onlyOwner {\\n\\t\\t_setValidatorCoef(_validatorCoef);\\n\\t}\\n\\n\\t/// @dev set executor slash reward coefficient\\n\\t/// @param _executorCoef executor slash reward coefficient\\n\\tfunction setExecutorCoef(uint64 _executorCoef) external override onlyOwner {\\n\\t\\t_setExecutorCoef(_executorCoef);\\n\\t}\\n\\n\\tfunction _setMaxCoef(uint64 maxCoef) internal {\\n\\t\\tMAXCOEF = maxCoef;\\n\\t\\temit MaxCoefUpdated(maxCoef);\\n\\t}\\n\\n\\tfunction _setDrafterCoef(uint64 _drafterCoef) internal {\\n\\t\\trequire(_drafterCoef + validatorCoef + executorCoef <= MAXCOEF, 'Slasher: invalid coefficient');\\n\\t\\tdrafterCoef = _drafterCoef;\\n\\t\\temit DrafterCoefUpdated(_drafterCoef);\\n\\t}\\n\\n\\tfunction _setValidatorCoef(uint64 _validatorCoef) internal {\\n\\t\\trequire(drafterCoef + _validatorCoef + executorCoef <= MAXCOEF, 'Slasher: invalid coefficient');\\n\\t\\tvalidatorCoef = _validatorCoef;\\n\\t\\temit ValidatorCoefUpdated(_validatorCoef);\\n\\t}\\n\\n\\tfunction _setExecutorCoef(uint64 _executorCoef) internal {\\n\\t\\trequire(drafterCoef + validatorCoef + _executorCoef <= MAXCOEF, 'Slasher: invalid coefficient');\\n\\t\\texecutorCoef = _executorCoef;\\n\\t\\temit ExecutorCoefUpdated(_executorCoef);\\n\\t}\\n\\n\\tfunction _setGovernance(address _governance) internal {\\n\\t\\tgovernance = _governance;\\n\\t\\temit GovernanceUpdated(_governance);\\n\\t}\\n\\n\\tfunction _setStake(IStake _stake) internal {\\n\\t\\tstake = _stake;\\n\\t\\temit StakeUpdated(_stake);\\n\\t}\\n\\n\\tfunction _setMajorCandidates(IMajorCandidates _majorCandidates) internal {\\n\\t\\tmajorCandidates = _majorCandidates;\\n\\t\\temit MajorCandidatesUpdated(_majorCandidates);\\n\\t}\\n\\n\\tfunction _setDefaultSlashAmount(uint256 amount) internal {\\n\\t\\tdefaultSlashAmount = amount;\\n\\t\\temit DefaultSlashAmountUpdated(amount);\\n\\t}\\n\\n\\tfunction _setPublicNoticePeriod(uint256 period) internal {\\n\\t\\tpublicNoticePeriod = period;\\n\\t\\temit PublicNoticePeriodUpdated(period);\\n\\t}\\n\\n\\tfunction changeGovernance(address newGovernance) external onlyGovernance {\\n\\t\\t_setGovernance(newGovernance);\\n\\t}\\n}\\n\",\"keccak256\":\"0x66e2f606f213154b518262e5195cd88e7188affb2e9519ff9ee0d47d3c485960\",\"license\":\"GPL-2.0-or-later\"}},\"version\":1}",
  "bytecode": "0x608060405234801561001057600080fd5b50612d42806100206000396000f3fe608060405234801561001057600080fd5b506004361061018d5760003560e01c806399572d6f116100de578063bd590d7e11610097578063ed2a2d6411610071578063ed2a2d641461039f578063f1e08aab146103b2578063f2fde38b146103cc578063fcf1864b146103df57600080fd5b8063bd590d7e1461034b578063c0c045331461035e578063e981d04e1461036757600080fd5b806399572d6f146102c9578063a40077ac146102dc578063affed0e0146102ef578063b17479e914610305578063b200e99314610318578063b965933e1461033857600080fd5b80633a4b66f11161014b5780635aa6e675116101255780635aa6e67514610270578063715018a6146102905780637e06b919146102985780638da5cb5b146102b857600080fd5b80633a4b66f11461022a5780633f4016ed1461024a578063448b5d761461025d57600080fd5b80622c985c146101925780631e03795a146101a7578063201c5cc1146101d057806331cf7898146101e35780633390b475146101fd57806337af69d514610217575b600080fd5b6101a56101a0366004611d25565b6103e8565b005b606b546101ba906001600160401b031681565b6040516101c79190611d57565b60405180910390f35b6101a56101de366004611e5e565b6103fc565b606b546101ba90600160c01b90046001600160401b031681565b606b546101ba90600160401b90046001600160401b031681565b6101a5610225366004611eed565b61067e565b60665461023d906001600160a01b031681565b6040516101c7919061200b565b6101a5610258366004611d25565b6107ae565b6101a561026b366004611d25565b6107bf565b606554610283906001600160a01b031681565b6040516101c79190612022565b6101a56107d0565b6102ab6102a6366004612030565b6107e4565b6040516101c79190612172565b6033546001600160a01b0316610283565b6101a56102d736600461218a565b6108c9565b6101a56102ea366004612269565b6108fc565b6102f8606a5481565b6040516101c79190612301565b60675461023d906001600160a01b031681565b61032b61032636600461230f565b610c8a565b6040516101c791906123a4565b6102f8610346366004612030565b610f4a565b6101a5610359366004611e5e565b610f9d565b6102f860685481565b61039261037536600461218a565b6001600160a01b03166000908152606d6020526040902054151590565b6040516101c791906123bd565b6102f86103ad36600461218a565b61154a565b606b546101ba90600160801b90046001600160401b031681565b6101a56103da36600461218a565b61159b565b6102f860695481565b6103f06115d2565b6103f9816115fc565b50565b6065546001600160a01b0316331461042f5760405162461bcd60e51b815260040161042690612410565b60405180910390fd5b60665460405163de8800eb60e01b81526000916001600160a01b03169063de8800eb90610460908590600401612482565b60206040518083038186803b15801561047857600080fd5b505afa15801561048c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b0919061249e565b90506001600160a01b0381166104d85760405162461bcd60e51b8152600401610426906124f6565b6001600160a01b0381166000908152606d6020908152604080832054808452606c9092529091206004015461051f5760405162461bcd60e51b81526004016104269061253a565b6000818152606c602052604081206005015460ff166002811115610545576105456120b4565b146105625760405162461bcd60e51b81526004016104269061258b565b6069546000828152606c602052604090206004015461058191906125b1565b4211156105a05760405162461bcd60e51b815260040161042690612613565b6000818152606c60205260409081902060058101805460ff1916600117905560665460039091015491516350a2fbcf60e11b81526001600160a01b039091169163a145f79e916105f4918691600401612623565b600060405180830381600087803b15801561060e57600080fd5b505af1158015610622573d6000803e3d6000fd5b5050506001600160a01b0383166000908152606d602052604080822091909155517f378880ee1e055f93925e14c6f78a3a8e2a291dcacd11c78700726165555eaedc9150610671908390612301565b60405180910390a1505050565b600054610100900460ff161580801561069e5750600054600160ff909116105b806106b85750303b1580156106b8575060005460ff166001145b6106d45760405162461bcd60e51b815260040161042690612689565b6000805460ff1916600117905580156106f7576000805461ff0019166101001790555b6107008b6116ba565b6107098a61170c565b61071289611757565b61071b886117a2565b610724876117ed565b61072d86611822565b61073685611857565b61073f846118a3565b610748836115fc565b61075182611959565b6001606a5580156107a1576000805461ff00191690556040517f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890610798906001906126ad565b60405180910390a15b5050505050505050505050565b6107b66115d2565b6103f9816118a3565b6107c76115d2565b6103f981611959565b6107d86115d2565b6107e260006116ba565b565b6107ec611c32565b6000828152606c6020908152604091829020825160c08101845281546001600160a01b039081168252600183015416818401526002820180548551818602810186018752818152929593949386019383018282801561087457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610856575b50505091835250506003820154602082015260048201546040820152600582015460609091019060ff1660028111156108af576108af6120b4565b60028111156108c0576108c06120b4565b90525092915050565b6065546001600160a01b031633146108f35760405162461bcd60e51b815260040161042690612410565b6103f98161170c565b6065546001600160a01b031633146109265760405162461bcd60e51b815260040161042690612410565b60665460405163de8800eb60e01b81526000916001600160a01b03169063de8800eb90610957908790600401612482565b60206040518083038186803b15801561096f57600080fd5b505afa158015610983573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a7919061249e565b90506001600160a01b0381166109cf5760405162461bcd60e51b8152600401610426906124f6565b6001600160a01b0381166000908152606d602052604090205415610a055760405162461bcd60e51b8152600401610426906126ef565b6000606a54868686604051602001610a2094939291906126ff565b60408051601f19818403018152828201909152601a82527f19457468657265756d205369676e6564204d6573736167653a0a0000000000006020830152805190925060009190610a6f90611a07565b83604051602001610a8293929190612766565b60405160208183030381529060405290506000610aa6828051906020012086610c8a565b6066546068546040516328aa0f1b60e01b81529293506000926001600160a01b03909216916328aa0f1b91610ae091899190600401612623565b602060405180830381600087803b158015610afa57600080fd5b505af1158015610b0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b329190612795565b90508015610c7f576040805160c0810182526001600160a01b03871681523360208201529081018390526060810182905242608082015260a0810160009052606a546000908152606c6020908152604091829020835181546001600160a01b039182166001600160a01b031991821617835585840151600184018054919093169116179055918301518051610bcd9260028501920190611c8a565b50606082015160038201556080820151600482015560a082015160058201805460ff19166001836002811115610c0557610c056120b4565b021790555050606a546001600160a01b0387166000908152606d602052604090819020829055517fe6defb800f5f0e2b03dc7f0aa7621f0d101ade0229c9d61487c78f7cde8fee829250610c61919088908d908d908d906127b6565b60405180910390a1606a8054906000610c7983612809565b91905055505b505050505050505050565b60606003606760009054906101000a90046001600160a01b03166001600160a01b0316637809d1c86040518163ffffffff1660e01b815260040160206040518083038186803b158015610cdc57600080fd5b505afa158015610cf0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d149190612795565b610d1f906002612824565b610d299190612859565b82511015610d495760405162461bcd60e51b8152600401610426906128b1565b81516001600160401b03811115610d6257610d62611d65565b604051908082528060200260200182016040528015610d8b578160200160208202803683370190505b50905060005b82518160ff161015610f4357600080610dc686868560ff1681518110610db957610db96128c1565b6020026020010151611b0c565b90925090506000816004811115610ddf57610ddf6120b4565b14610dfc5760405162461bcd60e51b81526004016104269061290b565b60ff831615610e5c5783610e1160018561291b565b60ff1681518110610e2457610e246128c1565b60200260200101516001600160a01b0316826001600160a01b031611610e5c5760405162461bcd60e51b81526004016104269061297e565b60675460405163048d865f60e31b81526001600160a01b039091169063246c32f890610e8c908590600401612022565b60206040518083038186803b158015610ea457600080fd5b505afa158015610eb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610edc91906129a1565b610ef85760405162461bcd60e51b815260040161042690612a09565b81848460ff1681518110610f0e57610f0e6128c1565b60200260200101906001600160a01b031690816001600160a01b03168152505050508080610f3b90612a19565b915050610d91565b5092915050565b60008082118015610f5c5750606a5482105b610f785760405162461bcd60e51b815260040161042690612a5f565b6069546000838152606c6020526040902060040154610f9791906125b1565b92915050565b6065546001600160a01b03163314610fc75760405162461bcd60e51b815260040161042690612410565b60665460405163de8800eb60e01b81526000916001600160a01b03169063de8800eb90610ff8908590600401612482565b60206040518083038186803b15801561101057600080fd5b505afa158015611024573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611048919061249e565b90506001600160a01b0381166110705760405162461bcd60e51b8152600401610426906124f6565b600061107b8261154a565b6000818152606c60205260409020600401549091506110ac5760405162461bcd60e51b81526004016104269061253a565b6000818152606c602052604081206005015460ff1660028111156110d2576110d26120b4565b146110ef5760405162461bcd60e51b81526004016104269061258b565b6069546000828152606c602052604090206004015461110e91906125b1565b421161112c5760405162461bcd60e51b815260040161042690612ab5565b606a546000908152606c60209081526040808320600501805460ff191660029081179091558484528184206003810154910180548351818602810186019094528084529194939091908301828280156111ae57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611190575b50508351939450600092506111c8915083905060026125b1565b6001600160401b038111156111df576111df611d65565b604051908082528060200260200182016040528015611208578160200160208202803683370190505b50905060006112188360026125b1565b6001600160401b0381111561122f5761122f611d65565b604051908082528060200260200182016040528015611258578160200160208202803683370190505b50606b549091506000906001600160401b038082169161128191600160801b9091041688612824565b61128b9190612859565b606b549091506000906001600160401b03808216916112b391600160401b9091041689612824565b6112bd9190612859565b606b549091506000906001600160401b03808216916112e591600160c01b909104168a612824565b6112ef9190612859565b9050600081846112ff858c612ac5565b6113099190612ac5565b6113139190612ac5565b905060006113218886612859565b905060005b89518110156113ab57898181518110611341576113416128c1565b602002602001015188828151811061135b5761135b6128c1565b60200260200101906001600160a01b031690816001600160a01b0316815250508187828151811061138e5761138e6128c1565b6020908102919091010152806113a381612809565b915050611326565b5060008b8152606c602052604090206001015487516001600160a01b039091169088908a9081106113de576113de6128c1565b60200260200101906001600160a01b031690816001600160a01b03168152505083868981518110611411576114116128c1565b602090810291909101015233876114298a60016125b1565b81518110611439576114396128c1565b6001600160a01b0390921660209283029190910190910152828661145e8a60016125b1565b8151811061146e5761146e6128c1565b60209081029190910101526066546040516001621f07f360e31b031981526001600160a01b039091169063ff07c068906114b4908f908e908c908c908990600401612b17565b600060405180830381600087803b1580156114ce57600080fd5b505af11580156114e2573d6000803e3d6000fd5b5050506001600160a01b038d166000908152606d602052604080822091909155517f3b504ca2bcb5eb7cf652c7a8dad2a58f5d597d617a6bf3fa93f7a3407541caa19150611533908d903390612b67565b60405180910390a150505050505050505050505050565b6001600160a01b0381166000908152606d602052604081205461157f5760405162461bcd60e51b81526004016104269061253a565b506001600160a01b03166000908152606d602052604090205490565b6115a36115d2565b6001600160a01b0381166115c95760405162461bcd60e51b815260040161042690612bc5565b6103f9816116ba565b6033546001600160a01b031633146107e25760405162461bcd60e51b815260040161042690612c07565b606b546001600160401b0380821691600160c01b8104821691611629918591600160401b90910416612c17565b6116339190612c17565b6001600160401b0316111561165a5760405162461bcd60e51b815260040161042690612c7e565b606b805467ffffffffffffffff60801b1916600160801b6001600160401b038416021790556040517ff255742f6b0f40bd0cd4621bea7c69bfb9af99658510d6836a321c02a75cf00d906116af908390612cac565b60405180910390a150565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606580546001600160a01b0319166001600160a01b0383161790556040517f9d3e522e1e47a2f6009739342b9cc7b252a1888154e843ab55ee1c81745795ab906116af908390612022565b606680546001600160a01b0319166001600160a01b0383161790556040517f27a2474ca8353642fab173d2cadd631382797bbd4f01c76aa56f932bceaf580f906116af90839061200b565b606780546001600160a01b0319166001600160a01b0383161790556040517f476e1ab7433dee921bc37cd453322068187c39ca4847e6a0d4aa36f559b8461c906116af90839061200b565b60688190556040517f27dbc9ba90428b0cd9b5778615ecf054d9f4727201131e038dd891a15653cf74906116af908390612301565b60698190556040517f4e0ad0e7cffd9cb3c3bfb84f8728dc496f70b5a9bec04a05c9f04ad15f83859e906116af908390612301565b606b805467ffffffffffffffff19166001600160401b0383161790556040517f0b8f3c74b24bc0f01cca1823c0c201f7f1c9ff08ee52bc5b7d9bc610258e24f6906116af908390612cac565b606b546001600160401b0380821691600160c01b81048216916118ce91600160801b90041684612c17565b6118d89190612c17565b6001600160401b031611156118ff5760405162461bcd60e51b815260040161042690612c7e565b606b80546fffffffffffffffff00000000000000001916600160401b6001600160401b038416021790556040517f1c7ba5f24f3052cfeeb7705b36f206bf2bc0b9af1bf4bda87ceb114fbce5c01a906116af908390611d57565b606b546001600160401b0380821691839161198691600160801b8104821691600160401b90910416612c17565b6119909190612c17565b6001600160401b031611156119b75760405162461bcd60e51b815260040161042690612c7e565b606b80546001600160c01b0316600160c01b6001600160401b038416021790556040517f398b11c7ff45a5ba321f2c6bad44de1afb92856bfbc4b35e5f5d7cc19af5f1ca906116af908390612cac565b606081611a2b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a555780611a3f81612809565b9150611a4e9050600a83612859565b9150611a2f565b6000816001600160401b03811115611a6f57611a6f611d65565b6040519080825280601f01601f191660200182016040528015611a99576020820181803683370190505b5090505b8415611b0457611aae600183612ac5565b9150611abb600a86612cba565b611ac69060306125b1565b60f81b818381518110611adb57611adb6128c1565b60200101906001600160f81b031916908160001a905350611afd600a86612859565b9450611a9d565b949350505050565b600080825160411415611b435760208301516040840151606085015160001a611b3787828585611b52565b94509450505050611b4b565b506000905060025b9250929050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611b895750600090506003611c29565b8460ff16601b14158015611ba157508460ff16601c14155b15611bb25750600090506004611c29565b600060018787878760405160008152602001604052604051611bd79493929190612cd7565b6020604051602081039080840390855afa158015611bf9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611c2257600060019250925050611c29565b9150600090505b94509492505050565b6040518060c0016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160608152602001600081526020016000815260200160006002811115611c8557611c856120b4565b905290565b828054828255906000526020600020908101928215611cdf579160200282015b82811115611cdf57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611caa565b50611ceb929150611cef565b5090565b5b80821115611ceb5760008155600101611cf0565b6001600160401b0381165b81146103f957600080fd5b8035610f9781611d04565b600060208284031215611d3a57611d3a600080fd5b6000611b048484611d1a565b6001600160401b0381165b82525050565b60208101610f978284611d46565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b0382111715611da057611da0611d65565b6040525050565b6000611db260405190565b9050611dbe8282611d7b565b919050565b60006001600160401b03821115611ddc57611ddc611d65565b601f19601f83011660200192915050565b82818337506000910152565b6000611e0c611e0784611dc3565b611da7565b905082815260208101848484011115611e2757611e27600080fd5b611e32848285611ded565b509392505050565b600082601f830112611e4e57611e4e600080fd5b8135611b04848260208601611df9565b600060208284031215611e7357611e73600080fd5b81356001600160401b03811115611e8c57611e8c600080fd5b611b0484828501611e3a565b60006001600160a01b038216610f97565b611d0f81611e98565b8035610f9781611ea9565b6000610f9782611e98565b611d0f81611ebd565b8035610f9781611ec8565b80611d0f565b8035610f9781611edc565b6000806000806000806000806000806101408b8d031215611f1057611f10600080fd5b6000611f1c8d8d611eb2565b9a50506020611f2d8d828e01611eb2565b9950506040611f3e8d828e01611ed1565b9850506060611f4f8d828e01611ed1565b9750506080611f608d828e01611ee2565b96505060a0611f718d828e01611ee2565b95505060c0611f828d828e01611d1a565b94505060e0611f938d828e01611d1a565b935050610100611fa58d828e01611d1a565b925050610120611fb78d828e01611d1a565b9150509295989b9194979a5092959850565b6000610f976001600160a01b038316611fe0565b90565b6001600160a01b031690565b6000610f9782611fc9565b6000610f9782611fec565b611d5181611ff7565b60208101610f978284612002565b611d5181611e98565b60208101610f978284612019565b60006020828403121561204557612045600080fd5b6000611b048484611ee2565b600061205d8383612019565b505060200190565b600061206f825190565b80845260209384019383018060005b838110156120a35781516120928882612051565b97506020830192505060010161207e565b509495945050505050565b80611d51565b634e487b7160e01b600052602160045260246000fd5b600381106103f9576103f96120b4565b80611dbe816120ca565b6000610f97826120da565b611d51816120e4565b805160009060c084019061210c8582612019565b50602083015161211f6020860182612019565b50604083015184820360408601526121378282612065565b915050606083015161214c60608601826120ae565b50608083015161215f60808601826120ae565b5060a0830151611e3260a08601826120ef565b6020808252810161218381846120f8565b9392505050565b60006020828403121561219f5761219f600080fd5b6000611b048484611eb2565b60006001600160401b038211156121c4576121c4611d65565b5060209081020190565b60006121dc611e07846121ab565b838152905060208082019084028301858111156121fb576121fb600080fd5b835b8181101561223b5780356001600160401b0381111561221e5761221e600080fd5b80860161222b8982611e3a565b85525050602092830192016121fd565b5050509392505050565b600082601f83011261225957612259600080fd5b8135611b048482602086016121ce565b6000806000806080858703121561228257612282600080fd5b600061228e8787611d1a565b94505060208501356001600160401b038111156122ad576122ad600080fd5b6122b987828801611e3a565b93505060406122ca87828801611d1a565b92505060608501356001600160401b038111156122e9576122e9600080fd5b6122f587828801612245565b91505092959194509250565b60208101610f9782846120ae565b6000806040838503121561232557612325600080fd5b60006123318585611ee2565b92505060208301356001600160401b0381111561235057612350600080fd5b61235c85828601612245565b9150509250929050565b6000612370825190565b80845260209384019383018060005b838110156120a35781516123938882612051565b97506020830192505060010161237f565b602080825281016121838184612366565b801515611d51565b60208101610f9782846123b5565b602581526000602082017f536c61736865723a2063616c6c6572206d7573742062652074686520476f7665815264726e61636560d81b602082015291505b5060400190565b60208082528101610f97816123cb565b60005b8381101561243b578181015183820152602001612423565b8381111561244a576000848401525b50505050565b600061245a825190565b808452602084019350612471818560208601612420565b601f01601f19169290920192915050565b602080825281016121838184612450565b8051610f9781611ea9565b6000602082840312156124b3576124b3600080fd5b6000611b048484612493565b601e81526000602082017f536c61736865723a206e6f6e6578697374656e742063616e6469646174650000815291505b5060200190565b60208082528101610f97816124bf565b601a81526000602082017f536c61736865723a206e6f6e6578697374656e7420736c617368000000000000815291506124ef565b60208082528101610f9781612506565b602481526000602082017f536c61736865723a20736c61736820737461747573206973206e6f7420647261815263199d195960e21b60208201529150612409565b60208082528101610f978161254a565b634e487b7160e01b600052601160045260246000fd5b600082198211156125c4576125c461259b565b500190565b602d81526000602082017f536c61736865723a20736c617368206973206e6f7420696e207075626c69632081526c1b9bdd1a58d9481c195c9a5bd9609a1b60208201529150612409565b60208082528101610f97816125c9565b604081016126318285612019565b61218360208301846120ae565b602e81526000602082017f496e697469616c697a61626c653a20636f6e747261637420697320616c72656181526d191e481a5b9a5d1a585b1a5e995960921b60208201529150612409565b60208082528101610f978161263e565b600060ff8216610f97565b611d5181612699565b60208101610f9782846126a4565b601e81526000602082017f536c61736865723a2063616e64696461746520697320696e20736c6173680000815291506124ef565b60208082528101610f97816126bb565b6080810161270d82876120ae565b61271a6020830186611d46565b818103604083015261272c8185612450565b905061273b6060830184611d46565b95945050505050565b600061274e825190565b61275c818560208601612420565b9290920192915050565b60006127728286612744565b915061277e8285612744565b915061273b8284612744565b8051610f9781611edc565b6000602082840312156127aa576127aa600080fd5b6000611b04848461278a565b60a081016127c482886120ae565b6127d16020830187612019565b6127de6040830186611d46565b81810360608301526127f08185612450565b90506127ff6080830184611d46565b9695505050505050565b600060001982141561281d5761281d61259b565b5060010190565b600081600019048311821515161561283e5761283e61259b565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261286857612868612843565b500490565b602781526000602082017f536c61736865723a207369676e6174757265206c656e677468206973206e6f74815266040cadcdeeaced60cb1b60208201529150612409565b60208082528101610f978161286d565b634e487b7160e01b600052603260045260246000fd5b601a81526000602082017f536c61736865723a20696e76616c6964207369676e6174757265000000000000815291506124ef565b60208082528101610f97816128d7565b600060ff8216915060ff83165b92508282101561293a5761293a61259b565b500390565b602281526000602082017f536c61736865723a20696e636f7272656374207369676e6174757265206f726481526132b960f11b60208201529150612409565b60208082528101610f978161293f565b801515611d0f565b8051610f978161298e565b6000602082840312156129b6576129b6600080fd5b6000611b048484612996565b602a81526000602082017f536c61736865723a207369676e6572206973206e6f7420746865206d616a6f728152692063616e64696461746560b01b60208201529150612409565b60208082528101610f97816129c2565b600060ff8216915060ff82141561281d5761281d61259b565b6016815260006020820175536c61736865723a20696e76616c6964206e6f6e636560501b815291506124ef565b60208082528101610f9781612a32565b602981526000602082017f536c61736865723a20736c61736820697320696e207075626c6963206e6f746981526818d9481c195c9a5bd960ba1b60208201529150612409565b60208082528101610f9781612a6f565b600082612928565b600061205d83836120ae565b6000612ae3825190565b80845260209384019383018060005b838110156120a3578151612b068882612acd565b975060208301925050600101612af2565b60a08101612b258288612019565b612b3260208301876120ae565b8181036040830152612b448186612366565b90508181036060830152612b588185612ad9565b90506127ff60808301846120ae565b60408101612b7582856120ae565b6121836020830184612019565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150612409565b60208082528101610f9781612b82565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572910190815260006124ef565b60208082528101610f9781612bd5565b60006001600160401b03821691506001600160401b0383169250826001600160401b03038211156125c4576125c461259b565b601c81526000602082017f536c61736865723a20696e76616c696420636f656666696369656e7400000000815291506124ef565b60208082528101610f9781612c4a565b6000610f97611fdd6001600160401b03841681565b611d5181612c8e565b60208101610f978284612ca3565b600082612cc957612cc9612843565b500690565b60ff8116611d51565b60808101612ce582876120ae565b612cf26020830186612cce565b612cff60408301856120ae565b61273b60608301846120ae56fea2646970667358221220d84986f8b73044743096b20af0fc20901e3bcbba1f2e51a0bd35ca936928fcbe64736f6c63430008090033",
  "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061018d5760003560e01c806399572d6f116100de578063bd590d7e11610097578063ed2a2d6411610071578063ed2a2d641461039f578063f1e08aab146103b2578063f2fde38b146103cc578063fcf1864b146103df57600080fd5b8063bd590d7e1461034b578063c0c045331461035e578063e981d04e1461036757600080fd5b806399572d6f146102c9578063a40077ac146102dc578063affed0e0146102ef578063b17479e914610305578063b200e99314610318578063b965933e1461033857600080fd5b80633a4b66f11161014b5780635aa6e675116101255780635aa6e67514610270578063715018a6146102905780637e06b919146102985780638da5cb5b146102b857600080fd5b80633a4b66f11461022a5780633f4016ed1461024a578063448b5d761461025d57600080fd5b80622c985c146101925780631e03795a146101a7578063201c5cc1146101d057806331cf7898146101e35780633390b475146101fd57806337af69d514610217575b600080fd5b6101a56101a0366004611d25565b6103e8565b005b606b546101ba906001600160401b031681565b6040516101c79190611d57565b60405180910390f35b6101a56101de366004611e5e565b6103fc565b606b546101ba90600160c01b90046001600160401b031681565b606b546101ba90600160401b90046001600160401b031681565b6101a5610225366004611eed565b61067e565b60665461023d906001600160a01b031681565b6040516101c7919061200b565b6101a5610258366004611d25565b6107ae565b6101a561026b366004611d25565b6107bf565b606554610283906001600160a01b031681565b6040516101c79190612022565b6101a56107d0565b6102ab6102a6366004612030565b6107e4565b6040516101c79190612172565b6033546001600160a01b0316610283565b6101a56102d736600461218a565b6108c9565b6101a56102ea366004612269565b6108fc565b6102f8606a5481565b6040516101c79190612301565b60675461023d906001600160a01b031681565b61032b61032636600461230f565b610c8a565b6040516101c791906123a4565b6102f8610346366004612030565b610f4a565b6101a5610359366004611e5e565b610f9d565b6102f860685481565b61039261037536600461218a565b6001600160a01b03166000908152606d6020526040902054151590565b6040516101c791906123bd565b6102f86103ad36600461218a565b61154a565b606b546101ba90600160801b90046001600160401b031681565b6101a56103da36600461218a565b61159b565b6102f860695481565b6103f06115d2565b6103f9816115fc565b50565b6065546001600160a01b0316331461042f5760405162461bcd60e51b815260040161042690612410565b60405180910390fd5b60665460405163de8800eb60e01b81526000916001600160a01b03169063de8800eb90610460908590600401612482565b60206040518083038186803b15801561047857600080fd5b505afa15801561048c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b0919061249e565b90506001600160a01b0381166104d85760405162461bcd60e51b8152600401610426906124f6565b6001600160a01b0381166000908152606d6020908152604080832054808452606c9092529091206004015461051f5760405162461bcd60e51b81526004016104269061253a565b6000818152606c602052604081206005015460ff166002811115610545576105456120b4565b146105625760405162461bcd60e51b81526004016104269061258b565b6069546000828152606c602052604090206004015461058191906125b1565b4211156105a05760405162461bcd60e51b815260040161042690612613565b6000818152606c60205260409081902060058101805460ff1916600117905560665460039091015491516350a2fbcf60e11b81526001600160a01b039091169163a145f79e916105f4918691600401612623565b600060405180830381600087803b15801561060e57600080fd5b505af1158015610622573d6000803e3d6000fd5b5050506001600160a01b0383166000908152606d602052604080822091909155517f378880ee1e055f93925e14c6f78a3a8e2a291dcacd11c78700726165555eaedc9150610671908390612301565b60405180910390a1505050565b600054610100900460ff161580801561069e5750600054600160ff909116105b806106b85750303b1580156106b8575060005460ff166001145b6106d45760405162461bcd60e51b815260040161042690612689565b6000805460ff1916600117905580156106f7576000805461ff0019166101001790555b6107008b6116ba565b6107098a61170c565b61071289611757565b61071b886117a2565b610724876117ed565b61072d86611822565b61073685611857565b61073f846118a3565b610748836115fc565b61075182611959565b6001606a5580156107a1576000805461ff00191690556040517f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890610798906001906126ad565b60405180910390a15b5050505050505050505050565b6107b66115d2565b6103f9816118a3565b6107c76115d2565b6103f981611959565b6107d86115d2565b6107e260006116ba565b565b6107ec611c32565b6000828152606c6020908152604091829020825160c08101845281546001600160a01b039081168252600183015416818401526002820180548551818602810186018752818152929593949386019383018282801561087457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610856575b50505091835250506003820154602082015260048201546040820152600582015460609091019060ff1660028111156108af576108af6120b4565b60028111156108c0576108c06120b4565b90525092915050565b6065546001600160a01b031633146108f35760405162461bcd60e51b815260040161042690612410565b6103f98161170c565b6065546001600160a01b031633146109265760405162461bcd60e51b815260040161042690612410565b60665460405163de8800eb60e01b81526000916001600160a01b03169063de8800eb90610957908790600401612482565b60206040518083038186803b15801561096f57600080fd5b505afa158015610983573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a7919061249e565b90506001600160a01b0381166109cf5760405162461bcd60e51b8152600401610426906124f6565b6001600160a01b0381166000908152606d602052604090205415610a055760405162461bcd60e51b8152600401610426906126ef565b6000606a54868686604051602001610a2094939291906126ff565b60408051601f19818403018152828201909152601a82527f19457468657265756d205369676e6564204d6573736167653a0a0000000000006020830152805190925060009190610a6f90611a07565b83604051602001610a8293929190612766565b60405160208183030381529060405290506000610aa6828051906020012086610c8a565b6066546068546040516328aa0f1b60e01b81529293506000926001600160a01b03909216916328aa0f1b91610ae091899190600401612623565b602060405180830381600087803b158015610afa57600080fd5b505af1158015610b0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b329190612795565b90508015610c7f576040805160c0810182526001600160a01b03871681523360208201529081018390526060810182905242608082015260a0810160009052606a546000908152606c6020908152604091829020835181546001600160a01b039182166001600160a01b031991821617835585840151600184018054919093169116179055918301518051610bcd9260028501920190611c8a565b50606082015160038201556080820151600482015560a082015160058201805460ff19166001836002811115610c0557610c056120b4565b021790555050606a546001600160a01b0387166000908152606d602052604090819020829055517fe6defb800f5f0e2b03dc7f0aa7621f0d101ade0229c9d61487c78f7cde8fee829250610c61919088908d908d908d906127b6565b60405180910390a1606a8054906000610c7983612809565b91905055505b505050505050505050565b60606003606760009054906101000a90046001600160a01b03166001600160a01b0316637809d1c86040518163ffffffff1660e01b815260040160206040518083038186803b158015610cdc57600080fd5b505afa158015610cf0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d149190612795565b610d1f906002612824565b610d299190612859565b82511015610d495760405162461bcd60e51b8152600401610426906128b1565b81516001600160401b03811115610d6257610d62611d65565b604051908082528060200260200182016040528015610d8b578160200160208202803683370190505b50905060005b82518160ff161015610f4357600080610dc686868560ff1681518110610db957610db96128c1565b6020026020010151611b0c565b90925090506000816004811115610ddf57610ddf6120b4565b14610dfc5760405162461bcd60e51b81526004016104269061290b565b60ff831615610e5c5783610e1160018561291b565b60ff1681518110610e2457610e246128c1565b60200260200101516001600160a01b0316826001600160a01b031611610e5c5760405162461bcd60e51b81526004016104269061297e565b60675460405163048d865f60e31b81526001600160a01b039091169063246c32f890610e8c908590600401612022565b60206040518083038186803b158015610ea457600080fd5b505afa158015610eb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610edc91906129a1565b610ef85760405162461bcd60e51b815260040161042690612a09565b81848460ff1681518110610f0e57610f0e6128c1565b60200260200101906001600160a01b031690816001600160a01b03168152505050508080610f3b90612a19565b915050610d91565b5092915050565b60008082118015610f5c5750606a5482105b610f785760405162461bcd60e51b815260040161042690612a5f565b6069546000838152606c6020526040902060040154610f9791906125b1565b92915050565b6065546001600160a01b03163314610fc75760405162461bcd60e51b815260040161042690612410565b60665460405163de8800eb60e01b81526000916001600160a01b03169063de8800eb90610ff8908590600401612482565b60206040518083038186803b15801561101057600080fd5b505afa158015611024573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611048919061249e565b90506001600160a01b0381166110705760405162461bcd60e51b8152600401610426906124f6565b600061107b8261154a565b6000818152606c60205260409020600401549091506110ac5760405162461bcd60e51b81526004016104269061253a565b6000818152606c602052604081206005015460ff1660028111156110d2576110d26120b4565b146110ef5760405162461bcd60e51b81526004016104269061258b565b6069546000828152606c602052604090206004015461110e91906125b1565b421161112c5760405162461bcd60e51b815260040161042690612ab5565b606a546000908152606c60209081526040808320600501805460ff191660029081179091558484528184206003810154910180548351818602810186019094528084529194939091908301828280156111ae57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611190575b50508351939450600092506111c8915083905060026125b1565b6001600160401b038111156111df576111df611d65565b604051908082528060200260200182016040528015611208578160200160208202803683370190505b50905060006112188360026125b1565b6001600160401b0381111561122f5761122f611d65565b604051908082528060200260200182016040528015611258578160200160208202803683370190505b50606b549091506000906001600160401b038082169161128191600160801b9091041688612824565b61128b9190612859565b606b549091506000906001600160401b03808216916112b391600160401b9091041689612824565b6112bd9190612859565b606b549091506000906001600160401b03808216916112e591600160c01b909104168a612824565b6112ef9190612859565b9050600081846112ff858c612ac5565b6113099190612ac5565b6113139190612ac5565b905060006113218886612859565b905060005b89518110156113ab57898181518110611341576113416128c1565b602002602001015188828151811061135b5761135b6128c1565b60200260200101906001600160a01b031690816001600160a01b0316815250508187828151811061138e5761138e6128c1565b6020908102919091010152806113a381612809565b915050611326565b5060008b8152606c602052604090206001015487516001600160a01b039091169088908a9081106113de576113de6128c1565b60200260200101906001600160a01b031690816001600160a01b03168152505083868981518110611411576114116128c1565b602090810291909101015233876114298a60016125b1565b81518110611439576114396128c1565b6001600160a01b0390921660209283029190910190910152828661145e8a60016125b1565b8151811061146e5761146e6128c1565b60209081029190910101526066546040516001621f07f360e31b031981526001600160a01b039091169063ff07c068906114b4908f908e908c908c908990600401612b17565b600060405180830381600087803b1580156114ce57600080fd5b505af11580156114e2573d6000803e3d6000fd5b5050506001600160a01b038d166000908152606d602052604080822091909155517f3b504ca2bcb5eb7cf652c7a8dad2a58f5d597d617a6bf3fa93f7a3407541caa19150611533908d903390612b67565b60405180910390a150505050505050505050505050565b6001600160a01b0381166000908152606d602052604081205461157f5760405162461bcd60e51b81526004016104269061253a565b506001600160a01b03166000908152606d602052604090205490565b6115a36115d2565b6001600160a01b0381166115c95760405162461bcd60e51b815260040161042690612bc5565b6103f9816116ba565b6033546001600160a01b031633146107e25760405162461bcd60e51b815260040161042690612c07565b606b546001600160401b0380821691600160c01b8104821691611629918591600160401b90910416612c17565b6116339190612c17565b6001600160401b0316111561165a5760405162461bcd60e51b815260040161042690612c7e565b606b805467ffffffffffffffff60801b1916600160801b6001600160401b038416021790556040517ff255742f6b0f40bd0cd4621bea7c69bfb9af99658510d6836a321c02a75cf00d906116af908390612cac565b60405180910390a150565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606580546001600160a01b0319166001600160a01b0383161790556040517f9d3e522e1e47a2f6009739342b9cc7b252a1888154e843ab55ee1c81745795ab906116af908390612022565b606680546001600160a01b0319166001600160a01b0383161790556040517f27a2474ca8353642fab173d2cadd631382797bbd4f01c76aa56f932bceaf580f906116af90839061200b565b606780546001600160a01b0319166001600160a01b0383161790556040517f476e1ab7433dee921bc37cd453322068187c39ca4847e6a0d4aa36f559b8461c906116af90839061200b565b60688190556040517f27dbc9ba90428b0cd9b5778615ecf054d9f4727201131e038dd891a15653cf74906116af908390612301565b60698190556040517f4e0ad0e7cffd9cb3c3bfb84f8728dc496f70b5a9bec04a05c9f04ad15f83859e906116af908390612301565b606b805467ffffffffffffffff19166001600160401b0383161790556040517f0b8f3c74b24bc0f01cca1823c0c201f7f1c9ff08ee52bc5b7d9bc610258e24f6906116af908390612cac565b606b546001600160401b0380821691600160c01b81048216916118ce91600160801b90041684612c17565b6118d89190612c17565b6001600160401b031611156118ff5760405162461bcd60e51b815260040161042690612c7e565b606b80546fffffffffffffffff00000000000000001916600160401b6001600160401b038416021790556040517f1c7ba5f24f3052cfeeb7705b36f206bf2bc0b9af1bf4bda87ceb114fbce5c01a906116af908390611d57565b606b546001600160401b0380821691839161198691600160801b8104821691600160401b90910416612c17565b6119909190612c17565b6001600160401b031611156119b75760405162461bcd60e51b815260040161042690612c7e565b606b80546001600160c01b0316600160c01b6001600160401b038416021790556040517f398b11c7ff45a5ba321f2c6bad44de1afb92856bfbc4b35e5f5d7cc19af5f1ca906116af908390612cac565b606081611a2b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a555780611a3f81612809565b9150611a4e9050600a83612859565b9150611a2f565b6000816001600160401b03811115611a6f57611a6f611d65565b6040519080825280601f01601f191660200182016040528015611a99576020820181803683370190505b5090505b8415611b0457611aae600183612ac5565b9150611abb600a86612cba565b611ac69060306125b1565b60f81b818381518110611adb57611adb6128c1565b60200101906001600160f81b031916908160001a905350611afd600a86612859565b9450611a9d565b949350505050565b600080825160411415611b435760208301516040840151606085015160001a611b3787828585611b52565b94509450505050611b4b565b506000905060025b9250929050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611b895750600090506003611c29565b8460ff16601b14158015611ba157508460ff16601c14155b15611bb25750600090506004611c29565b600060018787878760405160008152602001604052604051611bd79493929190612cd7565b6020604051602081039080840390855afa158015611bf9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611c2257600060019250925050611c29565b9150600090505b94509492505050565b6040518060c0016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160608152602001600081526020016000815260200160006002811115611c8557611c856120b4565b905290565b828054828255906000526020600020908101928215611cdf579160200282015b82811115611cdf57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611caa565b50611ceb929150611cef565b5090565b5b80821115611ceb5760008155600101611cf0565b6001600160401b0381165b81146103f957600080fd5b8035610f9781611d04565b600060208284031215611d3a57611d3a600080fd5b6000611b048484611d1a565b6001600160401b0381165b82525050565b60208101610f978284611d46565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b0382111715611da057611da0611d65565b6040525050565b6000611db260405190565b9050611dbe8282611d7b565b919050565b60006001600160401b03821115611ddc57611ddc611d65565b601f19601f83011660200192915050565b82818337506000910152565b6000611e0c611e0784611dc3565b611da7565b905082815260208101848484011115611e2757611e27600080fd5b611e32848285611ded565b509392505050565b600082601f830112611e4e57611e4e600080fd5b8135611b04848260208601611df9565b600060208284031215611e7357611e73600080fd5b81356001600160401b03811115611e8c57611e8c600080fd5b611b0484828501611e3a565b60006001600160a01b038216610f97565b611d0f81611e98565b8035610f9781611ea9565b6000610f9782611e98565b611d0f81611ebd565b8035610f9781611ec8565b80611d0f565b8035610f9781611edc565b6000806000806000806000806000806101408b8d031215611f1057611f10600080fd5b6000611f1c8d8d611eb2565b9a50506020611f2d8d828e01611eb2565b9950506040611f3e8d828e01611ed1565b9850506060611f4f8d828e01611ed1565b9750506080611f608d828e01611ee2565b96505060a0611f718d828e01611ee2565b95505060c0611f828d828e01611d1a565b94505060e0611f938d828e01611d1a565b935050610100611fa58d828e01611d1a565b925050610120611fb78d828e01611d1a565b9150509295989b9194979a5092959850565b6000610f976001600160a01b038316611fe0565b90565b6001600160a01b031690565b6000610f9782611fc9565b6000610f9782611fec565b611d5181611ff7565b60208101610f978284612002565b611d5181611e98565b60208101610f978284612019565b60006020828403121561204557612045600080fd5b6000611b048484611ee2565b600061205d8383612019565b505060200190565b600061206f825190565b80845260209384019383018060005b838110156120a35781516120928882612051565b97506020830192505060010161207e565b509495945050505050565b80611d51565b634e487b7160e01b600052602160045260246000fd5b600381106103f9576103f96120b4565b80611dbe816120ca565b6000610f97826120da565b611d51816120e4565b805160009060c084019061210c8582612019565b50602083015161211f6020860182612019565b50604083015184820360408601526121378282612065565b915050606083015161214c60608601826120ae565b50608083015161215f60808601826120ae565b5060a0830151611e3260a08601826120ef565b6020808252810161218381846120f8565b9392505050565b60006020828403121561219f5761219f600080fd5b6000611b048484611eb2565b60006001600160401b038211156121c4576121c4611d65565b5060209081020190565b60006121dc611e07846121ab565b838152905060208082019084028301858111156121fb576121fb600080fd5b835b8181101561223b5780356001600160401b0381111561221e5761221e600080fd5b80860161222b8982611e3a565b85525050602092830192016121fd565b5050509392505050565b600082601f83011261225957612259600080fd5b8135611b048482602086016121ce565b6000806000806080858703121561228257612282600080fd5b600061228e8787611d1a565b94505060208501356001600160401b038111156122ad576122ad600080fd5b6122b987828801611e3a565b93505060406122ca87828801611d1a565b92505060608501356001600160401b038111156122e9576122e9600080fd5b6122f587828801612245565b91505092959194509250565b60208101610f9782846120ae565b6000806040838503121561232557612325600080fd5b60006123318585611ee2565b92505060208301356001600160401b0381111561235057612350600080fd5b61235c85828601612245565b9150509250929050565b6000612370825190565b80845260209384019383018060005b838110156120a35781516123938882612051565b97506020830192505060010161237f565b602080825281016121838184612366565b801515611d51565b60208101610f9782846123b5565b602581526000602082017f536c61736865723a2063616c6c6572206d7573742062652074686520476f7665815264726e61636560d81b602082015291505b5060400190565b60208082528101610f97816123cb565b60005b8381101561243b578181015183820152602001612423565b8381111561244a576000848401525b50505050565b600061245a825190565b808452602084019350612471818560208601612420565b601f01601f19169290920192915050565b602080825281016121838184612450565b8051610f9781611ea9565b6000602082840312156124b3576124b3600080fd5b6000611b048484612493565b601e81526000602082017f536c61736865723a206e6f6e6578697374656e742063616e6469646174650000815291505b5060200190565b60208082528101610f97816124bf565b601a81526000602082017f536c61736865723a206e6f6e6578697374656e7420736c617368000000000000815291506124ef565b60208082528101610f9781612506565b602481526000602082017f536c61736865723a20736c61736820737461747573206973206e6f7420647261815263199d195960e21b60208201529150612409565b60208082528101610f978161254a565b634e487b7160e01b600052601160045260246000fd5b600082198211156125c4576125c461259b565b500190565b602d81526000602082017f536c61736865723a20736c617368206973206e6f7420696e207075626c69632081526c1b9bdd1a58d9481c195c9a5bd9609a1b60208201529150612409565b60208082528101610f97816125c9565b604081016126318285612019565b61218360208301846120ae565b602e81526000602082017f496e697469616c697a61626c653a20636f6e747261637420697320616c72656181526d191e481a5b9a5d1a585b1a5e995960921b60208201529150612409565b60208082528101610f978161263e565b600060ff8216610f97565b611d5181612699565b60208101610f9782846126a4565b601e81526000602082017f536c61736865723a2063616e64696461746520697320696e20736c6173680000815291506124ef565b60208082528101610f97816126bb565b6080810161270d82876120ae565b61271a6020830186611d46565b818103604083015261272c8185612450565b905061273b6060830184611d46565b95945050505050565b600061274e825190565b61275c818560208601612420565b9290920192915050565b60006127728286612744565b915061277e8285612744565b915061273b8284612744565b8051610f9781611edc565b6000602082840312156127aa576127aa600080fd5b6000611b04848461278a565b60a081016127c482886120ae565b6127d16020830187612019565b6127de6040830186611d46565b81810360608301526127f08185612450565b90506127ff6080830184611d46565b9695505050505050565b600060001982141561281d5761281d61259b565b5060010190565b600081600019048311821515161561283e5761283e61259b565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261286857612868612843565b500490565b602781526000602082017f536c61736865723a207369676e6174757265206c656e677468206973206e6f74815266040cadcdeeaced60cb1b60208201529150612409565b60208082528101610f978161286d565b634e487b7160e01b600052603260045260246000fd5b601a81526000602082017f536c61736865723a20696e76616c6964207369676e6174757265000000000000815291506124ef565b60208082528101610f97816128d7565b600060ff8216915060ff83165b92508282101561293a5761293a61259b565b500390565b602281526000602082017f536c61736865723a20696e636f7272656374207369676e6174757265206f726481526132b960f11b60208201529150612409565b60208082528101610f978161293f565b801515611d0f565b8051610f978161298e565b6000602082840312156129b6576129b6600080fd5b6000611b048484612996565b602a81526000602082017f536c61736865723a207369676e6572206973206e6f7420746865206d616a6f728152692063616e64696461746560b01b60208201529150612409565b60208082528101610f97816129c2565b600060ff8216915060ff82141561281d5761281d61259b565b6016815260006020820175536c61736865723a20696e76616c6964206e6f6e636560501b815291506124ef565b60208082528101610f9781612a32565b602981526000602082017f536c61736865723a20736c61736820697320696e207075626c6963206e6f746981526818d9481c195c9a5bd960ba1b60208201529150612409565b60208082528101610f9781612a6f565b600082612928565b600061205d83836120ae565b6000612ae3825190565b80845260209384019383018060005b838110156120a3578151612b068882612acd565b975060208301925050600101612af2565b60a08101612b258288612019565b612b3260208301876120ae565b8181036040830152612b448186612366565b90508181036060830152612b588185612ad9565b90506127ff60808301846120ae565b60408101612b7582856120ae565b6121836020830184612019565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150612409565b60208082528101610f9781612b82565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572910190815260006124ef565b60208082528101610f9781612bd5565b60006001600160401b03821691506001600160401b0383169250826001600160401b03038211156125c4576125c461259b565b601c81526000602082017f536c61736865723a20696e76616c696420636f656666696369656e7400000000815291506124ef565b60208082528101610f9781612c4a565b6000610f97611fdd6001600160401b03841681565b611d5181612c8e565b60208101610f978284612ca3565b600082612cc957612cc9612843565b500690565b60ff8116611d51565b60808101612ce582876120ae565b612cf26020830186612cce565b612cff60408301856120ae565b61273b60608301846120ae56fea2646970667358221220d84986f8b73044743096b20af0fc20901e3bcbba1f2e51a0bd35ca936928fcbe64736f6c63430008090033",
  "devdoc": {
    "author": "Alexandas",
    "details": "Slasher contract",
    "kind": "dev",
    "methods": {
      "checkNSignatures(bytes32,bytes[])": {
        "details": "check whether signatures is valid",
        "params": {
          "hash": "message hash",
          "signatures": "signatures for major candidates",
          "signers": "major candidate signers"
        }
      },
      "draft(uint64,string,uint64,bytes[])": {
        "details": "draft a slash",
        "params": {
          "accuracy": "posc accuracy",
          "manifest": "node manifest",
          "signatures": "major candidates signatures",
          "slashBlock": "slashed block in posc"
        }
      },
      "execute(string)": {
        "details": "execute a slash",
        "params": {
          "manifest": "node manifest"
        }
      },
      "getSlashAt(uint256)": {
        "details": "return slash information at a specific nonce",
        "params": {
          "_nonce": "nonce number"
        },
        "returns": {
          "_0": "slash information"
        }
      },
      "initialize(address,address,address,address,uint256,uint256,uint64,uint64,uint64,uint64)": {
        "details": "proxy initialize function",
        "params": {
          "_defaultSlashAmount": "default slash amount",
          "_drafterCoef": "drafter slash reward coefficient",
          "_executorCoef": "executor slash reward coefficient",
          "_governance": "governance address",
          "_majorCandidates": "`MajorCandidates` contract",
          "_publicNoticePeriod": "public notice period",
          "_stake": "`Stake` contract",
          "_validatorCoef": "validator slash reward coefficient",
          "maxCoef": "max coefficient",
          "newOwner": "contract owner"
        }
      },
      "nonceOf(address)": {
        "details": "return nonce given a candidate if the candidate is in slashing",
        "params": {
          "candidate": "candidate address"
        },
        "returns": {
          "_0": "nonce number"
        }
      },
      "owner()": {
        "details": "Returns the address of the current owner."
      },
      "reject(string)": {
        "details": "reject a slash",
        "params": {
          "manifest": "node manifest"
        }
      },
      "renounceOwnership()": {
        "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
      },
      "setDrafterCoef(uint64)": {
        "details": "set drafter slash reward coefficient",
        "params": {
          "_drafterCoef": "drafter slash reward coefficient"
        }
      },
      "setExecutorCoef(uint64)": {
        "details": "set executor slash reward coefficient",
        "params": {
          "_executorCoef": "executor slash reward coefficient"
        }
      },
      "setValidatorCoef(uint64)": {
        "details": "set validator slash reward coefficient",
        "params": {
          "_validatorCoef": "validator slash reward coefficient"
        }
      },
      "slashExists(address)": {
        "details": "return whether candidate is in slashing",
        "params": {
          "candidate": "candidate address"
        },
        "returns": {
          "_0": "whether candidate is in slashing"
        }
      },
      "transferOwnership(address)": {
        "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
      }
    },
    "stateVariables": {
      "MAXCOEF": {
        "details": "return max coefficient"
      },
      "defaultSlashAmount": {
        "details": "return default slash amount"
      },
      "drafterCoef": {
        "details": "return drafter slash reward coefficient"
      },
      "executorCoef": {
        "details": "return executor slash reward coefficient"
      },
      "governance": {
        "details": "governance address"
      },
      "majorCandidates": {
        "details": "return `MajorCandidates` contract address"
      },
      "nonce": {
        "details": "return current slash nonce"
      },
      "publicNoticePeriod": {
        "details": "return public notice period"
      },
      "stake": {
        "details": "return `Stake` contract address"
      },
      "validatorCoef": {
        "details": "return validator slash reward coefficient"
      }
    },
    "version": 1
  },
  "userdoc": {
    "kind": "user",
    "methods": {},
    "version": 1
  },
  "storageLayout": {
    "storage": [
      {
        "astId": 138,
        "contract": "contracts/slasher/Slasher.sol:Slasher",
        "label": "_initialized",
        "offset": 0,
        "slot": "0",
        "type": "t_uint8"
      },
      {
        "astId": 141,
        "contract": "contracts/slasher/Slasher.sol:Slasher",
        "label": "_initializing",
        "offset": 1,
        "slot": "0",
        "type": "t_bool"
      },
      {
        "astId": 830,
        "contract": "contracts/slasher/Slasher.sol:Slasher",
        "label": "__gap",
        "offset": 0,
        "slot": "1",
        "type": "t_array(t_uint256)50_storage"
      },
      {
        "astId": 10,
        "contract": "contracts/slasher/Slasher.sol:Slasher",
        "label": "_owner",
        "offset": 0,
        "slot": "51",
        "type": "t_address"
      },
      {
        "astId": 130,
        "contract": "contracts/slasher/Slasher.sol:Slasher",
        "label": "__gap",
        "offset": 0,
        "slot": "52",
        "type": "t_array(t_uint256)49_storage"
      },
      {
        "astId": 7269,
        "contract": "contracts/slasher/Slasher.sol:Slasher",
        "label": "governance",
        "offset": 0,
        "slot": "101",
        "type": "t_address"
      },
      {
        "astId": 7274,
        "contract": "contracts/slasher/Slasher.sol:Slasher",
        "label": "stake",
        "offset": 0,
        "slot": "102",
        "type": "t_contract(IStake)6698"
      },
      {
        "astId": 7279,
        "contract": "contracts/slasher/Slasher.sol:Slasher",
        "label": "majorCandidates",
        "offset": 0,
        "slot": "103",
        "type": "t_contract(IMajorCandidates)6050"
      },
      {
        "astId": 7283,
        "contract": "contracts/slasher/Slasher.sol:Slasher",
        "label": "defaultSlashAmount",
        "offset": 0,
        "slot": "104",
        "type": "t_uint256"
      },
      {
        "astId": 7287,
        "contract": "contracts/slasher/Slasher.sol:Slasher",
        "label": "publicNoticePeriod",
        "offset": 0,
        "slot": "105",
        "type": "t_uint256"
      },
      {
        "astId": 7291,
        "contract": "contracts/slasher/Slasher.sol:Slasher",
        "label": "nonce",
        "offset": 0,
        "slot": "106",
        "type": "t_uint256"
      },
      {
        "astId": 7295,
        "contract": "contracts/slasher/Slasher.sol:Slasher",
        "label": "MAXCOEF",
        "offset": 0,
        "slot": "107",
        "type": "t_uint64"
      },
      {
        "astId": 7299,
        "contract": "contracts/slasher/Slasher.sol:Slasher",
        "label": "drafterCoef",
        "offset": 8,
        "slot": "107",
        "type": "t_uint64"
      },
      {
        "astId": 7303,
        "contract": "contracts/slasher/Slasher.sol:Slasher",
        "label": "validatorCoef",
        "offset": 16,
        "slot": "107",
        "type": "t_uint64"
      },
      {
        "astId": 7307,
        "contract": "contracts/slasher/Slasher.sol:Slasher",
        "label": "executorCoef",
        "offset": 24,
        "slot": "107",
        "type": "t_uint64"
      },
      {
        "astId": 7312,
        "contract": "contracts/slasher/Slasher.sol:Slasher",
        "label": "slashes",
        "offset": 0,
        "slot": "108",
        "type": "t_mapping(t_uint256,t_struct(SlashInfo)6940_storage)"
      },
      {
        "astId": 7316,
        "contract": "contracts/slasher/Slasher.sol:Slasher",
        "label": "nonces",
        "offset": 0,
        "slot": "109",
        "type": "t_mapping(t_address,t_uint256)"
      }
    ],
    "types": {
      "t_address": {
        "encoding": "inplace",
        "label": "address",
        "numberOfBytes": "20"
      },
      "t_array(t_address)dyn_storage": {
        "base": "t_address",
        "encoding": "dynamic_array",
        "label": "address[]",
        "numberOfBytes": "32"
      },
      "t_array(t_uint256)49_storage": {
        "base": "t_uint256",
        "encoding": "inplace",
        "label": "uint256[49]",
        "numberOfBytes": "1568"
      },
      "t_array(t_uint256)50_storage": {
        "base": "t_uint256",
        "encoding": "inplace",
        "label": "uint256[50]",
        "numberOfBytes": "1600"
      },
      "t_bool": {
        "encoding": "inplace",
        "label": "bool",
        "numberOfBytes": "1"
      },
      "t_contract(IMajorCandidates)6050": {
        "encoding": "inplace",
        "label": "contract IMajorCandidates",
        "numberOfBytes": "20"
      },
      "t_contract(IStake)6698": {
        "encoding": "inplace",
        "label": "contract IStake",
        "numberOfBytes": "20"
      },
      "t_enum(SlashStatus)6925": {
        "encoding": "inplace",
        "label": "enum Types.SlashStatus",
        "numberOfBytes": "1"
      },
      "t_mapping(t_address,t_uint256)": {
        "encoding": "mapping",
        "key": "t_address",
        "label": "mapping(address => uint256)",
        "numberOfBytes": "32",
        "value": "t_uint256"
      },
      "t_mapping(t_uint256,t_struct(SlashInfo)6940_storage)": {
        "encoding": "mapping",
        "key": "t_uint256",
        "label": "mapping(uint256 => struct Types.SlashInfo)",
        "numberOfBytes": "32",
        "value": "t_struct(SlashInfo)6940_storage"
      },
      "t_struct(SlashInfo)6940_storage": {
        "encoding": "inplace",
        "label": "struct Types.SlashInfo",
        "members": [
          {
            "astId": 6927,
            "contract": "contracts/slasher/Slasher.sol:Slasher",
            "label": "candidate",
            "offset": 0,
            "slot": "0",
            "type": "t_address"
          },
          {
            "astId": 6929,
            "contract": "contracts/slasher/Slasher.sol:Slasher",
            "label": "drafter",
            "offset": 0,
            "slot": "1",
            "type": "t_address"
          },
          {
            "astId": 6932,
            "contract": "contracts/slasher/Slasher.sol:Slasher",
            "label": "validators",
            "offset": 0,
            "slot": "2",
            "type": "t_array(t_address)dyn_storage"
          },
          {
            "astId": 6934,
            "contract": "contracts/slasher/Slasher.sol:Slasher",
            "label": "amount",
            "offset": 0,
            "slot": "3",
            "type": "t_uint256"
          },
          {
            "astId": 6936,
            "contract": "contracts/slasher/Slasher.sol:Slasher",
            "label": "timestamp",
            "offset": 0,
            "slot": "4",
            "type": "t_uint256"
          },
          {
            "astId": 6939,
            "contract": "contracts/slasher/Slasher.sol:Slasher",
            "label": "status",
            "offset": 0,
            "slot": "5",
            "type": "t_enum(SlashStatus)6925"
          }
        ],
        "numberOfBytes": "192"
      },
      "t_uint256": {
        "encoding": "inplace",
        "label": "uint256",
        "numberOfBytes": "32"
      },
      "t_uint64": {
        "encoding": "inplace",
        "label": "uint64",
        "numberOfBytes": "8"
      },
      "t_uint8": {
        "encoding": "inplace",
        "label": "uint8",
        "numberOfBytes": "1"
      }
    }
  }
}