2022-06-30 23:43:20 +00:00
|
|
|
//SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.7.0;
|
|
|
|
|
|
|
|
contract Events {
|
2022-07-06 13:40:38 +00:00
|
|
|
event LogDeposit(
|
|
|
|
uint256 subaccount,
|
|
|
|
address token,
|
|
|
|
uint256 amount,
|
|
|
|
bool enableCollateral,
|
|
|
|
uint256 getId,
|
|
|
|
uint256 setId
|
|
|
|
);
|
2022-06-30 23:43:20 +00:00
|
|
|
|
2022-07-06 13:40:38 +00:00
|
|
|
event LogWithdraw(
|
|
|
|
uint256 subaccount,
|
|
|
|
address token,
|
|
|
|
uint256 amount,
|
|
|
|
uint256 getId,
|
|
|
|
uint256 setId
|
|
|
|
);
|
2022-06-30 23:43:20 +00:00
|
|
|
|
2022-07-06 13:40:38 +00:00
|
|
|
event LogBorrow(
|
|
|
|
uint256 subAccount,
|
|
|
|
address token,
|
|
|
|
uint256 amount,
|
|
|
|
uint256 getId,
|
|
|
|
uint256 setId
|
|
|
|
);
|
2022-06-30 23:43:20 +00:00
|
|
|
|
2022-07-06 13:40:38 +00:00
|
|
|
event LogRepay(
|
|
|
|
uint256 subAccount,
|
|
|
|
address token,
|
|
|
|
uint256 amount,
|
|
|
|
uint256 getId,
|
|
|
|
uint256 setId
|
|
|
|
);
|
2022-06-30 23:43:20 +00:00
|
|
|
|
2022-07-06 13:40:38 +00:00
|
|
|
event LogMint(
|
|
|
|
uint256 subAccount,
|
|
|
|
address token,
|
|
|
|
uint256 amount,
|
|
|
|
uint256 getId,
|
|
|
|
uint256 setId
|
|
|
|
);
|
2022-06-30 23:43:20 +00:00
|
|
|
|
2022-07-06 13:40:38 +00:00
|
|
|
event LogBurn(
|
|
|
|
uint256 subAccount,
|
|
|
|
address token,
|
|
|
|
uint256 amount,
|
|
|
|
uint256 getId,
|
|
|
|
uint256 setId
|
|
|
|
);
|
2022-06-30 23:43:20 +00:00
|
|
|
|
2022-07-06 13:40:38 +00:00
|
|
|
event LogETransfer(
|
2022-08-12 18:56:20 +00:00
|
|
|
uint256 subAccountFrom,
|
|
|
|
uint256 subAccountTo,
|
2022-07-06 13:40:38 +00:00
|
|
|
address token,
|
|
|
|
uint256 amount,
|
|
|
|
uint256 getId,
|
|
|
|
uint256 setId
|
|
|
|
);
|
2022-06-30 23:43:20 +00:00
|
|
|
|
2022-07-06 13:40:38 +00:00
|
|
|
event LogDTransfer(
|
2022-08-12 18:56:20 +00:00
|
|
|
uint256 subAccountFrom,
|
|
|
|
uint256 subAccountTo,
|
2022-07-06 13:40:38 +00:00
|
|
|
address token,
|
|
|
|
uint256 amount,
|
|
|
|
uint256 getId,
|
|
|
|
uint256 setId
|
|
|
|
);
|
2022-07-06 01:07:56 +00:00
|
|
|
|
2022-08-12 18:56:20 +00:00
|
|
|
event LogApproveSpenderDebt(
|
2022-07-06 13:40:38 +00:00
|
|
|
uint256 subAccountId,
|
2022-08-12 18:56:20 +00:00
|
|
|
address debtSender,
|
2022-07-06 01:07:56 +00:00
|
|
|
address token,
|
|
|
|
uint256 amount,
|
|
|
|
uint256 setId
|
2022-07-06 13:40:38 +00:00
|
|
|
);
|
2022-07-06 01:07:56 +00:00
|
|
|
|
2022-07-06 13:40:38 +00:00
|
|
|
event LogEnterMarket(uint256 subAccountId, address[] newMarkets);
|
2022-07-06 01:07:56 +00:00
|
|
|
|
2022-07-06 13:40:38 +00:00
|
|
|
event LogExitMarket(uint256 subAccountId, address oldMarket);
|
2022-06-30 23:43:20 +00:00
|
|
|
}
|