UNPKG

@dolomite-exchange/dolomite-margin

Version:

Ethereum Smart Contracts and TypeScript library used for the DolomiteMargin trading protocol

282 lines (281 loc) 9.78 kB
{ "contractName": "IIsolationModeWrapperTrader", "abi": [ { "constant": false, "inputs": [ { "internalType": "address", "name": "_tradeOriginator", "type": "address" }, { "internalType": "address", "name": "_receiver", "type": "address" }, { "internalType": "address", "name": "_makerToken", "type": "address" }, { "internalType": "address", "name": "_takerToken", "type": "address" }, { "internalType": "uint256", "name": "_requestedFillAmount", "type": "uint256" }, { "internalType": "bytes", "name": "_orderData", "type": "bytes" } ], "name": "exchange", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "_makerToken", "type": "address" }, { "internalType": "address", "name": "_takerToken", "type": "address" }, { "internalType": "uint256", "name": "_desiredMakerToken", "type": "uint256" }, { "internalType": "bytes", "name": "_orderData", "type": "bytes" } ], "name": "getExchangeCost", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "token", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "_inputToken", "type": "address" } ], "name": "isValidInputToken", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "actionsLength", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": true, "inputs": [ { "components": [ { "internalType": "uint256", "name": "primaryAccountId", "type": "uint256" }, { "internalType": "uint256", "name": "otherAccountId", "type": "uint256" }, { "internalType": "address", "name": "primaryAccountOwner", "type": "address" }, { "internalType": "uint256", "name": "primaryAccountNumber", "type": "uint256" }, { "internalType": "address", "name": "otherAccountOwner", "type": "address" }, { "internalType": "uint256", "name": "otherAccountNumber", "type": "uint256" }, { "internalType": "uint256", "name": "outputMarket", "type": "uint256" }, { "internalType": "uint256", "name": "inputMarket", "type": "uint256" }, { "internalType": "uint256", "name": "minOutputAmount", "type": "uint256" }, { "internalType": "uint256", "name": "inputAmount", "type": "uint256" }, { "internalType": "bytes", "name": "orderData", "type": "bytes" } ], "internalType": "struct IIsolationModeWrapperTrader.CreateActionsForWrappingParams", "name": "_params", "type": "tuple" } ], "name": "createActionsForWrapping", "outputs": [ { "components": [ { "internalType": "enum Actions.ActionType", "name": "actionType", "type": "uint8" }, { "internalType": "uint256", "name": "accountId", "type": "uint256" }, { "components": [ { "internalType": "bool", "name": "sign", "type": "bool" }, { "internalType": "enum Types.AssetDenomination", "name": "denomination", "type": "uint8" }, { "internalType": "enum Types.AssetReference", "name": "ref", "type": "uint8" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "internalType": "struct Types.AssetAmount", "name": "amount", "type": "tuple" }, { "internalType": "uint256", "name": "primaryMarketId", "type": "uint256" }, { "internalType": "uint256", "name": "secondaryMarketId", "type": "uint256" }, { "internalType": "address", "name": "otherAddress", "type": "address" }, { "internalType": "uint256", "name": "otherAccountId", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "internalType": "struct Actions.ActionArgs[]", "name": "", "type": "tuple[]" } ], "payable": false, "stateMutability": "view", "type": "function" } ], "networks": {} }