const abi = [ { inputs: [], stateMutability: "nonpayable", type: "constructor" }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint8", name: "version", type: "uint8" }, ], name: "Initialized", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "trader", type: "address", }, { indexed: false, internalType: "uint256", name: "pairIndex", type: "uint256", }, { indexed: false, internalType: "uint256", name: "orderId", type: "uint256", }, { indexed: false, internalType: "uint256", name: "timestamp", type: "uint256", }, ], name: "LimitOrderInitiated", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "trader", type: "address", }, { indexed: false, internalType: "uint256", name: "pairIndex", type: "uint256", }, { indexed: false, internalType: "uint256", name: "index", type: "uint256", }, { indexed: false, internalType: "enum ITradingStorage.updateType", name: "_type", type: "uint8", }, { components: [ { internalType: "address", name: "trader", type: "address" }, { internalType: "uint256", name: "pairIndex", type: "uint256" }, { internalType: "uint256", name: "index", type: "uint256" }, { internalType: "uint256", name: "initialPosToken", type: "uint256" }, { internalType: "uint256", name: "positionSizeUSDC", type: "uint256", }, { internalType: "uint256", name: "openPrice", type: "uint256" }, { internalType: "bool", name: "buy", type: "bool" }, { internalType: "uint256", name: "leverage", type: "uint256" }, { internalType: "uint256", name: "tp", type: "uint256" }, { internalType: "uint256", name: "sl", type: "uint256" }, { internalType: "uint256", name: "timestamp", type: "uint256" }, ], indexed: false, internalType: "struct ITradingStorage.Trade", name: "newTrade", type: "tuple", }, { indexed: false, internalType: "uint256", name: "marginFees", type: "uint256", }, { indexed: false, internalType: "uint256", name: "lossProtectionTier", type: "uint256", }, { indexed: false, internalType: "uint256", name: "timestamp", type: "uint256", }, ], name: "MarginUpdated", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "trader", type: "address", }, { indexed: false, internalType: "uint256", name: "pairIndex", type: "uint256", }, { indexed: false, internalType: "bool", name: "open", type: "bool" }, { indexed: false, internalType: "uint256", name: "orderId", type: "uint256", }, { indexed: false, internalType: "uint256", name: "timestamp", type: "uint256", }, { indexed: false, internalType: "bool", name: "isBuy", type: "bool" }, ], name: "MarketOrderInitiated", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "string", name: "name", type: "string" }, { indexed: false, internalType: "uint256", name: "value", type: "uint256", }, ], name: "NumberUpdated", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "trader", type: "address", }, { indexed: false, internalType: "uint256", name: "pairIndex", type: "uint256", }, { indexed: false, internalType: "uint256", name: "index", type: "uint256", }, { indexed: false, internalType: "uint256", name: "timestamp", type: "uint256", }, { indexed: false, internalType: "uint256", name: "collateral", type: "uint256", }, ], name: "OpenLimitCanceled", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "trader", type: "address", }, { indexed: false, internalType: "uint256", name: "pairIndex", type: "uint256", }, { indexed: false, internalType: "uint256", name: "index", type: "uint256", }, { indexed: false, internalType: "bool", name: "isBuy", type: "bool" }, { indexed: false, internalType: "uint256", name: "openPrice", type: "uint256", }, { indexed: false, internalType: "uint256", name: "executionFee", type: "uint256", }, { indexed: false, internalType: "enum IExecute.OpenLimitOrderType", name: "orderType", type: "uint8", }, { indexed: false, internalType: "uint256", name: "slippageP", type: "uint256", }, { indexed: false, internalType: "uint256", name: "collateral", type: "uint256", }, ], name: "OpenLimitPlaced", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "trader", type: "address", }, { indexed: false, internalType: "uint256", name: "pairIndex", type: "uint256", }, { indexed: false, internalType: "uint256", name: "index", type: "uint256", }, { indexed: false, internalType: "uint256", name: "newPrice", type: "uint256", }, { indexed: false, internalType: "uint256", name: "newTp", type: "uint256", }, { indexed: false, internalType: "uint256", name: "newSl", type: "uint256", }, { indexed: false, internalType: "uint256", name: "timestamp", type: "uint256", }, ], name: "OpenLimitUpdated", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "operator", type: "address", }, { indexed: false, internalType: "bool", name: "isOperator", type: "bool", }, ], name: "OperatorUpdated", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "account", type: "address", }, ], name: "Paused", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "trader", type: "address", }, { indexed: false, internalType: "uint256", name: "pairIndex", type: "uint256", }, { indexed: false, internalType: "uint256", name: "index", type: "uint256", }, { indexed: false, internalType: "uint256", name: "newSl", type: "uint256", }, { indexed: false, internalType: "uint256", name: "orderId", type: "uint256", }, { indexed: false, internalType: "uint256", name: "timestamp", type: "uint256", }, ], name: "SlUpdateInitiated", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "trader", type: "address", }, { indexed: false, internalType: "uint256", name: "pairIndex", type: "uint256", }, { indexed: false, internalType: "uint256", name: "index", type: "uint256", }, { indexed: false, internalType: "uint256", name: "newSl", type: "uint256", }, { indexed: false, internalType: "uint256", name: "timestamp", type: "uint256", }, ], name: "SlUpdated", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "trader", type: "address", }, { indexed: false, internalType: "uint256", name: "pairIndex", type: "uint256", }, { indexed: false, internalType: "uint256", name: "index", type: "uint256", }, { indexed: false, internalType: "uint256", name: "newTp", type: "uint256", }, { indexed: false, internalType: "uint256", name: "timestamp", type: "uint256", }, ], name: "TpUpdated", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "account", type: "address", }, ], name: "Unpaused", type: "event", }, { inputs: [], name: "_MAX_SLIPPAGE", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function", }, { inputs: [], name: "__msgSender", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "_pairIndex", type: "uint256" }, { internalType: "uint256", name: "_index", type: "uint256" }, ], name: "cancelOpenLimitOrder", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [{ internalType: "uint256", name: "_id", type: "uint256" }], name: "cancelPendingMarketOrder", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_pairIndex", type: "uint256" }, { internalType: "uint256", name: "_index", type: "uint256" }, { internalType: "uint256", name: "_amount", type: "uint256" }, ], name: "closeTradeMarket", outputs: [{ internalType: "uint256", name: "orderId", type: "uint256" }], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "address", name: "trader", type: "address" }, { internalType: "bytes", name: "call_data", type: "bytes" }, ], name: "delegatedAction", outputs: [{ internalType: "bytes", name: "", type: "bytes" }], stateMutability: "payable", type: "function", }, { inputs: [{ internalType: "address", name: "", type: "address" }], name: "delegations", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "enum ITradingStorage.LimitOrder", name: "_orderType", type: "uint8", }, { internalType: "address", name: "_trader", type: "address" }, { internalType: "uint256", name: "_pairIndex", type: "uint256" }, { internalType: "uint256", name: "_index", type: "uint256" }, { internalType: "bytes[]", name: "priceUpdateData", type: "bytes[]" }, ], name: "executeLimitOrder", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "uint256[]", name: "orderId", type: "uint256[]" }, { internalType: "bytes[]", name: "priceUpdateData", type: "bytes[]" }, ], name: "executeMarketOrders", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "address", name: "_storageT", type: "address" }, { internalType: "address", name: "_pairInfos", type: "address" }, ], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [{ internalType: "address", name: "", type: "address" }], name: "isOperator", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function", }, { inputs: [], name: "limitOrdersTimelock", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "trader", type: "address" }, { internalType: "uint256", name: "pairIndex", type: "uint256" }, { internalType: "uint256", name: "index", type: "uint256" }, { internalType: "uint256", name: "initialPosToken", type: "uint256" }, { internalType: "uint256", name: "positionSizeUSDC", type: "uint256", }, { internalType: "uint256", name: "openPrice", type: "uint256" }, { internalType: "bool", name: "buy", type: "bool" }, { internalType: "uint256", name: "leverage", type: "uint256" }, { internalType: "uint256", name: "tp", type: "uint256" }, { internalType: "uint256", name: "sl", type: "uint256" }, { internalType: "uint256", name: "timestamp", type: "uint256" }, ], internalType: "struct ITradingStorage.Trade", name: "t", type: "tuple", }, { internalType: "enum IExecute.OpenLimitOrderType", name: "_type", type: "uint8", }, { internalType: "uint256", name: "_slippageP", type: "uint256" }, ], name: "openTrade", outputs: [{ internalType: "uint256", name: "orderId", type: "uint256" }], stateMutability: "payable", type: "function", }, { inputs: [], name: "operator", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function", }, { inputs: [], name: "pairInfos", outputs: [ { internalType: "contract IPairInfos", name: "", type: "address" }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "pause", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "paused", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function", }, { inputs: [], name: "removeDelegate", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [{ internalType: "address", name: "delegate", type: "address" }], name: "setDelegate", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [{ internalType: "uint256", name: "_blocks", type: "uint256" }], name: "setLimitOrdersTimelock", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [{ internalType: "address", name: "_reciever", type: "address" }], name: "setMarketExecFeeReciever", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "storageT", outputs: [ { internalType: "contract ITradingStorage", name: "", type: "address" }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "unpause", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_pairIndex", type: "uint256" }, { internalType: "uint256", name: "_index", type: "uint256" }, { internalType: "enum ITradingStorage.updateType", name: "_type", type: "uint8", }, { internalType: "uint256", name: "_amount", type: "uint256" }, { internalType: "bytes[]", name: "priceUpdateData", type: "bytes[]" }, ], name: "updateMargin", outputs: [{ internalType: "uint256", name: "orderId", type: "uint256" }], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_pairIndex", type: "uint256" }, { internalType: "uint256", name: "_index", type: "uint256" }, { internalType: "uint256", name: "_price", type: "uint256" }, { internalType: "uint256", name: "_slippageP", type: "uint256" }, { internalType: "uint256", name: "_tp", type: "uint256" }, { internalType: "uint256", name: "_sl", type: "uint256" }, ], name: "updateOpenLimitOrder", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_operator", type: "address" }, { internalType: "bool", name: "_isOperator", type: "bool" }, ], name: "updateOperator", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_pairIndex", type: "uint256" }, { internalType: "uint256", name: "_index", type: "uint256" }, { internalType: "uint256", name: "_newSl", type: "uint256" }, { internalType: "uint256", name: "_newTP", type: "uint256" }, { internalType: "bytes[]", name: "priceUpdateData", type: "bytes[]" }, ], name: "updateTpAndSl", outputs: [], stateMutability: "payable", type: "function", }, ]; export default abi;