{
    "contractName": "PayableWithEmit",
    "abi": [
        {
            "anonymous": false,
            "inputs": [
                {
                    "indexed": false,
                    "internalType": "uint256",
                    "name": "gasUsed",
                    "type": "uint256"
                },
                {
                    "indexed": false,
                    "internalType": "bool",
                    "name": "success",
                    "type": "bool"
                }
            ],
            "name": "GasUsed",
            "type": "event"
        },
        {
            "anonymous": false,
            "inputs": [
                {
                    "indexed": false,
                    "internalType": "address",
                    "name": "sender",
                    "type": "address"
                },
                {
                    "indexed": false,
                    "internalType": "uint256",
                    "name": "value",
                    "type": "uint256"
                },
                {
                    "indexed": false,
                    "internalType": "uint256",
                    "name": "gasleft",
                    "type": "uint256"
                }
            ],
            "name": "Received",
            "type": "event"
        },
        {
            "inputs": [],
            "name": "getTrustedForwarder",
            "outputs": [
                {
                    "internalType": "address",
                    "name": "forwarder",
                    "type": "address"
                }
            ],
            "stateMutability": "view",
            "type": "function"
        },
        {
            "inputs": [
                {
                    "internalType": "address",
                    "name": "forwarder",
                    "type": "address"
                }
            ],
            "name": "isTrustedForwarder",
            "outputs": [
                {
                    "internalType": "bool",
                    "name": "",
                    "type": "bool"
                }
            ],
            "stateMutability": "view",
            "type": "function"
        },
        {
            "stateMutability": "payable",
            "type": "receive"
        },
        {
            "inputs": [
                {
                    "internalType": "address payable",
                    "name": "target",
                    "type": "address"
                }
            ],
            "name": "doSend",
            "outputs": [],
            "stateMutability": "payable",
            "type": "function"
        }
    ],
    "metadata": "{\"compiler\":{\"version\":\"0.8.7+commit.e28d00a7\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"gasUsed\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"name\":\"GasUsed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"gasleft\",\"type\":\"uint256\"}],\"name\":\"Received\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"doSend\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTrustedForwarder\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"forwarder\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forwarder\",\"type\":\"address\"}],\"name\":\"isTrustedForwarder\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"getTrustedForwarder()\":{\"returns\":{\"forwarder\":\"The address of the Forwarder contract that is being used.\"}},\"isTrustedForwarder(address)\":{\"params\":{\"forwarder\":\"The address of the Forwarder contract that is being used.\"},\"returns\":{\"_0\":\"isTrustedForwarder `true` if the Forwarder is trusted to forward relayed transactions by this Recipient.\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"getTrustedForwarder()\":{\"notice\":\":warning: **Warning** :warning: The Forwarder can have a full control over your Recipient. Only trust verified Forwarder.Method is not a required method to allow Recipients to trust multiple Forwarders. Not recommended yet.\"},\"isTrustedForwarder(address)\":{\"notice\":\":warning: **Warning** :warning: The Forwarder can have a full control over your Recipient. Only trust verified Forwarder.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/Users/alexf/gsn2/packages/contracts/solpp/test/PayableWithEmit.sol\":\"PayableWithEmit\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/alexf/gsn2/packages/contracts/solpp/test/PayableWithEmit.sol\":{\"keccak256\":\"0x545091c1ff37a12f792fb1b6bf259d7c66402998d7d9f990965178cfcb25d9a1\",\"license\":\"GPL-3.0-only\",\"urls\":[\"bzz-raw://d01f275fb00ae3f7256ee701f1e3f80e4186de0375bde8315b4c010b52a2a35e\",\"dweb:/ipfs/QmPxUW5eBjkDfn2pJ8voJLkZCc2w8LkNJ6udaDC3gUcPef\"]},\"@opengsn/contracts/src/ERC2771Recipient.sol\":{\"keccak256\":\"0x77b3307c570c582969ea5466f296898ab9fea1f8b61b30f1c73345fe047a89a9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b2a2f0642c775f89615b1717ee3db50cf3732f59bc66032b06fee6c9018e308b\",\"dweb:/ipfs/QmRtsTQeTYk6muGrU7Qurjw6FeUVUBBXXhcUQNWvCoJysT\"]},\"@opengsn/contracts/src/interfaces/IERC2771Recipient.sol\":{\"keccak256\":\"0xc762358681e3494519a5fff2f7e3f0f74f9c9f395f23b00cdfb45e0fb9ef8170\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://68680e24b98e554eb64e724a6ddab30827d5091ae36812e2a4e1b1914481ca4c\",\"dweb:/ipfs/QmR9TVoucNzaeiAgSu1miqoQ4SZAcMCB2yRd32YuEXVWLB\"]}},\"version\":1}",
    "bytecode": "0x608060405234801561001057600080fd5b5061025f806100206000396000f3fe6080604052600436106100385760003560e01c8063572b6c05146100975780639bfcdaa1146100db578063ce1b815f146100f057600080fd5b36610092577f74cf3d18d0ddca79038197ad0dd2c7fa5005ef61a5d1ed190e8a8a437e2fcf10610066610118565b345a604080516001600160a01b03909416845260208401929092529082015260600160405180910390a1005b600080fd5b3480156100a357600080fd5b506100c66100b23660046101c8565b6000546001600160a01b0391821691161490565b60405190151581526020015b60405180910390f35b6100ee6100e93660046101c8565b61014c565b005b3480156100fc57600080fd5b506000546040516001600160a01b0390911681526020016100d2565b60006014361080159061013557506000546001600160a01b031633145b15610147575060131936013560601c90565b503390565b60005a6040519091506000906001600160a01b038416903480156108fc029184818181858888f19350505050905060005a90507f4bd28cc62c0f932efdc0c9c2f68341495ac3c9ac35941adda462fde163aa6c626101aa82856101ec565b6040805191825284151560208301520160405180910390a150505050565b6000602082840312156101da57600080fd5b81356101e581610211565b9392505050565b60008282101561020c57634e487b7160e01b600052601160045260246000fd5b500390565b6001600160a01b038116811461022657600080fd5b5056fea2646970667358221220472b9f43bbcf17b0bdeb9f3295bd8707b87abe442f1a28d8b16890d7fc556a5a64736f6c63430008070033",
    "deployedBytecode": "0x6080604052600436106100385760003560e01c8063572b6c05146100975780639bfcdaa1146100db578063ce1b815f146100f057600080fd5b36610092577f74cf3d18d0ddca79038197ad0dd2c7fa5005ef61a5d1ed190e8a8a437e2fcf10610066610118565b345a604080516001600160a01b03909416845260208401929092529082015260600160405180910390a1005b600080fd5b3480156100a357600080fd5b506100c66100b23660046101c8565b6000546001600160a01b0391821691161490565b60405190151581526020015b60405180910390f35b6100ee6100e93660046101c8565b61014c565b005b3480156100fc57600080fd5b506000546040516001600160a01b0390911681526020016100d2565b60006014361080159061013557506000546001600160a01b031633145b15610147575060131936013560601c90565b503390565b60005a6040519091506000906001600160a01b038416903480156108fc029184818181858888f19350505050905060005a90507f4bd28cc62c0f932efdc0c9c2f68341495ac3c9ac35941adda462fde163aa6c626101aa82856101ec565b6040805191825284151560208301520160405180910390a150505050565b6000602082840312156101da57600080fd5b81356101e581610211565b9392505050565b60008282101561020c57634e487b7160e01b600052601160045260246000fd5b500390565b6001600160a01b038116811461022657600080fd5b5056fea2646970667358221220472b9f43bbcf17b0bdeb9f3295bd8707b87abe442f1a28d8b16890d7fc556a5a64736f6c63430008070033",
    "immutableReferences": {},
    "sourceMap": "349:568:19:-:0;;;;;;;;;;;;;;;;;;;",
    "deployedSourceMap": "349:568:19:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;506:44;515:12;:10;:12::i;:::-;529:9;540;506:44;;;-1:-1:-1;;;;;954:32:63;;;936:51;;1018:2;1003:18;;996:34;;;;1046:18;;;1039:34;924:2;909:18;506:44:19;;;;;;;349:568;;;;;1293:144:45;;;;;;;;;;-1:-1:-1;1293:144:45;;;;;:::i;:::-;1377:4;1413:17;-1:-1:-1;;;;;1400:30:45;;;1413:17;;1400:30;;1293:144;;;;1249:14:63;;1242:22;1224:41;;1212:2;1197:18;1293:144:45;;;;;;;;602:265:19;;;;;;:::i;:::-;;:::i;:::-;;1018:119:45;;;;;;;;;;-1:-1:-1;1078:17:45;1113;1018:119;;-1:-1:-1;;;;;1113:17:45;;;672:51:63;;660:2;645:18;1018:119:45;526:203:63;1481:547:45;1543:11;1589:2;1570:8;:21;;;;:55;;-1:-1:-1;1377:4:45;1413:17;-1:-1:-1;;;;;1413:17:45;1614:10;1400:30;1595;1566:456;;;-1:-1:-1;;;1931:14:45;1927:22;1914:36;1911:2;1907:44;1481:547;:::o;1566:456::-;-1:-1:-1;2001:10:45;1481:547;:::o;602:265:19:-;664:14;681:9;762:22;;664:26;;-1:-1:-1;747:12:19;;-1:-1:-1;;;;;762:11:19;;;774:9;762:22;;;;;747:12;762:22;747:12;762:22;774:9;762:11;:22;;;;;;;747:37;;790:16;809:9;790:28;-1:-1:-1;829:33:19;837:15;790:28;837:6;:15;:::i;:::-;829:33;;;1444:25:63;;;1512:14;;1505:22;1500:2;1485:18;;1478:50;1417:18;829:33:19;;;;;;;657:210;;;602:265;:::o;14:247:63:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;181:9;168:23;200:31;225:5;200:31;:::i;:::-;250:5;14:247;-1:-1:-1;;;14:247:63:o;1539:222::-;1579:4;1607:1;1604;1601:8;1598:131;;;1651:10;1646:3;1642:20;1639:1;1632:31;1686:4;1683:1;1676:15;1714:4;1711:1;1704:15;1598:131;-1:-1:-1;1746:9:63;;1539:222::o;1766:131::-;-1:-1:-1;;;;;1841:31:63;;1831:42;;1821:70;;1887:1;1884;1877:12;1821:70;1766:131;:::o",
    "source": "pragma solidity ^0.8.0;\n\n// SPDX-License-Identifier: GPL-3.0-only\n\nimport \"@opengsn/contracts/src/ERC2771Recipient.sol\";\n\n//make sure that \"payable\" function that uses _msgSender() still works\n// (its not required to use _msgSender(), since the default function\n// will never be called through GSN, but still, if someone uses it,\n// it should work)\ncontract PayableWithEmit is ERC2771Recipient {\n\n  event Received(address sender, uint256 value, uint256 gasleft);\n\n  receive () external payable {\n\n    emit Received(_msgSender(), msg.value, gasleft());\n  }\n\n  //helper: send value to another contract\n  function doSend(address payable target) public payable {\n\n    uint256 before = gasleft();\n    // solhint-disable-next-line check-send-result\n    bool success = target.send(msg.value);\n    uint256 gasAfter = gasleft();\n    emit GasUsed(before-gasAfter, success);\n  }\n  event GasUsed(uint256 gasUsed, bool success);\n}",
    "sourcePath": "/Users/alexf/gsn2/packages/contracts/solpp/test/PayableWithEmit.sol",
    "ast": {
        "absolutePath": "/Users/alexf/gsn2/packages/contracts/solpp/test/PayableWithEmit.sol",
        "exportedSymbols": {
            "ERC2771Recipient": [
                10045
            ],
            "IERC2771Recipient": [
                10069
            ],
            "PayableWithEmit": [
                6348
            ]
        },
        "id": 6349,
        "license": "GPL-3.0-only",
        "nodeType": "SourceUnit",
        "nodes": [
            {
                "id": 6286,
                "literals": [
                    "solidity",
                    "^",
                    "0.8",
                    ".0"
                ],
                "nodeType": "PragmaDirective",
                "src": "0:23:19"
            },
            {
                "absolutePath": "@opengsn/contracts/src/ERC2771Recipient.sol",
                "file": "@opengsn/contracts/src/ERC2771Recipient.sol",
                "id": 6287,
                "nameLocation": "-1:-1:-1",
                "nodeType": "ImportDirective",
                "scope": 6349,
                "sourceUnit": 10046,
                "src": "67:53:19",
                "symbolAliases": [],
                "unitAlias": ""
            },
            {
                "abstract": false,
                "baseContracts": [
                    {
                        "baseName": {
                            "id": 6288,
                            "name": "ERC2771Recipient",
                            "nodeType": "IdentifierPath",
                            "referencedDeclaration": 10045,
                            "src": "377:16:19"
                        },
                        "id": 6289,
                        "nodeType": "InheritanceSpecifier",
                        "src": "377:16:19"
                    }
                ],
                "contractDependencies": [],
                "contractKind": "contract",
                "fullyImplemented": true,
                "id": 6348,
                "linearizedBaseContracts": [
                    6348,
                    10045,
                    10069
                ],
                "name": "PayableWithEmit",
                "nameLocation": "358:15:19",
                "nodeType": "ContractDefinition",
                "nodes": [
                    {
                        "anonymous": false,
                        "id": 6297,
                        "name": "Received",
                        "nameLocation": "405:8:19",
                        "nodeType": "EventDefinition",
                        "parameters": {
                            "id": 6296,
                            "nodeType": "ParameterList",
                            "parameters": [
                                {
                                    "constant": false,
                                    "id": 6291,
                                    "indexed": false,
                                    "mutability": "mutable",
                                    "name": "sender",
                                    "nameLocation": "422:6:19",
                                    "nodeType": "VariableDeclaration",
                                    "scope": 6297,
                                    "src": "414:14:19",
                                    "stateVariable": false,
                                    "storageLocation": "default",
                                    "typeDescriptions": {
                                        "typeIdentifier": "t_address",
                                        "typeString": "address"
                                    },
                                    "typeName": {
                                        "id": 6290,
                                        "name": "address",
                                        "nodeType": "ElementaryTypeName",
                                        "src": "414:7:19",
                                        "stateMutability": "nonpayable",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_address",
                                            "typeString": "address"
                                        }
                                    },
                                    "visibility": "internal"
                                },
                                {
                                    "constant": false,
                                    "id": 6293,
                                    "indexed": false,
                                    "mutability": "mutable",
                                    "name": "value",
                                    "nameLocation": "438:5:19",
                                    "nodeType": "VariableDeclaration",
                                    "scope": 6297,
                                    "src": "430:13:19",
                                    "stateVariable": false,
                                    "storageLocation": "default",
                                    "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                    },
                                    "typeName": {
                                        "id": 6292,
                                        "name": "uint256",
                                        "nodeType": "ElementaryTypeName",
                                        "src": "430:7:19",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                        }
                                    },
                                    "visibility": "internal"
                                },
                                {
                                    "constant": false,
                                    "id": 6295,
                                    "indexed": false,
                                    "mutability": "mutable",
                                    "name": "gasleft",
                                    "nameLocation": "453:7:19",
                                    "nodeType": "VariableDeclaration",
                                    "scope": 6297,
                                    "src": "445:15:19",
                                    "stateVariable": false,
                                    "storageLocation": "default",
                                    "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                    },
                                    "typeName": {
                                        "id": 6294,
                                        "name": "uint256",
                                        "nodeType": "ElementaryTypeName",
                                        "src": "445:7:19",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                        }
                                    },
                                    "visibility": "internal"
                                }
                            ],
                            "src": "413:48:19"
                        },
                        "src": "399:63:19"
                    },
                    {
                        "body": {
                            "id": 6309,
                            "nodeType": "Block",
                            "src": "494:61:19",
                            "statements": [
                                {
                                    "eventCall": {
                                        "arguments": [
                                            {
                                                "arguments": [],
                                                "expression": {
                                                    "argumentTypes": [],
                                                    "id": 6301,
                                                    "name": "_msgSender",
                                                    "nodeType": "Identifier",
                                                    "overloadedDeclarations": [
                                                        10010
                                                    ],
                                                    "referencedDeclaration": 10010,
                                                    "src": "515:10:19",
                                                    "typeDescriptions": {
                                                        "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
                                                        "typeString": "function () view returns (address)"
                                                    }
                                                },
                                                "id": 6302,
                                                "isConstant": false,
                                                "isLValue": false,
                                                "isPure": false,
                                                "kind": "functionCall",
                                                "lValueRequested": false,
                                                "names": [],
                                                "nodeType": "FunctionCall",
                                                "src": "515:12:19",
                                                "tryCall": false,
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_address",
                                                    "typeString": "address"
                                                }
                                            },
                                            {
                                                "expression": {
                                                    "id": 6303,
                                                    "name": "msg",
                                                    "nodeType": "Identifier",
                                                    "overloadedDeclarations": [],
                                                    "referencedDeclaration": 4294967281,
                                                    "src": "529:3:19",
                                                    "typeDescriptions": {
                                                        "typeIdentifier": "t_magic_message",
                                                        "typeString": "msg"
                                                    }
                                                },
                                                "id": 6304,
                                                "isConstant": false,
                                                "isLValue": false,
                                                "isPure": false,
                                                "lValueRequested": false,
                                                "memberName": "value",
                                                "nodeType": "MemberAccess",
                                                "src": "529:9:19",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                }
                                            },
                                            {
                                                "arguments": [],
                                                "expression": {
                                                    "argumentTypes": [],
                                                    "id": 6305,
                                                    "name": "gasleft",
                                                    "nodeType": "Identifier",
                                                    "overloadedDeclarations": [],
                                                    "referencedDeclaration": 4294967289,
                                                    "src": "540:7:19",
                                                    "typeDescriptions": {
                                                        "typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
                                                        "typeString": "function () view returns (uint256)"
                                                    }
                                                },
                                                "id": 6306,
                                                "isConstant": false,
                                                "isLValue": false,
                                                "isPure": false,
                                                "kind": "functionCall",
                                                "lValueRequested": false,
                                                "names": [],
                                                "nodeType": "FunctionCall",
                                                "src": "540:9:19",
                                                "tryCall": false,
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                }
                                            }
                                        ],
                                        "expression": {
                                            "argumentTypes": [
                                                {
                                                    "typeIdentifier": "t_address",
                                                    "typeString": "address"
                                                },
                                                {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                },
                                                {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                }
                                            ],
                                            "id": 6300,
                                            "name": "Received",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 6297,
                                            "src": "506:8:19",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$_t_uint256_$returns$__$",
                                                "typeString": "function (address,uint256,uint256)"
                                            }
                                        },
                                        "id": 6307,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "kind": "functionCall",
                                        "lValueRequested": false,
                                        "names": [],
                                        "nodeType": "FunctionCall",
                                        "src": "506:44:19",
                                        "tryCall": false,
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_tuple$__$",
                                            "typeString": "tuple()"
                                        }
                                    },
                                    "id": 6308,
                                    "nodeType": "EmitStatement",
                                    "src": "501:49:19"
                                }
                            ]
                        },
                        "id": 6310,
                        "implemented": true,
                        "kind": "receive",
                        "modifiers": [],
                        "name": "",
                        "nameLocation": "-1:-1:-1",
                        "nodeType": "FunctionDefinition",
                        "parameters": {
                            "id": 6298,
                            "nodeType": "ParameterList",
                            "parameters": [],
                            "src": "474:2:19"
                        },
                        "returnParameters": {
                            "id": 6299,
                            "nodeType": "ParameterList",
                            "parameters": [],
                            "src": "494:0:19"
                        },
                        "scope": 6348,
                        "src": "466:89:19",
                        "stateMutability": "payable",
                        "virtual": false,
                        "visibility": "external"
                    },
                    {
                        "body": {
                            "id": 6340,
                            "nodeType": "Block",
                            "src": "657:210:19",
                            "statements": [
                                {
                                    "assignments": [
                                        6316
                                    ],
                                    "declarations": [
                                        {
                                            "constant": false,
                                            "id": 6316,
                                            "mutability": "mutable",
                                            "name": "before",
                                            "nameLocation": "672:6:19",
                                            "nodeType": "VariableDeclaration",
                                            "scope": 6340,
                                            "src": "664:14:19",
                                            "stateVariable": false,
                                            "storageLocation": "default",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_uint256",
                                                "typeString": "uint256"
                                            },
                                            "typeName": {
                                                "id": 6315,
                                                "name": "uint256",
                                                "nodeType": "ElementaryTypeName",
                                                "src": "664:7:19",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                }
                                            },
                                            "visibility": "internal"
                                        }
                                    ],
                                    "id": 6319,
                                    "initialValue": {
                                        "arguments": [],
                                        "expression": {
                                            "argumentTypes": [],
                                            "id": 6317,
                                            "name": "gasleft",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 4294967289,
                                            "src": "681:7:19",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
                                                "typeString": "function () view returns (uint256)"
                                            }
                                        },
                                        "id": 6318,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "kind": "functionCall",
                                        "lValueRequested": false,
                                        "names": [],
                                        "nodeType": "FunctionCall",
                                        "src": "681:9:19",
                                        "tryCall": false,
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                        }
                                    },
                                    "nodeType": "VariableDeclarationStatement",
                                    "src": "664:26:19"
                                },
                                {
                                    "assignments": [
                                        6321
                                    ],
                                    "declarations": [
                                        {
                                            "constant": false,
                                            "id": 6321,
                                            "mutability": "mutable",
                                            "name": "success",
                                            "nameLocation": "752:7:19",
                                            "nodeType": "VariableDeclaration",
                                            "scope": 6340,
                                            "src": "747:12:19",
                                            "stateVariable": false,
                                            "storageLocation": "default",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_bool",
                                                "typeString": "bool"
                                            },
                                            "typeName": {
                                                "id": 6320,
                                                "name": "bool",
                                                "nodeType": "ElementaryTypeName",
                                                "src": "747:4:19",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_bool",
                                                    "typeString": "bool"
                                                }
                                            },
                                            "visibility": "internal"
                                        }
                                    ],
                                    "id": 6327,
                                    "initialValue": {
                                        "arguments": [
                                            {
                                                "expression": {
                                                    "id": 6324,
                                                    "name": "msg",
                                                    "nodeType": "Identifier",
                                                    "overloadedDeclarations": [],
                                                    "referencedDeclaration": 4294967281,
                                                    "src": "774:3:19",
                                                    "typeDescriptions": {
                                                        "typeIdentifier": "t_magic_message",
                                                        "typeString": "msg"
                                                    }
                                                },
                                                "id": 6325,
                                                "isConstant": false,
                                                "isLValue": false,
                                                "isPure": false,
                                                "lValueRequested": false,
                                                "memberName": "value",
                                                "nodeType": "MemberAccess",
                                                "src": "774:9:19",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                }
                                            }
                                        ],
                                        "expression": {
                                            "argumentTypes": [
                                                {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                }
                                            ],
                                            "expression": {
                                                "id": 6322,
                                                "name": "target",
                                                "nodeType": "Identifier",
                                                "overloadedDeclarations": [],
                                                "referencedDeclaration": 6312,
                                                "src": "762:6:19",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_address_payable",
                                                    "typeString": "address payable"
                                                }
                                            },
                                            "id": 6323,
                                            "isConstant": false,
                                            "isLValue": false,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "memberName": "send",
                                            "nodeType": "MemberAccess",
                                            "src": "762:11:19",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_function_send_nonpayable$_t_uint256_$returns$_t_bool_$",
                                                "typeString": "function (uint256) returns (bool)"
                                            }
                                        },
                                        "id": 6326,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "kind": "functionCall",
                                        "lValueRequested": false,
                                        "names": [],
                                        "nodeType": "FunctionCall",
                                        "src": "762:22:19",
                                        "tryCall": false,
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_bool",
                                            "typeString": "bool"
                                        }
                                    },
                                    "nodeType": "VariableDeclarationStatement",
                                    "src": "747:37:19"
                                },
                                {
                                    "assignments": [
                                        6329
                                    ],
                                    "declarations": [
                                        {
                                            "constant": false,
                                            "id": 6329,
                                            "mutability": "mutable",
                                            "name": "gasAfter",
                                            "nameLocation": "798:8:19",
                                            "nodeType": "VariableDeclaration",
                                            "scope": 6340,
                                            "src": "790:16:19",
                                            "stateVariable": false,
                                            "storageLocation": "default",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_uint256",
                                                "typeString": "uint256"
                                            },
                                            "typeName": {
                                                "id": 6328,
                                                "name": "uint256",
                                                "nodeType": "ElementaryTypeName",
                                                "src": "790:7:19",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                }
                                            },
                                            "visibility": "internal"
                                        }
                                    ],
                                    "id": 6332,
                                    "initialValue": {
                                        "arguments": [],
                                        "expression": {
                                            "argumentTypes": [],
                                            "id": 6330,
                                            "name": "gasleft",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 4294967289,
                                            "src": "809:7:19",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
                                                "typeString": "function () view returns (uint256)"
                                            }
                                        },
                                        "id": 6331,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "kind": "functionCall",
                                        "lValueRequested": false,
                                        "names": [],
                                        "nodeType": "FunctionCall",
                                        "src": "809:9:19",
                                        "tryCall": false,
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                        }
                                    },
                                    "nodeType": "VariableDeclarationStatement",
                                    "src": "790:28:19"
                                },
                                {
                                    "eventCall": {
                                        "arguments": [
                                            {
                                                "commonType": {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                },
                                                "id": 6336,
                                                "isConstant": false,
                                                "isLValue": false,
                                                "isPure": false,
                                                "lValueRequested": false,
                                                "leftExpression": {
                                                    "id": 6334,
                                                    "name": "before",
                                                    "nodeType": "Identifier",
                                                    "overloadedDeclarations": [],
                                                    "referencedDeclaration": 6316,
                                                    "src": "837:6:19",
                                                    "typeDescriptions": {
                                                        "typeIdentifier": "t_uint256",
                                                        "typeString": "uint256"
                                                    }
                                                },
                                                "nodeType": "BinaryOperation",
                                                "operator": "-",
                                                "rightExpression": {
                                                    "id": 6335,
                                                    "name": "gasAfter",
                                                    "nodeType": "Identifier",
                                                    "overloadedDeclarations": [],
                                                    "referencedDeclaration": 6329,
                                                    "src": "844:8:19",
                                                    "typeDescriptions": {
                                                        "typeIdentifier": "t_uint256",
                                                        "typeString": "uint256"
                                                    }
                                                },
                                                "src": "837:15:19",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                }
                                            },
                                            {
                                                "id": 6337,
                                                "name": "success",
                                                "nodeType": "Identifier",
                                                "overloadedDeclarations": [],
                                                "referencedDeclaration": 6321,
                                                "src": "854:7:19",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_bool",
                                                    "typeString": "bool"
                                                }
                                            }
                                        ],
                                        "expression": {
                                            "argumentTypes": [
                                                {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                },
                                                {
                                                    "typeIdentifier": "t_bool",
                                                    "typeString": "bool"
                                                }
                                            ],
                                            "id": 6333,
                                            "name": "GasUsed",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 6347,
                                            "src": "829:7:19",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_bool_$returns$__$",
                                                "typeString": "function (uint256,bool)"
                                            }
                                        },
                                        "id": 6338,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "kind": "functionCall",
                                        "lValueRequested": false,
                                        "names": [],
                                        "nodeType": "FunctionCall",
                                        "src": "829:33:19",
                                        "tryCall": false,
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_tuple$__$",
                                            "typeString": "tuple()"
                                        }
                                    },
                                    "id": 6339,
                                    "nodeType": "EmitStatement",
                                    "src": "824:38:19"
                                }
                            ]
                        },
                        "functionSelector": "9bfcdaa1",
                        "id": 6341,
                        "implemented": true,
                        "kind": "function",
                        "modifiers": [],
                        "name": "doSend",
                        "nameLocation": "611:6:19",
                        "nodeType": "FunctionDefinition",
                        "parameters": {
                            "id": 6313,
                            "nodeType": "ParameterList",
                            "parameters": [
                                {
                                    "constant": false,
                                    "id": 6312,
                                    "mutability": "mutable",
                                    "name": "target",
                                    "nameLocation": "634:6:19",
                                    "nodeType": "VariableDeclaration",
                                    "scope": 6341,
                                    "src": "618:22:19",
                                    "stateVariable": false,
                                    "storageLocation": "default",
                                    "typeDescriptions": {
                                        "typeIdentifier": "t_address_payable",
                                        "typeString": "address payable"
                                    },
                                    "typeName": {
                                        "id": 6311,
                                        "name": "address",
                                        "nodeType": "ElementaryTypeName",
                                        "src": "618:15:19",
                                        "stateMutability": "payable",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_address_payable",
                                            "typeString": "address payable"
                                        }
                                    },
                                    "visibility": "internal"
                                }
                            ],
                            "src": "617:24:19"
                        },
                        "returnParameters": {
                            "id": 6314,
                            "nodeType": "ParameterList",
                            "parameters": [],
                            "src": "657:0:19"
                        },
                        "scope": 6348,
                        "src": "602:265:19",
                        "stateMutability": "payable",
                        "virtual": false,
                        "visibility": "public"
                    },
                    {
                        "anonymous": false,
                        "id": 6347,
                        "name": "GasUsed",
                        "nameLocation": "876:7:19",
                        "nodeType": "EventDefinition",
                        "parameters": {
                            "id": 6346,
                            "nodeType": "ParameterList",
                            "parameters": [
                                {
                                    "constant": false,
                                    "id": 6343,
                                    "indexed": false,
                                    "mutability": "mutable",
                                    "name": "gasUsed",
                                    "nameLocation": "892:7:19",
                                    "nodeType": "VariableDeclaration",
                                    "scope": 6347,
                                    "src": "884:15:19",
                                    "stateVariable": false,
                                    "storageLocation": "default",
                                    "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                    },
                                    "typeName": {
                                        "id": 6342,
                                        "name": "uint256",
                                        "nodeType": "ElementaryTypeName",
                                        "src": "884:7:19",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                        }
                                    },
                                    "visibility": "internal"
                                },
                                {
                                    "constant": false,
                                    "id": 6345,
                                    "indexed": false,
                                    "mutability": "mutable",
                                    "name": "success",
                                    "nameLocation": "906:7:19",
                                    "nodeType": "VariableDeclaration",
                                    "scope": 6347,
                                    "src": "901:12:19",
                                    "stateVariable": false,
                                    "storageLocation": "default",
                                    "typeDescriptions": {
                                        "typeIdentifier": "t_bool",
                                        "typeString": "bool"
                                    },
                                    "typeName": {
                                        "id": 6344,
                                        "name": "bool",
                                        "nodeType": "ElementaryTypeName",
                                        "src": "901:4:19",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_bool",
                                            "typeString": "bool"
                                        }
                                    },
                                    "visibility": "internal"
                                }
                            ],
                            "src": "883:31:19"
                        },
                        "src": "870:45:19"
                    }
                ],
                "scope": 6349,
                "src": "349:568:19",
                "usedErrors": []
            }
        ],
        "src": "0:917:19"
    },
    "legacyAST": {
        "absolutePath": "/Users/alexf/gsn2/packages/contracts/solpp/test/PayableWithEmit.sol",
        "exportedSymbols": {
            "ERC2771Recipient": [
                10045
            ],
            "IERC2771Recipient": [
                10069
            ],
            "PayableWithEmit": [
                6348
            ]
        },
        "id": 6349,
        "license": "GPL-3.0-only",
        "nodeType": "SourceUnit",
        "nodes": [
            {
                "id": 6286,
                "literals": [
                    "solidity",
                    "^",
                    "0.8",
                    ".0"
                ],
                "nodeType": "PragmaDirective",
                "src": "0:23:19"
            },
            {
                "absolutePath": "@opengsn/contracts/src/ERC2771Recipient.sol",
                "file": "@opengsn/contracts/src/ERC2771Recipient.sol",
                "id": 6287,
                "nameLocation": "-1:-1:-1",
                "nodeType": "ImportDirective",
                "scope": 6349,
                "sourceUnit": 10046,
                "src": "67:53:19",
                "symbolAliases": [],
                "unitAlias": ""
            },
            {
                "abstract": false,
                "baseContracts": [
                    {
                        "baseName": {
                            "id": 6288,
                            "name": "ERC2771Recipient",
                            "nodeType": "IdentifierPath",
                            "referencedDeclaration": 10045,
                            "src": "377:16:19"
                        },
                        "id": 6289,
                        "nodeType": "InheritanceSpecifier",
                        "src": "377:16:19"
                    }
                ],
                "contractDependencies": [],
                "contractKind": "contract",
                "fullyImplemented": true,
                "id": 6348,
                "linearizedBaseContracts": [
                    6348,
                    10045,
                    10069
                ],
                "name": "PayableWithEmit",
                "nameLocation": "358:15:19",
                "nodeType": "ContractDefinition",
                "nodes": [
                    {
                        "anonymous": false,
                        "id": 6297,
                        "name": "Received",
                        "nameLocation": "405:8:19",
                        "nodeType": "EventDefinition",
                        "parameters": {
                            "id": 6296,
                            "nodeType": "ParameterList",
                            "parameters": [
                                {
                                    "constant": false,
                                    "id": 6291,
                                    "indexed": false,
                                    "mutability": "mutable",
                                    "name": "sender",
                                    "nameLocation": "422:6:19",
                                    "nodeType": "VariableDeclaration",
                                    "scope": 6297,
                                    "src": "414:14:19",
                                    "stateVariable": false,
                                    "storageLocation": "default",
                                    "typeDescriptions": {
                                        "typeIdentifier": "t_address",
                                        "typeString": "address"
                                    },
                                    "typeName": {
                                        "id": 6290,
                                        "name": "address",
                                        "nodeType": "ElementaryTypeName",
                                        "src": "414:7:19",
                                        "stateMutability": "nonpayable",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_address",
                                            "typeString": "address"
                                        }
                                    },
                                    "visibility": "internal"
                                },
                                {
                                    "constant": false,
                                    "id": 6293,
                                    "indexed": false,
                                    "mutability": "mutable",
                                    "name": "value",
                                    "nameLocation": "438:5:19",
                                    "nodeType": "VariableDeclaration",
                                    "scope": 6297,
                                    "src": "430:13:19",
                                    "stateVariable": false,
                                    "storageLocation": "default",
                                    "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                    },
                                    "typeName": {
                                        "id": 6292,
                                        "name": "uint256",
                                        "nodeType": "ElementaryTypeName",
                                        "src": "430:7:19",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                        }
                                    },
                                    "visibility": "internal"
                                },
                                {
                                    "constant": false,
                                    "id": 6295,
                                    "indexed": false,
                                    "mutability": "mutable",
                                    "name": "gasleft",
                                    "nameLocation": "453:7:19",
                                    "nodeType": "VariableDeclaration",
                                    "scope": 6297,
                                    "src": "445:15:19",
                                    "stateVariable": false,
                                    "storageLocation": "default",
                                    "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                    },
                                    "typeName": {
                                        "id": 6294,
                                        "name": "uint256",
                                        "nodeType": "ElementaryTypeName",
                                        "src": "445:7:19",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                        }
                                    },
                                    "visibility": "internal"
                                }
                            ],
                            "src": "413:48:19"
                        },
                        "src": "399:63:19"
                    },
                    {
                        "body": {
                            "id": 6309,
                            "nodeType": "Block",
                            "src": "494:61:19",
                            "statements": [
                                {
                                    "eventCall": {
                                        "arguments": [
                                            {
                                                "arguments": [],
                                                "expression": {
                                                    "argumentTypes": [],
                                                    "id": 6301,
                                                    "name": "_msgSender",
                                                    "nodeType": "Identifier",
                                                    "overloadedDeclarations": [
                                                        10010
                                                    ],
                                                    "referencedDeclaration": 10010,
                                                    "src": "515:10:19",
                                                    "typeDescriptions": {
                                                        "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
                                                        "typeString": "function () view returns (address)"
                                                    }
                                                },
                                                "id": 6302,
                                                "isConstant": false,
                                                "isLValue": false,
                                                "isPure": false,
                                                "kind": "functionCall",
                                                "lValueRequested": false,
                                                "names": [],
                                                "nodeType": "FunctionCall",
                                                "src": "515:12:19",
                                                "tryCall": false,
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_address",
                                                    "typeString": "address"
                                                }
                                            },
                                            {
                                                "expression": {
                                                    "id": 6303,
                                                    "name": "msg",
                                                    "nodeType": "Identifier",
                                                    "overloadedDeclarations": [],
                                                    "referencedDeclaration": 4294967281,
                                                    "src": "529:3:19",
                                                    "typeDescriptions": {
                                                        "typeIdentifier": "t_magic_message",
                                                        "typeString": "msg"
                                                    }
                                                },
                                                "id": 6304,
                                                "isConstant": false,
                                                "isLValue": false,
                                                "isPure": false,
                                                "lValueRequested": false,
                                                "memberName": "value",
                                                "nodeType": "MemberAccess",
                                                "src": "529:9:19",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                }
                                            },
                                            {
                                                "arguments": [],
                                                "expression": {
                                                    "argumentTypes": [],
                                                    "id": 6305,
                                                    "name": "gasleft",
                                                    "nodeType": "Identifier",
                                                    "overloadedDeclarations": [],
                                                    "referencedDeclaration": 4294967289,
                                                    "src": "540:7:19",
                                                    "typeDescriptions": {
                                                        "typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
                                                        "typeString": "function () view returns (uint256)"
                                                    }
                                                },
                                                "id": 6306,
                                                "isConstant": false,
                                                "isLValue": false,
                                                "isPure": false,
                                                "kind": "functionCall",
                                                "lValueRequested": false,
                                                "names": [],
                                                "nodeType": "FunctionCall",
                                                "src": "540:9:19",
                                                "tryCall": false,
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                }
                                            }
                                        ],
                                        "expression": {
                                            "argumentTypes": [
                                                {
                                                    "typeIdentifier": "t_address",
                                                    "typeString": "address"
                                                },
                                                {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                },
                                                {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                }
                                            ],
                                            "id": 6300,
                                            "name": "Received",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 6297,
                                            "src": "506:8:19",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$_t_uint256_$returns$__$",
                                                "typeString": "function (address,uint256,uint256)"
                                            }
                                        },
                                        "id": 6307,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "kind": "functionCall",
                                        "lValueRequested": false,
                                        "names": [],
                                        "nodeType": "FunctionCall",
                                        "src": "506:44:19",
                                        "tryCall": false,
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_tuple$__$",
                                            "typeString": "tuple()"
                                        }
                                    },
                                    "id": 6308,
                                    "nodeType": "EmitStatement",
                                    "src": "501:49:19"
                                }
                            ]
                        },
                        "id": 6310,
                        "implemented": true,
                        "kind": "receive",
                        "modifiers": [],
                        "name": "",
                        "nameLocation": "-1:-1:-1",
                        "nodeType": "FunctionDefinition",
                        "parameters": {
                            "id": 6298,
                            "nodeType": "ParameterList",
                            "parameters": [],
                            "src": "474:2:19"
                        },
                        "returnParameters": {
                            "id": 6299,
                            "nodeType": "ParameterList",
                            "parameters": [],
                            "src": "494:0:19"
                        },
                        "scope": 6348,
                        "src": "466:89:19",
                        "stateMutability": "payable",
                        "virtual": false,
                        "visibility": "external"
                    },
                    {
                        "body": {
                            "id": 6340,
                            "nodeType": "Block",
                            "src": "657:210:19",
                            "statements": [
                                {
                                    "assignments": [
                                        6316
                                    ],
                                    "declarations": [
                                        {
                                            "constant": false,
                                            "id": 6316,
                                            "mutability": "mutable",
                                            "name": "before",
                                            "nameLocation": "672:6:19",
                                            "nodeType": "VariableDeclaration",
                                            "scope": 6340,
                                            "src": "664:14:19",
                                            "stateVariable": false,
                                            "storageLocation": "default",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_uint256",
                                                "typeString": "uint256"
                                            },
                                            "typeName": {
                                                "id": 6315,
                                                "name": "uint256",
                                                "nodeType": "ElementaryTypeName",
                                                "src": "664:7:19",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                }
                                            },
                                            "visibility": "internal"
                                        }
                                    ],
                                    "id": 6319,
                                    "initialValue": {
                                        "arguments": [],
                                        "expression": {
                                            "argumentTypes": [],
                                            "id": 6317,
                                            "name": "gasleft",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 4294967289,
                                            "src": "681:7:19",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
                                                "typeString": "function () view returns (uint256)"
                                            }
                                        },
                                        "id": 6318,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "kind": "functionCall",
                                        "lValueRequested": false,
                                        "names": [],
                                        "nodeType": "FunctionCall",
                                        "src": "681:9:19",
                                        "tryCall": false,
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                        }
                                    },
                                    "nodeType": "VariableDeclarationStatement",
                                    "src": "664:26:19"
                                },
                                {
                                    "assignments": [
                                        6321
                                    ],
                                    "declarations": [
                                        {
                                            "constant": false,
                                            "id": 6321,
                                            "mutability": "mutable",
                                            "name": "success",
                                            "nameLocation": "752:7:19",
                                            "nodeType": "VariableDeclaration",
                                            "scope": 6340,
                                            "src": "747:12:19",
                                            "stateVariable": false,
                                            "storageLocation": "default",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_bool",
                                                "typeString": "bool"
                                            },
                                            "typeName": {
                                                "id": 6320,
                                                "name": "bool",
                                                "nodeType": "ElementaryTypeName",
                                                "src": "747:4:19",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_bool",
                                                    "typeString": "bool"
                                                }
                                            },
                                            "visibility": "internal"
                                        }
                                    ],
                                    "id": 6327,
                                    "initialValue": {
                                        "arguments": [
                                            {
                                                "expression": {
                                                    "id": 6324,
                                                    "name": "msg",
                                                    "nodeType": "Identifier",
                                                    "overloadedDeclarations": [],
                                                    "referencedDeclaration": 4294967281,
                                                    "src": "774:3:19",
                                                    "typeDescriptions": {
                                                        "typeIdentifier": "t_magic_message",
                                                        "typeString": "msg"
                                                    }
                                                },
                                                "id": 6325,
                                                "isConstant": false,
                                                "isLValue": false,
                                                "isPure": false,
                                                "lValueRequested": false,
                                                "memberName": "value",
                                                "nodeType": "MemberAccess",
                                                "src": "774:9:19",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                }
                                            }
                                        ],
                                        "expression": {
                                            "argumentTypes": [
                                                {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                }
                                            ],
                                            "expression": {
                                                "id": 6322,
                                                "name": "target",
                                                "nodeType": "Identifier",
                                                "overloadedDeclarations": [],
                                                "referencedDeclaration": 6312,
                                                "src": "762:6:19",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_address_payable",
                                                    "typeString": "address payable"
                                                }
                                            },
                                            "id": 6323,
                                            "isConstant": false,
                                            "isLValue": false,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "memberName": "send",
                                            "nodeType": "MemberAccess",
                                            "src": "762:11:19",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_function_send_nonpayable$_t_uint256_$returns$_t_bool_$",
                                                "typeString": "function (uint256) returns (bool)"
                                            }
                                        },
                                        "id": 6326,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "kind": "functionCall",
                                        "lValueRequested": false,
                                        "names": [],
                                        "nodeType": "FunctionCall",
                                        "src": "762:22:19",
                                        "tryCall": false,
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_bool",
                                            "typeString": "bool"
                                        }
                                    },
                                    "nodeType": "VariableDeclarationStatement",
                                    "src": "747:37:19"
                                },
                                {
                                    "assignments": [
                                        6329
                                    ],
                                    "declarations": [
                                        {
                                            "constant": false,
                                            "id": 6329,
                                            "mutability": "mutable",
                                            "name": "gasAfter",
                                            "nameLocation": "798:8:19",
                                            "nodeType": "VariableDeclaration",
                                            "scope": 6340,
                                            "src": "790:16:19",
                                            "stateVariable": false,
                                            "storageLocation": "default",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_uint256",
                                                "typeString": "uint256"
                                            },
                                            "typeName": {
                                                "id": 6328,
                                                "name": "uint256",
                                                "nodeType": "ElementaryTypeName",
                                                "src": "790:7:19",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                }
                                            },
                                            "visibility": "internal"
                                        }
                                    ],
                                    "id": 6332,
                                    "initialValue": {
                                        "arguments": [],
                                        "expression": {
                                            "argumentTypes": [],
                                            "id": 6330,
                                            "name": "gasleft",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 4294967289,
                                            "src": "809:7:19",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
                                                "typeString": "function () view returns (uint256)"
                                            }
                                        },
                                        "id": 6331,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "kind": "functionCall",
                                        "lValueRequested": false,
                                        "names": [],
                                        "nodeType": "FunctionCall",
                                        "src": "809:9:19",
                                        "tryCall": false,
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                        }
                                    },
                                    "nodeType": "VariableDeclarationStatement",
                                    "src": "790:28:19"
                                },
                                {
                                    "eventCall": {
                                        "arguments": [
                                            {
                                                "commonType": {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                },
                                                "id": 6336,
                                                "isConstant": false,
                                                "isLValue": false,
                                                "isPure": false,
                                                "lValueRequested": false,
                                                "leftExpression": {
                                                    "id": 6334,
                                                    "name": "before",
                                                    "nodeType": "Identifier",
                                                    "overloadedDeclarations": [],
                                                    "referencedDeclaration": 6316,
                                                    "src": "837:6:19",
                                                    "typeDescriptions": {
                                                        "typeIdentifier": "t_uint256",
                                                        "typeString": "uint256"
                                                    }
                                                },
                                                "nodeType": "BinaryOperation",
                                                "operator": "-",
                                                "rightExpression": {
                                                    "id": 6335,
                                                    "name": "gasAfter",
                                                    "nodeType": "Identifier",
                                                    "overloadedDeclarations": [],
                                                    "referencedDeclaration": 6329,
                                                    "src": "844:8:19",
                                                    "typeDescriptions": {
                                                        "typeIdentifier": "t_uint256",
                                                        "typeString": "uint256"
                                                    }
                                                },
                                                "src": "837:15:19",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                }
                                            },
                                            {
                                                "id": 6337,
                                                "name": "success",
                                                "nodeType": "Identifier",
                                                "overloadedDeclarations": [],
                                                "referencedDeclaration": 6321,
                                                "src": "854:7:19",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_bool",
                                                    "typeString": "bool"
                                                }
                                            }
                                        ],
                                        "expression": {
                                            "argumentTypes": [
                                                {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                },
                                                {
                                                    "typeIdentifier": "t_bool",
                                                    "typeString": "bool"
                                                }
                                            ],
                                            "id": 6333,
                                            "name": "GasUsed",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 6347,
                                            "src": "829:7:19",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_bool_$returns$__$",
                                                "typeString": "function (uint256,bool)"
                                            }
                                        },
                                        "id": 6338,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "kind": "functionCall",
                                        "lValueRequested": false,
                                        "names": [],
                                        "nodeType": "FunctionCall",
                                        "src": "829:33:19",
                                        "tryCall": false,
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_tuple$__$",
                                            "typeString": "tuple()"
                                        }
                                    },
                                    "id": 6339,
                                    "nodeType": "EmitStatement",
                                    "src": "824:38:19"
                                }
                            ]
                        },
                        "functionSelector": "9bfcdaa1",
                        "id": 6341,
                        "implemented": true,
                        "kind": "function",
                        "modifiers": [],
                        "name": "doSend",
                        "nameLocation": "611:6:19",
                        "nodeType": "FunctionDefinition",
                        "parameters": {
                            "id": 6313,
                            "nodeType": "ParameterList",
                            "parameters": [
                                {
                                    "constant": false,
                                    "id": 6312,
                                    "mutability": "mutable",
                                    "name": "target",
                                    "nameLocation": "634:6:19",
                                    "nodeType": "VariableDeclaration",
                                    "scope": 6341,
                                    "src": "618:22:19",
                                    "stateVariable": false,
                                    "storageLocation": "default",
                                    "typeDescriptions": {
                                        "typeIdentifier": "t_address_payable",
                                        "typeString": "address payable"
                                    },
                                    "typeName": {
                                        "id": 6311,
                                        "name": "address",
                                        "nodeType": "ElementaryTypeName",
                                        "src": "618:15:19",
                                        "stateMutability": "payable",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_address_payable",
                                            "typeString": "address payable"
                                        }
                                    },
                                    "visibility": "internal"
                                }
                            ],
                            "src": "617:24:19"
                        },
                        "returnParameters": {
                            "id": 6314,
                            "nodeType": "ParameterList",
                            "parameters": [],
                            "src": "657:0:19"
                        },
                        "scope": 6348,
                        "src": "602:265:19",
                        "stateMutability": "payable",
                        "virtual": false,
                        "visibility": "public"
                    },
                    {
                        "anonymous": false,
                        "id": 6347,
                        "name": "GasUsed",
                        "nameLocation": "876:7:19",
                        "nodeType": "EventDefinition",
                        "parameters": {
                            "id": 6346,
                            "nodeType": "ParameterList",
                            "parameters": [
                                {
                                    "constant": false,
                                    "id": 6343,
                                    "indexed": false,
                                    "mutability": "mutable",
                                    "name": "gasUsed",
                                    "nameLocation": "892:7:19",
                                    "nodeType": "VariableDeclaration",
                                    "scope": 6347,
                                    "src": "884:15:19",
                                    "stateVariable": false,
                                    "storageLocation": "default",
                                    "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                    },
                                    "typeName": {
                                        "id": 6342,
                                        "name": "uint256",
                                        "nodeType": "ElementaryTypeName",
                                        "src": "884:7:19",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                        }
                                    },
                                    "visibility": "internal"
                                },
                                {
                                    "constant": false,
                                    "id": 6345,
                                    "indexed": false,
                                    "mutability": "mutable",
                                    "name": "success",
                                    "nameLocation": "906:7:19",
                                    "nodeType": "VariableDeclaration",
                                    "scope": 6347,
                                    "src": "901:12:19",
                                    "stateVariable": false,
                                    "storageLocation": "default",
                                    "typeDescriptions": {
                                        "typeIdentifier": "t_bool",
                                        "typeString": "bool"
                                    },
                                    "typeName": {
                                        "id": 6344,
                                        "name": "bool",
                                        "nodeType": "ElementaryTypeName",
                                        "src": "901:4:19",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_bool",
                                            "typeString": "bool"
                                        }
                                    },
                                    "visibility": "internal"
                                }
                            ],
                            "src": "883:31:19"
                        },
                        "src": "870:45:19"
                    }
                ],
                "scope": 6349,
                "src": "349:568:19",
                "usedErrors": []
            }
        ],
        "src": "0:917:19"
    },
    "compiler": {
        "name": "solc",
        "version": "0.8.7+commit.e28d00a7.Emscripten.clang"
    },
    "networks": {},
    "schemaVersion": "3.1.0",
    "updatedAt": "2023-03-16T16:54:15.214Z",
    "devdoc": {
        "kind": "dev",
        "methods": {
            "getTrustedForwarder()": {
                "returns": {
                    "forwarder": "The address of the Forwarder contract that is being used."
                }
            },
            "isTrustedForwarder(address)": {
                "params": {
                    "forwarder": "The address of the Forwarder contract that is being used."
                },
                "returns": {
                    "_0": "isTrustedForwarder `true` if the Forwarder is trusted to forward relayed transactions by this Recipient."
                }
            }
        },
        "version": 1
    },
    "userdoc": {
        "kind": "user",
        "methods": {
            "getTrustedForwarder()": {
                "notice": ":warning: **Warning** :warning: The Forwarder can have a full control over your Recipient. Only trust verified Forwarder.Method is not a required method to allow Recipients to trust multiple Forwarders. Not recommended yet."
            },
            "isTrustedForwarder(address)": {
                "notice": ":warning: **Warning** :warning: The Forwarder can have a full control over your Recipient. Only trust verified Forwarder."
            }
        },
        "version": 1
    }
}
