@perp/curie-deployments
Version:
Perpetual Protocol Curie (v2) contract artifacts (ABIs) and deployed addresses
446 lines (445 loc) • 10.5 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "IOtcMaker",
"sourceName": "contracts/interface/IOtcMaker.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "oldCaller",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "newCaller",
"type": "address"
}
],
"name": "CallerUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "oldFundOwner",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "newFundOwner",
"type": "address"
}
],
"name": "FundOwnerUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "oldPositionManager",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "newPositionManager",
"type": "address"
}
],
"name": "PositionManagerUpdated",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "merkleRedeem",
"type": "address"
},
{
"internalType": "address",
"name": "liquidityProvider",
"type": "address"
},
{
"internalType": "uint256",
"name": "week",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "claimedBalance",
"type": "uint256"
},
{
"internalType": "bytes32[]",
"name": "_merkleProof",
"type": "bytes32[]"
}
],
"name": "claimWeek",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "deposit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getCaller",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getClearingHouse",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getFundOwner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getLimitOrderBook",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getMarginRatioLimit",
"outputs": [
{
"internalType": "uint24",
"name": "",
"type": "uint24"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getPositionManager",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "isMarginSufficient",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "baseToken",
"type": "address"
},
{
"internalType": "bool",
"name": "isBaseToQuote",
"type": "bool"
},
{
"internalType": "bool",
"name": "isExactInput",
"type": "bool"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "oppositeAmountBound",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
},
{
"internalType": "uint160",
"name": "sqrtPriceLimitX96",
"type": "uint160"
},
{
"internalType": "bytes32",
"name": "referralCode",
"type": "bytes32"
}
],
"internalType": "struct IClearingHouse.OpenPositionParams",
"name": "params",
"type": "tuple"
}
],
"name": "openPosition",
"outputs": [
{
"internalType": "uint256",
"name": "base",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "quote",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "enum ILimitOrderBook.OrderType",
"name": "orderType",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "salt",
"type": "uint256"
},
{
"internalType": "address",
"name": "trader",
"type": "address"
},
{
"internalType": "address",
"name": "baseToken",
"type": "address"
},
{
"internalType": "bool",
"name": "isBaseToQuote",
"type": "bool"
},
{
"internalType": "bool",
"name": "isExactInput",
"type": "bool"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "oppositeAmountBound",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
},
{
"internalType": "uint160",
"name": "sqrtPriceLimitX96",
"type": "uint160"
},
{
"internalType": "bytes32",
"name": "referralCode",
"type": "bytes32"
},
{
"internalType": "bool",
"name": "reduceOnly",
"type": "bool"
},
{
"internalType": "uint80",
"name": "roundIdWhenCreated",
"type": "uint80"
},
{
"internalType": "uint256",
"name": "triggerPrice",
"type": "uint256"
}
],
"internalType": "struct ILimitOrderBook.LimitOrder",
"name": "limitOrderParams",
"type": "tuple"
},
{
"components": [
{
"internalType": "uint256",
"name": "liquidityBase",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "liquidityQuote",
"type": "uint256"
},
{
"internalType": "int24",
"name": "lowerTick",
"type": "int24"
},
{
"internalType": "int24",
"name": "upperTick",
"type": "int24"
},
{
"internalType": "uint256",
"name": "minLiquidityBase",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minLiquidityQuote",
"type": "uint256"
}
],
"internalType": "struct IOtcMakerStruct.JitLiquidityParams",
"name": "jitLiquidityParams",
"type": "tuple"
},
{
"internalType": "bytes",
"name": "signature",
"type": "bytes"
}
],
"name": "openPositionFor",
"outputs": [
{
"internalType": "int256",
"name": "exchangedPositionSize",
"type": "int256"
},
{
"internalType": "int256",
"name": "exchangedPositionNotional",
"type": "int256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "withdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"name": "withdrawToken",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}