{
    "contractName": "FinalSettlement",
    "abi": [
        {
            "constant": true,
            "inputs": [],
            "name": "SOLO_MARGIN",
            "outputs": [
                {
                    "name": "",
                    "type": "address"
                }
            ],
            "payable": false,
            "stateMutability": "view",
            "type": "function"
        },
        {
            "constant": true,
            "inputs": [],
            "name": "g_spreadRampTime",
            "outputs": [
                {
                    "name": "",
                    "type": "uint256"
                }
            ],
            "payable": false,
            "stateMutability": "view",
            "type": "function"
        },
        {
            "constant": true,
            "inputs": [],
            "name": "g_startTime",
            "outputs": [
                {
                    "name": "",
                    "type": "uint32"
                }
            ],
            "payable": false,
            "stateMutability": "view",
            "type": "function"
        },
        {
            "inputs": [
                {
                    "name": "soloMargin",
                    "type": "address"
                },
                {
                    "name": "rampTime",
                    "type": "uint256"
                }
            ],
            "payable": false,
            "stateMutability": "nonpayable",
            "type": "constructor"
        },
        {
            "anonymous": false,
            "inputs": [
                {
                    "indexed": false,
                    "name": "time",
                    "type": "uint32"
                }
            ],
            "name": "Initialized",
            "type": "event"
        },
        {
            "anonymous": false,
            "inputs": [
                {
                    "indexed": true,
                    "name": "makerAddress",
                    "type": "address"
                },
                {
                    "indexed": true,
                    "name": "takerAddress",
                    "type": "address"
                },
                {
                    "indexed": false,
                    "name": "heldMarketId",
                    "type": "uint256"
                },
                {
                    "indexed": false,
                    "name": "owedMarketId",
                    "type": "uint256"
                },
                {
                    "indexed": false,
                    "name": "heldWei",
                    "type": "uint256"
                },
                {
                    "indexed": false,
                    "name": "owedWei",
                    "type": "uint256"
                }
            ],
            "name": "Settlement",
            "type": "event"
        },
        {
            "constant": false,
            "inputs": [],
            "name": "initialize",
            "outputs": [],
            "payable": false,
            "stateMutability": "nonpayable",
            "type": "function"
        },
        {
            "constant": true,
            "inputs": [
                {
                    "name": "heldMarketId",
                    "type": "uint256"
                },
                {
                    "name": "owedMarketId",
                    "type": "uint256"
                },
                {
                    "name": "timestamp",
                    "type": "uint32"
                }
            ],
            "name": "getSpreadAdjustedPrices",
            "outputs": [
                {
                    "components": [
                        {
                            "name": "value",
                            "type": "uint256"
                        }
                    ],
                    "name": "",
                    "type": "tuple"
                },
                {
                    "components": [
                        {
                            "name": "value",
                            "type": "uint256"
                        }
                    ],
                    "name": "",
                    "type": "tuple"
                }
            ],
            "payable": false,
            "stateMutability": "view",
            "type": "function"
        },
        {
            "constant": false,
            "inputs": [
                {
                    "name": "inputMarketId",
                    "type": "uint256"
                },
                {
                    "name": "outputMarketId",
                    "type": "uint256"
                },
                {
                    "components": [
                        {
                            "name": "owner",
                            "type": "address"
                        },
                        {
                            "name": "number",
                            "type": "uint256"
                        }
                    ],
                    "name": "makerAccount",
                    "type": "tuple"
                },
                {
                    "components": [
                        {
                            "name": "owner",
                            "type": "address"
                        },
                        {
                            "name": "number",
                            "type": "uint256"
                        }
                    ],
                    "name": "takerAccount",
                    "type": "tuple"
                },
                {
                    "components": [
                        {
                            "name": "sign",
                            "type": "bool"
                        },
                        {
                            "name": "value",
                            "type": "uint128"
                        }
                    ],
                    "name": "oldInputPar",
                    "type": "tuple"
                },
                {
                    "components": [
                        {
                            "name": "sign",
                            "type": "bool"
                        },
                        {
                            "name": "value",
                            "type": "uint128"
                        }
                    ],
                    "name": "newInputPar",
                    "type": "tuple"
                },
                {
                    "components": [
                        {
                            "name": "sign",
                            "type": "bool"
                        },
                        {
                            "name": "value",
                            "type": "uint256"
                        }
                    ],
                    "name": "inputWei",
                    "type": "tuple"
                },
                {
                    "name": "data",
                    "type": "bytes"
                }
            ],
            "name": "getTradeCost",
            "outputs": [
                {
                    "components": [
                        {
                            "name": "sign",
                            "type": "bool"
                        },
                        {
                            "name": "denomination",
                            "type": "uint8"
                        },
                        {
                            "name": "ref",
                            "type": "uint8"
                        },
                        {
                            "name": "value",
                            "type": "uint256"
                        }
                    ],
                    "name": "",
                    "type": "tuple"
                }
            ],
            "payable": false,
            "stateMutability": "nonpayable",
            "type": "function"
        }
    ],
    "networks": {
        "1": {
            "links": {},
            "address": "0xc4E53Af1D56D3B2eF378134A2cA55676be2D0f1b",
            "transactionHash": "0xd0f1aa3ea3826564ea0efdccb89bdac1fe50e8e8c2d684367bc614e8a1a1a4bd"
        }
    }
}
