Skip to content

Commit

Permalink
Pranav/global extensions emit events (#19)
Browse files Browse the repository at this point in the history
* use emit keyword in global extension events

* bump package version v0.0.6
  • Loading branch information
pblivin0x authored Mar 14, 2022
1 parent 9c93c2e commit 6d52378
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions contracts/extensions/IssuanceExtension.sol
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ contract IssuanceExtension is BaseGlobalExtension {

_initializeExtension(setToken, _delegatedManager);

IssuanceExtensionInitialized(address(setToken), address(_delegatedManager));
emit IssuanceExtensionInitialized(address(setToken), address(_delegatedManager));
}

/**
Expand Down Expand Up @@ -187,7 +187,7 @@ contract IssuanceExtension is BaseGlobalExtension {
_managerIssuanceHook
);

IssuanceExtensionInitialized(address(setToken), address(_delegatedManager));
emit IssuanceExtensionInitialized(address(setToken), address(_delegatedManager));
}

/**
Expand Down
4 changes: 2 additions & 2 deletions contracts/extensions/StreamingFeeSplitExtension.sol
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ contract StreamingFeeSplitExtension is BaseGlobalExtension {

_initializeExtension(setToken, _delegatedManager);

StreamingFeeSplitExtensionInitialized(address(setToken), address(_delegatedManager));
emit StreamingFeeSplitExtensionInitialized(address(setToken), address(_delegatedManager));
}

/**
Expand All @@ -158,7 +158,7 @@ contract StreamingFeeSplitExtension is BaseGlobalExtension {
_initializeExtension(setToken, _delegatedManager);
_initializeModule(setToken, _delegatedManager, _settings);

StreamingFeeSplitExtensionInitialized(address(setToken), address(_delegatedManager));
emit StreamingFeeSplitExtensionInitialized(address(setToken), address(_delegatedManager));
}

/**
Expand Down
4 changes: 2 additions & 2 deletions contracts/extensions/TradeExtension.sol
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ contract TradeExtension is BaseGlobalExtension {

_initializeExtension(setToken, _delegatedManager);

TradeExtensionInitialized(address(setToken), address(_delegatedManager));
emit TradeExtensionInitialized(address(setToken), address(_delegatedManager));
}

/**
Expand All @@ -95,7 +95,7 @@ contract TradeExtension is BaseGlobalExtension {
_initializeExtension(setToken, _delegatedManager);
_initializeModule(setToken, _delegatedManager);

TradeExtensionInitialized(address(setToken), address(_delegatedManager));
emit TradeExtensionInitialized(address(setToken), address(_delegatedManager));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/BaseGlobalExtension.sol
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,6 @@ abstract contract BaseGlobalExtension {

delete setManagers[setToken];

ExtensionRemoved(address(setToken), address(delegatedManager));
emit ExtensionRemoved(address(setToken), address(delegatedManager));
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@setprotocol/set-v2-strategies",
"version": "0.0.5",
"version": "0.0.6",
"description": "",
"main": "dist",
"types": "dist/types",
Expand Down

0 comments on commit 6d52378

Please sign in to comment.