Skip to content

Commit

Permalink
Merge pull request #11 from rabbitholegg/art/tweak-create-return
Browse files Browse the repository at this point in the history
feat(Boost): add BoostCreated even
  • Loading branch information
sammccord authored Jul 2, 2024
2 parents 12daea3 + d6f3cb2 commit 4f3ca1d
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion packages/evm/contracts/BoostCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ contract BoostCore is Ownable, ReentrancyGuard {
address owner;
}

event BoostCreated(
uint256 indexed boostIndex,
address indexed owner,
address indexed action,
address validator,
address allowList,
address budget
);

/// @notice The list of boosts
BoostLib.Boost[] private _boosts;

Expand Down Expand Up @@ -106,7 +115,14 @@ contract BoostCore is Ownable, ReentrancyGuard {
? boost.action.supportsInterface(type(Validator).interfaceId) ? address(boost.action) : address(0)
: _makeTarget(type(Validator).interfaceId, payload_.validator, true)
);

emit BoostCreated(
_boosts.length - 1,
boost.owner,
address(boost.action),
address(boost.validator),
address(boost.allowList),
address(boost.budget)
);
return boost;
}

Expand Down

0 comments on commit 4f3ca1d

Please sign in to comment.