{
  "contractName": "IWhitelist",
  "abi": [
    {
      "constant": true,
      "inputs": [
        {
          "internalType": "address",
          "name": "from",
          "type": "address"
        },
        {
          "internalType": "address",
          "name": "to",
          "type": "address"
        },
        {
          "internalType": "uint256",
          "name": "value",
          "type": "uint256"
        }
      ],
      "name": "detectTransferRestriction",
      "outputs": [
        {
          "internalType": "uint8",
          "name": "",
          "type": "uint8"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "internalType": "uint8",
          "name": "restrictionCode",
          "type": "uint8"
        }
      ],
      "name": "messageForTransferRestriction",
      "outputs": [
        {
          "internalType": "string",
          "name": "",
          "type": "string"
        }
      ],
      "payable": false,
      "stateMutability": "pure",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "internalType": "address",
          "name": "_from",
          "type": "address"
        },
        {
          "internalType": "address",
          "name": "_to",
          "type": "address"
        },
        {
          "internalType": "uint256",
          "name": "_value",
          "type": "uint256"
        },
        {
          "internalType": "bool",
          "name": "_isSell",
          "type": "bool"
        }
      ],
      "name": "authorizeTransfer",
      "outputs": [],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "internalType": "address",
          "name": "_wallet",
          "type": "address"
        }
      ],
      "name": "walletActivated",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "metadata": "{\"compiler\":{\"version\":\"0.5.17+commit.d19bba13\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_value\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"_isSell\",\"type\":\"bool\"}],\"name\":\"authorizeTransfer\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"detectTransferRestriction\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"restrictionCode\",\"type\":\"uint8\"}],\"name\":\"messageForTransferRestriction\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_wallet\",\"type\":\"address\"}],\"name\":\"walletActivated\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{\"authorizeTransfer(address,address,uint256,bool)\":{\"details\":\"This call will revert when the transfer is not authorized. This is a mutable call to allow additional data to be recorded, such as when the user aquired their tokens.\"},\"detectTransferRestriction(address,address,uint256)\":{\"details\":\"Overwrite with your custom transfer restriction logic\",\"params\":{\"from\":\"Sending address\",\"to\":\"Receiving address\",\"value\":\"Amount of tokens being transferred\"},\"return\":\"Code by which to reference message for rejection reasoning\"},\"messageForTransferRestriction(uint8)\":{\"details\":\"Overwrite with your custom message and restrictionCode handling\",\"params\":{\"restrictionCode\":\"Identifier for looking up a message\"},\"return\":\"Text showing the restriction's reasoning\"}}},\"userdoc\":{\"methods\":{\"authorizeTransfer(address,address,uint256,bool)\":{\"notice\":\"Called by the DAT contract before a transfer occurs.\"},\"detectTransferRestriction(address,address,uint256)\":{\"notice\":\"Detects if a transfer will be reverted and if so returns an appropriate reference code\"},\"messageForTransferRestriction(uint8)\":{\"notice\":\"Returns a human-readable message for a given restriction code\"}},\"notice\":\"Source: https://raw.githubusercontent.com/simple-restricted-token/reference-implementation/master/contracts/token/ERC1404/ERC1404.sol With ERC-20 APIs removed (will be implemented as a separate contract). And adding authorizeTransfer.\"}},\"settings\":{\"compilationTarget\":{\"/home/circleci/repo/contracts/interfaces/IWhitelist.sol\":\"IWhitelist\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/circleci/repo/contracts/interfaces/IWhitelist.sol\":{\"keccak256\":\"0x1ab9b967293b5df5b5a4f1fb9ca886a5da3d390c6093a9759695369c59be4348\",\"urls\":[\"bzz-raw://dc8f72a6df60a20b34ca2b5cf2ea8ce53f66afe73673805c68ff91e4a2a78d17\",\"dweb:/ipfs/QmQHrcnL1jEPxj2YfVkg31u1egZ1tBWuZcJfPME5c5dpbV\"]}},\"version\":1}",
  "bytecode": "0x",
  "deployedBytecode": "0x",
  "sourceMap": "",
  "deployedSourceMap": "",
  "source": "pragma solidity 0.5.17;\n\n/**\n * Source: https://raw.githubusercontent.com/simple-restricted-token/reference-implementation/master/contracts/token/ERC1404/ERC1404.sol\n * With ERC-20 APIs removed (will be implemented as a separate contract).\n * And adding authorizeTransfer.\n */\ninterface IWhitelist {\n  /**\n   * @notice Detects if a transfer will be reverted and if so returns an appropriate reference code\n   * @param from Sending address\n   * @param to Receiving address\n   * @param value Amount of tokens being transferred\n   * @return Code by which to reference message for rejection reasoning\n   * @dev Overwrite with your custom transfer restriction logic\n   */\n  function detectTransferRestriction(\n    address from,\n    address to,\n    uint value\n  ) external view returns (uint8);\n\n  /**\n   * @notice Returns a human-readable message for a given restriction code\n   * @param restrictionCode Identifier for looking up a message\n   * @return Text showing the restriction's reasoning\n   * @dev Overwrite with your custom message and restrictionCode handling\n   */\n  function messageForTransferRestriction(uint8 restrictionCode)\n    external\n    pure\n    returns (string memory);\n\n  /**\n   * @notice Called by the DAT contract before a transfer occurs.\n   * @dev This call will revert when the transfer is not authorized.\n   * This is a mutable call to allow additional data to be recorded,\n   * such as when the user aquired their tokens.\n   */\n  function authorizeTransfer(\n    address _from,\n    address _to,\n    uint _value,\n    bool _isSell\n  ) external;\n\n  function walletActivated(\n    address _wallet\n  ) external returns(bool);\n}\n",
  "sourcePath": "/home/circleci/repo/contracts/interfaces/IWhitelist.sol",
  "ast": {
    "absolutePath": "/home/circleci/repo/contracts/interfaces/IWhitelist.sol",
    "exportedSymbols": {
      "IWhitelist": [
        4445
      ]
    },
    "id": 4446,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 4408,
        "literals": [
          "solidity",
          "0.5",
          ".17"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:5"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "interface",
        "documentation": "Source: https://raw.githubusercontent.com/simple-restricted-token/reference-implementation/master/contracts/token/ERC1404/ERC1404.sol\nWith ERC-20 APIs removed (will be implemented as a separate contract).\nAnd adding authorizeTransfer.",
        "fullyImplemented": false,
        "id": 4445,
        "linearizedBaseContracts": [
          4445
        ],
        "name": "IWhitelist",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": null,
            "documentation": "@notice Detects if a transfer will be reverted and if so returns an appropriate reference code\n@param from Sending address\n@param to Receiving address\n@param value Amount of tokens being transferred\n@return Code by which to reference message for rejection reasoning\n@dev Overwrite with your custom transfer restriction logic",
            "id": 4419,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "detectTransferRestriction",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 4415,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4410,
                  "name": "from",
                  "nodeType": "VariableDeclaration",
                  "scope": 4419,
                  "src": "709:12:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 4409,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "709:7:5",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4412,
                  "name": "to",
                  "nodeType": "VariableDeclaration",
                  "scope": 4419,
                  "src": "727:10:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 4411,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "727:7:5",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4414,
                  "name": "value",
                  "nodeType": "VariableDeclaration",
                  "scope": 4419,
                  "src": "743:10:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4413,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "743:4:5",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "703:54:5"
            },
            "returnParameters": {
              "id": 4418,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4417,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 4419,
                  "src": "781:5:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint8",
                    "typeString": "uint8"
                  },
                  "typeName": {
                    "id": 4416,
                    "name": "uint8",
                    "nodeType": "ElementaryTypeName",
                    "src": "781:5:5",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint8",
                      "typeString": "uint8"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "780:7:5"
            },
            "scope": 4445,
            "src": "669:119:5",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": "@notice Returns a human-readable message for a given restriction code\n@param restrictionCode Identifier for looking up a message\n@return Text showing the restriction's reasoning\n@dev Overwrite with your custom message and restrictionCode handling",
            "id": 4426,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "messageForTransferRestriction",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 4422,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4421,
                  "name": "restrictionCode",
                  "nodeType": "VariableDeclaration",
                  "scope": 4426,
                  "src": "1110:21:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint8",
                    "typeString": "uint8"
                  },
                  "typeName": {
                    "id": 4420,
                    "name": "uint8",
                    "nodeType": "ElementaryTypeName",
                    "src": "1110:5:5",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint8",
                      "typeString": "uint8"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1109:23:5"
            },
            "returnParameters": {
              "id": 4425,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4424,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 4426,
                  "src": "1168:13:5",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_memory_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 4423,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "1168:6:5",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1167:15:5"
            },
            "scope": 4445,
            "src": "1071:112:5",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": "@notice Called by the DAT contract before a transfer occurs.\n@dev This call will revert when the transfer is not authorized.\nThis is a mutable call to allow additional data to be recorded,\nsuch as when the user aquired their tokens.",
            "id": 4437,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "authorizeTransfer",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 4435,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4428,
                  "name": "_from",
                  "nodeType": "VariableDeclaration",
                  "scope": 4437,
                  "src": "1484:13:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 4427,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1484:7:5",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4430,
                  "name": "_to",
                  "nodeType": "VariableDeclaration",
                  "scope": 4437,
                  "src": "1503:11:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 4429,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1503:7:5",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4432,
                  "name": "_value",
                  "nodeType": "VariableDeclaration",
                  "scope": 4437,
                  "src": "1520:11:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4431,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "1520:4:5",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4434,
                  "name": "_isSell",
                  "nodeType": "VariableDeclaration",
                  "scope": 4437,
                  "src": "1537:12:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 4433,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "1537:4:5",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1478:75:5"
            },
            "returnParameters": {
              "id": 4436,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1562:0:5"
            },
            "scope": 4445,
            "src": "1452:111:5",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": null,
            "id": 4444,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "walletActivated",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 4440,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4439,
                  "name": "_wallet",
                  "nodeType": "VariableDeclaration",
                  "scope": 4444,
                  "src": "1597:15:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 4438,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1597:7:5",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1591:25:5"
            },
            "returnParameters": {
              "id": 4443,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4442,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 4444,
                  "src": "1634:4:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 4441,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "1634:4:5",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1633:6:5"
            },
            "scope": 4445,
            "src": "1567:73:5",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          }
        ],
        "scope": 4446,
        "src": "277:1365:5"
      }
    ],
    "src": "0:1643:5"
  },
  "legacyAST": {
    "absolutePath": "/home/circleci/repo/contracts/interfaces/IWhitelist.sol",
    "exportedSymbols": {
      "IWhitelist": [
        4445
      ]
    },
    "id": 4446,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 4408,
        "literals": [
          "solidity",
          "0.5",
          ".17"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:5"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "interface",
        "documentation": "Source: https://raw.githubusercontent.com/simple-restricted-token/reference-implementation/master/contracts/token/ERC1404/ERC1404.sol\nWith ERC-20 APIs removed (will be implemented as a separate contract).\nAnd adding authorizeTransfer.",
        "fullyImplemented": false,
        "id": 4445,
        "linearizedBaseContracts": [
          4445
        ],
        "name": "IWhitelist",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": null,
            "documentation": "@notice Detects if a transfer will be reverted and if so returns an appropriate reference code\n@param from Sending address\n@param to Receiving address\n@param value Amount of tokens being transferred\n@return Code by which to reference message for rejection reasoning\n@dev Overwrite with your custom transfer restriction logic",
            "id": 4419,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "detectTransferRestriction",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 4415,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4410,
                  "name": "from",
                  "nodeType": "VariableDeclaration",
                  "scope": 4419,
                  "src": "709:12:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 4409,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "709:7:5",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4412,
                  "name": "to",
                  "nodeType": "VariableDeclaration",
                  "scope": 4419,
                  "src": "727:10:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 4411,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "727:7:5",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4414,
                  "name": "value",
                  "nodeType": "VariableDeclaration",
                  "scope": 4419,
                  "src": "743:10:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4413,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "743:4:5",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "703:54:5"
            },
            "returnParameters": {
              "id": 4418,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4417,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 4419,
                  "src": "781:5:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint8",
                    "typeString": "uint8"
                  },
                  "typeName": {
                    "id": 4416,
                    "name": "uint8",
                    "nodeType": "ElementaryTypeName",
                    "src": "781:5:5",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint8",
                      "typeString": "uint8"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "780:7:5"
            },
            "scope": 4445,
            "src": "669:119:5",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": "@notice Returns a human-readable message for a given restriction code\n@param restrictionCode Identifier for looking up a message\n@return Text showing the restriction's reasoning\n@dev Overwrite with your custom message and restrictionCode handling",
            "id": 4426,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "messageForTransferRestriction",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 4422,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4421,
                  "name": "restrictionCode",
                  "nodeType": "VariableDeclaration",
                  "scope": 4426,
                  "src": "1110:21:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint8",
                    "typeString": "uint8"
                  },
                  "typeName": {
                    "id": 4420,
                    "name": "uint8",
                    "nodeType": "ElementaryTypeName",
                    "src": "1110:5:5",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint8",
                      "typeString": "uint8"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1109:23:5"
            },
            "returnParameters": {
              "id": 4425,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4424,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 4426,
                  "src": "1168:13:5",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_memory_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 4423,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "1168:6:5",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1167:15:5"
            },
            "scope": 4445,
            "src": "1071:112:5",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": "@notice Called by the DAT contract before a transfer occurs.\n@dev This call will revert when the transfer is not authorized.\nThis is a mutable call to allow additional data to be recorded,\nsuch as when the user aquired their tokens.",
            "id": 4437,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "authorizeTransfer",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 4435,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4428,
                  "name": "_from",
                  "nodeType": "VariableDeclaration",
                  "scope": 4437,
                  "src": "1484:13:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 4427,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1484:7:5",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4430,
                  "name": "_to",
                  "nodeType": "VariableDeclaration",
                  "scope": 4437,
                  "src": "1503:11:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 4429,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1503:7:5",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4432,
                  "name": "_value",
                  "nodeType": "VariableDeclaration",
                  "scope": 4437,
                  "src": "1520:11:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4431,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "1520:4:5",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4434,
                  "name": "_isSell",
                  "nodeType": "VariableDeclaration",
                  "scope": 4437,
                  "src": "1537:12:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 4433,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "1537:4:5",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1478:75:5"
            },
            "returnParameters": {
              "id": 4436,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1562:0:5"
            },
            "scope": 4445,
            "src": "1452:111:5",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": null,
            "id": 4444,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "walletActivated",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 4440,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4439,
                  "name": "_wallet",
                  "nodeType": "VariableDeclaration",
                  "scope": 4444,
                  "src": "1597:15:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 4438,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1597:7:5",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1591:25:5"
            },
            "returnParameters": {
              "id": 4443,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4442,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 4444,
                  "src": "1634:4:5",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 4441,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "1634:4:5",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1633:6:5"
            },
            "scope": 4445,
            "src": "1567:73:5",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          }
        ],
        "scope": 4446,
        "src": "277:1365:5"
      }
    ],
    "src": "0:1643:5"
  },
  "compiler": {
    "name": "solc",
    "version": "0.5.17+commit.d19bba13.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.3.0",
  "updatedAt": "2020-12-11T05:03:09.343Z",
  "devdoc": {
    "methods": {
      "authorizeTransfer(address,address,uint256,bool)": {
        "details": "This call will revert when the transfer is not authorized. This is a mutable call to allow additional data to be recorded, such as when the user aquired their tokens."
      },
      "detectTransferRestriction(address,address,uint256)": {
        "details": "Overwrite with your custom transfer restriction logic",
        "params": {
          "from": "Sending address",
          "to": "Receiving address",
          "value": "Amount of tokens being transferred"
        },
        "return": "Code by which to reference message for rejection reasoning"
      },
      "messageForTransferRestriction(uint8)": {
        "details": "Overwrite with your custom message and restrictionCode handling",
        "params": {
          "restrictionCode": "Identifier for looking up a message"
        },
        "return": "Text showing the restriction's reasoning"
      }
    }
  },
  "userdoc": {
    "methods": {
      "authorizeTransfer(address,address,uint256,bool)": {
        "notice": "Called by the DAT contract before a transfer occurs."
      },
      "detectTransferRestriction(address,address,uint256)": {
        "notice": "Detects if a transfer will be reverted and if so returns an appropriate reference code"
      },
      "messageForTransferRestriction(uint8)": {
        "notice": "Returns a human-readable message for a given restriction code"
      }
    },
    "notice": "Source: https://raw.githubusercontent.com/simple-restricted-token/reference-implementation/master/contracts/token/ERC1404/ERC1404.sol With ERC-20 APIs removed (will be implemented as a separate contract). And adding authorizeTransfer."
  }
}