pragma solidity ^0.6.0; import { OneProtoData, OneProtoMultiData, OneInchData} from "../../common/interfaces.sol"; import { Stores } from "../../common/stores.sol"; contract Events is Stores { event LogSell( address indexed buyToken, address indexed sellToken, uint256 buyAmt, uint256 sellAmt, uint256 getId, uint256 setId ); function emitLogSell( OneProtoData memory oneProtoData, uint256 getId, uint256 setId ) internal { emit LogSell( address(oneProtoData.buyToken), address(oneProtoData.sellToken), oneProtoData._buyAmt, oneProtoData._sellAmt, getId, setId ); } event LogSellTwo( address indexed buyToken, address indexed sellToken, uint256 buyAmt, uint256 sellAmt, uint256 getId, uint256 setId ); function emitLogSellTwo( OneProtoData memory oneProtoData, uint256 getId, uint256 setId ) internal { emit LogSellTwo( address(oneProtoData.buyToken), address(oneProtoData.sellToken), oneProtoData._buyAmt, oneProtoData._sellAmt, getId, setId ); } event LogSellMulti( address[] tokens, address indexed buyToken, address indexed sellToken, uint256 buyAmt, uint256 sellAmt, uint256 getId, uint256 setId ); function emitLogSellMulti( OneProtoMultiData memory oneProtoData, uint256 getId, uint256 setId ) internal { emit LogSellMulti( oneProtoData.tokens, address(oneProtoData.buyToken), address(oneProtoData.sellToken), oneProtoData._buyAmt, oneProtoData._sellAmt, getId, setId ); } event LogSellThree( address indexed buyToken, address indexed sellToken, uint256 buyAmt, uint256 sellAmt, uint256 getId, uint256 setId ); function emitLogSellThree( OneInchData memory oneInchData, uint256 setId ) internal { emit LogSellThree( address(oneInchData.buyToken), address(oneInchData.sellToken), oneInchData._buyAmt, oneInchData._sellAmt, 0, setId ); } }