Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix formatting #223

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 26 additions & 19 deletions contracts/Aavegotchi/WearableDiamond/facets/EventHandlerFacet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,45 @@ import {LibEventHandler} from "../libraries/LibEventHandler.sol";
import {WearableLibDiamond} from "../libraries/WearableLibDiamond.sol";

contract EventHandlerFacet {
function emitApprovalEvent(
address _account,
address _operator,
bool _approved
) external {
///@notice Emit the standard ERC1155 Approval event
///@dev Only callable via the Aavegotchi Diamond
///@param _account The account that is approving an operator
///@param _operator The account that is being approved as an operator
///@param _approved Whether or not the operator is being approved
function emitApprovalEvent(address _account, address _operator, bool _approved) external {
WearableLibDiamond.enforceIsDiamond();
LibEventHandler._receiveAndEmitApprovalEvent(_account, _operator, _approved);
}

///@notice Emit the standard ERC1155 URI event
///@dev Only callable via the Aavegotchi Diamond
///@param _value The URI value
///@param _id The token ID whose uri is being set/changed
function emitUriEvent(string memory _value, uint256 _id) external {
WearableLibDiamond.enforceIsDiamond();
LibEventHandler._receiveAndEmitUriEvent(_value, _id);
}

function emitTransferSingleEvent(
address _operator,
address _from,
address _to,
uint256 _id,
uint256 _value
) external {
///@notice Emit the standard ERC1155 TransferSingle event
///@dev Only callable via the Aavegotchi Diamond
///@param _operator The address performing the operation
///@param _from The address from which the token is being transferred
///@param _to The address to which the token is being transferred
///@param _id The ID of the token being transferred
///@param _value The amount of tokens being transferred
function emitTransferSingleEvent(address _operator, address _from, address _to, uint256 _id, uint256 _value) external {
WearableLibDiamond.enforceIsDiamond();
LibEventHandler._receiveAndEmitTransferSingleEvent(_operator, _from, _to, _id, _value);
}

function emitTransferBatchEvent(
address _operator,
address _from,
address _to,
uint256[] calldata _ids,
uint256[] calldata _values
) external {
///@notice Emit the standard ERC1155 TransferBatch event
///@dev Only callable via the Aavegotchi Diamond
///@param _operator The address performing the operation
///@param _from The address from which the token is being transferred
///@param _to The address to which the token is being transferred
///@param _ids An array containing the IDs of the tokens being transferred
///@param _values An array containing the amounts of tokens being transferred
function emitTransferBatchEvent(address _operator, address _from, address _to, uint256[] calldata _ids, uint256[] calldata _values) external {
WearableLibDiamond.enforceIsDiamond();
LibEventHandler._receiveAndEmitTransferBatchEvent(_operator, _from, _to, _ids, _values);
}
Expand Down