@dolomite-exchange/dolomite-margin
Version:
Ethereum Smart Contracts and TypeScript library used for the DolomiteMargin trading protocol
279 lines (278 loc) • 9.57 kB
JSON
{
"contractName": "LiquidatorProxyV4WithGenericTrader",
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "_chainId",
"type": "uint256"
},
{
"internalType": "address",
"name": "_expiryProxy",
"type": "address"
},
{
"internalType": "address",
"name": "_dolomiteMargin",
"type": "address"
},
{
"internalType": "address",
"name": "_liquidatorAssetRegistry",
"type": "address"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"constant": true,
"inputs": [],
"name": "DOLOMITE_MARGIN",
"outputs": [
{
"internalType": "contract IDolomiteMargin",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "EXPIRY",
"outputs": [
{
"internalType": "contract IExpiry",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "LIQUIDATOR_ASSET_REGISTRY",
"outputs": [
{
"internalType": "contract ILiquidatorAssetRegistry",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "chainId",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "contract IDolomiteMargin",
"name": "_dolomiteMargin",
"type": "address"
},
{
"internalType": "uint256",
"name": "_marketId",
"type": "uint256"
}
],
"name": "isIsolationModeMarket",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "number",
"type": "uint256"
}
],
"internalType": "struct Account.Info",
"name": "_solidAccount",
"type": "tuple"
},
{
"components": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "number",
"type": "uint256"
}
],
"internalType": "struct Account.Info",
"name": "_liquidAccount",
"type": "tuple"
},
{
"internalType": "uint256[]",
"name": "_marketIdsPath",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "_inputAmountWei",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_minOutputAmountWei",
"type": "uint256"
},
{
"components": [
{
"internalType": "enum IGenericTraderProxyBase.TraderType",
"name": "traderType",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "makerAccountIndex",
"type": "uint256"
},
{
"internalType": "address",
"name": "trader",
"type": "address"
},
{
"internalType": "bytes",
"name": "tradeData",
"type": "bytes"
}
],
"internalType": "struct IGenericTraderProxyBase.TraderParam[]",
"name": "_tradersPath",
"type": "tuple[]"
},
{
"components": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "number",
"type": "uint256"
}
],
"internalType": "struct Account.Info[]",
"name": "_makerAccounts",
"type": "tuple[]"
},
{
"internalType": "uint256",
"name": "_expiry",
"type": "uint256"
}
],
"name": "liquidate",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"networks": {
"1": {
"links": {},
"address": "0x2aDeAFd960366411215ce8706C1aFE2853C5487B",
"transactionHash": "0x4a0dfd0f35c0d84903479d2b73d3fef4072b124d8fbd02bde92cdab24a37b41d"
},
"196": {
"links": {},
"address": "0x17C57C98B666bac9F3DCE4033180190fe923F13d",
"transactionHash": "0x45fed8a978163ffd691ccd0e671cb74834455d5a77ae368b4ca6fa840bcb7205"
},
"1101": {
"links": {},
"address": "0x227455c3e636B0FCC9D37f3EfA2Cd5AF7a812141",
"transactionHash": "0x1834ea1dd1f7f7c34d68d3cf7dac89f0e913f7e3be50651ab5c49d331e11eada"
},
"3637": {
"links": {},
"address": "0x2aDeAFd960366411215ce8706C1aFE2853C5487B",
"transactionHash": "0x8d1694d585d8627e3b9e99f7cd6aa11396e92315b5a8ae3fe979d77caa4d91b4"
},
"5000": {
"links": {},
"address": "0x22dd9f4393a3cc698D6C09AD14B0b9D515084FC7",
"transactionHash": "0xa89a6a16f13378a47ca97ca6abbc112d590c8922f8010d1967c3d8271bb6f911"
},
"5330": {
"links": {},
"address": "0x2aDeAFd960366411215ce8706C1aFE2853C5487B",
"transactionHash": "0xc60b37154655447684b0020cdc987a463894c923bc304f47c6e5d96e04c83be1"
},
"8453": {
"links": {},
"address": "0x2aDeAFd960366411215ce8706C1aFE2853C5487B",
"transactionHash": "0xe444c90a39e1957712b140e72c1a5ce5921f85cd2a48a56d894f90975aecf5ca"
},
"42161": {
"links": {},
"address": "0x6c75D62Fe0d4E584AB6248Cd0121D28A4cb6220a",
"transactionHash": "0xe0acafce0d507581e0eedeca884ffe3ff6b6d88a174be34eba502f837e62fa93"
},
"57073": {
"links": {},
"address": "0x2aDeAFd960366411215ce8706C1aFE2853C5487B",
"transactionHash": "0xf2562ba1bb2597b5e861dceedf278911c65384dcfa5185b99b17c67e9e9df1fb"
},
"80094": {
"links": {},
"address": "0x2aDeAFd960366411215ce8706C1aFE2853C5487B",
"transactionHash": "0x5647bceeb840eaf719e10864e6cbb1734de1aef8be5d2b410b4c5a8f5eb49170"
}
}
}