{
  "abi": [
    {
      "inputs": [
        {
          "internalType": "uint32",
          "name": "_origin",
          "type": "uint32"
        },
        {
          "internalType": "bytes32",
          "name": "_sender",
          "type": "bytes32"
        },
        {
          "internalType": "uint32",
          "name": "_tokenDomain",
          "type": "uint32"
        },
        {
          "internalType": "bytes32",
          "name": "_tokenAddress",
          "type": "bytes32"
        },
        {
          "internalType": "address",
          "name": "_localToken",
          "type": "address"
        },
        {
          "internalType": "uint256",
          "name": "_amount",
          "type": "uint256"
        },
        {
          "internalType": "bytes",
          "name": "_extraData",
          "type": "bytes"
        }
      ],
      "name": "onReceive",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "bytecode": {
    "object": "0x",
    "sourceMap": "",
    "linkReferences": {}
  },
  "deployedBytecode": {
    "object": "0x",
    "sourceMap": "",
    "linkReferences": {}
  },
  "methodIdentifiers": {
    "onReceive(uint32,bytes32,uint32,bytes32,address,uint256,bytes)": "048494fe"
  },
  "ast": {
    "absolutePath": "packages/contracts-bridge/contracts/interfaces/IBridgeHook.sol",
    "id": 33544,
    "exportedSymbols": {
      "IBridgeHook": [
        33543
      ]
    },
    "nodeType": "SourceUnit",
    "src": "46:1630:41",
    "nodes": [
      {
        "id": 33524,
        "nodeType": "PragmaDirective",
        "src": "46:22:41",
        "literals": [
          "solidity",
          "0.7",
          ".6"
        ]
      },
      {
        "id": 33543,
        "nodeType": "ContractDefinition",
        "src": "70:1605:41",
        "nodes": [
          {
            "id": 33542,
            "nodeType": "FunctionDefinition",
            "src": "1443:230:41",
            "documentation": {
              "id": 33525,
              "nodeType": "StructuredDocumentation",
              "src": "98:1340:41",
              "text": " @notice Handles an incoming bridge transfer with some tokens and extra\n data. Takes any necessary actions for the hook's purposes.\n This function is intended to allow arbitrary post-bridge actions with\n tokens, at a user's discretion. E.g. recollateralize a CDP, exchange for\n other tokens, emit an event, etc.\n @dev This hook is called AFTER tokens have been transferred to the hook\n contract. If this hook errors, the bridge WILL NOT revert, and the hook\n contract will own those tokens. Hook contracts MUST have a recovery plan\n in place for these situations.\n @param _origin The domain of the chain from which the transfer originated\n @param _sender The identifier of the caller which sent the tokens over the bridge\n @param _tokenDomain The canonical deployment domain of the token\n @param _tokenAddress The identifier for the token on its canonical domain\n @param _localToken The local address of the token (its canonical\n                    address if it is local to this domain, otherwise its\n                    the address of its local representation).\n @param _amount The amount of token received over the bridge\n @param _extraData Extra user-specified data passed in to the origin chain"
            },
            "functionSelector": "048494fe",
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "onReceive",
            "parameters": {
              "id": 33540,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 33527,
                  "mutability": "mutable",
                  "name": "_origin",
                  "nodeType": "VariableDeclaration",
                  "scope": 33542,
                  "src": "1471:14:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint32",
                    "typeString": "uint32"
                  },
                  "typeName": {
                    "id": 33526,
                    "name": "uint32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1471:6:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint32",
                      "typeString": "uint32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 33529,
                  "mutability": "mutable",
                  "name": "_sender",
                  "nodeType": "VariableDeclaration",
                  "scope": 33542,
                  "src": "1495:15:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 33528,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1495:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 33531,
                  "mutability": "mutable",
                  "name": "_tokenDomain",
                  "nodeType": "VariableDeclaration",
                  "scope": 33542,
                  "src": "1520:19:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint32",
                    "typeString": "uint32"
                  },
                  "typeName": {
                    "id": 33530,
                    "name": "uint32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1520:6:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint32",
                      "typeString": "uint32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 33533,
                  "mutability": "mutable",
                  "name": "_tokenAddress",
                  "nodeType": "VariableDeclaration",
                  "scope": 33542,
                  "src": "1549:21:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 33532,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1549:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 33535,
                  "mutability": "mutable",
                  "name": "_localToken",
                  "nodeType": "VariableDeclaration",
                  "scope": 33542,
                  "src": "1580:19:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 33534,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1580:7:41",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 33537,
                  "mutability": "mutable",
                  "name": "_amount",
                  "nodeType": "VariableDeclaration",
                  "scope": 33542,
                  "src": "1609:15:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 33536,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1609:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 33539,
                  "mutability": "mutable",
                  "name": "_extraData",
                  "nodeType": "VariableDeclaration",
                  "scope": 33542,
                  "src": "1634:23:41",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 33538,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "1634:5:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1461:202:41"
            },
            "returnParameters": {
              "id": 33541,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1672:0:41"
            },
            "scope": 33543,
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          }
        ],
        "abstract": false,
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "interface",
        "fullyImplemented": false,
        "linearizedBaseContracts": [
          33543
        ],
        "name": "IBridgeHook",
        "scope": 33544
      }
    ],
    "license": "MIT OR Apache-2.0"
  },
  "id": 41
}