{
    "contractName": "P1Liquidation",
    "abi": [
        {
            "inputs": [
                {
                    "internalType": "address",
                    "name": "perpetualV1",
                    "type": "address"
                }
            ],
            "payable": false,
            "stateMutability": "nonpayable",
            "type": "constructor"
        },
        {
            "anonymous": false,
            "inputs": [
                {
                    "indexed": true,
                    "internalType": "address",
                    "name": "maker",
                    "type": "address"
                },
                {
                    "indexed": true,
                    "internalType": "address",
                    "name": "taker",
                    "type": "address"
                },
                {
                    "indexed": false,
                    "internalType": "uint256",
                    "name": "amount",
                    "type": "uint256"
                },
                {
                    "indexed": false,
                    "internalType": "bool",
                    "name": "isBuy",
                    "type": "bool"
                },
                {
                    "indexed": false,
                    "internalType": "uint256",
                    "name": "oraclePrice",
                    "type": "uint256"
                }
            ],
            "name": "LogLiquidated",
            "type": "event"
        },
        {
            "constant": true,
            "inputs": [],
            "name": "_PERPETUAL_V1_",
            "outputs": [
                {
                    "internalType": "address",
                    "name": "",
                    "type": "address"
                }
            ],
            "payable": false,
            "stateMutability": "view",
            "type": "function"
        },
        {
            "constant": false,
            "inputs": [
                {
                    "internalType": "address",
                    "name": "sender",
                    "type": "address"
                },
                {
                    "internalType": "address",
                    "name": "maker",
                    "type": "address"
                },
                {
                    "internalType": "address",
                    "name": "taker",
                    "type": "address"
                },
                {
                    "internalType": "uint256",
                    "name": "price",
                    "type": "uint256"
                },
                {
                    "internalType": "bytes",
                    "name": "data",
                    "type": "bytes"
                },
                {
                    "internalType": "bytes32",
                    "name": "",
                    "type": "bytes32"
                }
            ],
            "name": "trade",
            "outputs": [
                {
                    "components": [
                        {
                            "internalType": "uint256",
                            "name": "marginAmount",
                            "type": "uint256"
                        },
                        {
                            "internalType": "uint256",
                            "name": "positionAmount",
                            "type": "uint256"
                        },
                        {
                            "internalType": "bool",
                            "name": "isBuy",
                            "type": "bool"
                        },
                        {
                            "internalType": "bytes32",
                            "name": "traderFlags",
                            "type": "bytes32"
                        }
                    ],
                    "internalType": "struct P1Types.TradeResult",
                    "name": "",
                    "type": "tuple"
                }
            ],
            "payable": false,
            "stateMutability": "nonpayable",
            "type": "function"
        }
    ],
    "networks": {
        "PBTC-USDC": {
            "1": {
                "links": {},
                "address": "0x9b1289dd794F10AF38A3117fE933836D685f7339",
                "transactionHash": "0x4eabdf1b32ae3b0364818ae10df41fd4a6d284480d1d78a32ffd52ea72fc49b4"
            }
        },
        "PLINK-USDC": {
            "1": {
                "links": {},
                "address": "0xEc4870B8Dd7979bfc7c5E6220893B3A5dD646F0C",
                "transactionHash": "0x944d0305cd9c29a47ee413614fcd0f591f01357cc62279b5cfefd2937d3783dc"
            }
        },
        "WETH-PUSD": {
            "1": {
                "links": {},
                "address": "0x05f370CA0B6c156845f73A9115F35edCdE052803",
                "transactionHash": "0x0c1939143e60ef023d40234c308196c00b17e92936a62d8b219d9dd50283b5b8"
            }
        }
    }
}