From 6d52378629310f26d0ab22a0632cee96563edf0f Mon Sep 17 00:00:00 2001 From: Pranav Bhardwaj <84149824+pblivin0x@users.noreply.github.com> Date: Mon, 14 Mar 2022 14:09:30 -0400 Subject: [PATCH] Pranav/global extensions emit events (#19) * use emit keyword in global extension events * bump package version v0.0.6 --- contracts/extensions/IssuanceExtension.sol | 4 ++-- contracts/extensions/StreamingFeeSplitExtension.sol | 4 ++-- contracts/extensions/TradeExtension.sol | 4 ++-- contracts/lib/BaseGlobalExtension.sol | 2 +- package.json | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/contracts/extensions/IssuanceExtension.sol b/contracts/extensions/IssuanceExtension.sol index 0405ba2..44797b0 100644 --- a/contracts/extensions/IssuanceExtension.sol +++ b/contracts/extensions/IssuanceExtension.sol @@ -148,7 +148,7 @@ contract IssuanceExtension is BaseGlobalExtension { _initializeExtension(setToken, _delegatedManager); - IssuanceExtensionInitialized(address(setToken), address(_delegatedManager)); + emit IssuanceExtensionInitialized(address(setToken), address(_delegatedManager)); } /** @@ -187,7 +187,7 @@ contract IssuanceExtension is BaseGlobalExtension { _managerIssuanceHook ); - IssuanceExtensionInitialized(address(setToken), address(_delegatedManager)); + emit IssuanceExtensionInitialized(address(setToken), address(_delegatedManager)); } /** diff --git a/contracts/extensions/StreamingFeeSplitExtension.sol b/contracts/extensions/StreamingFeeSplitExtension.sol index a1e455a..2cf88fa 100644 --- a/contracts/extensions/StreamingFeeSplitExtension.sol +++ b/contracts/extensions/StreamingFeeSplitExtension.sol @@ -135,7 +135,7 @@ contract StreamingFeeSplitExtension is BaseGlobalExtension { _initializeExtension(setToken, _delegatedManager); - StreamingFeeSplitExtensionInitialized(address(setToken), address(_delegatedManager)); + emit StreamingFeeSplitExtensionInitialized(address(setToken), address(_delegatedManager)); } /** @@ -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)); } /** diff --git a/contracts/extensions/TradeExtension.sol b/contracts/extensions/TradeExtension.sol index 010f33b..168499f 100644 --- a/contracts/extensions/TradeExtension.sol +++ b/contracts/extensions/TradeExtension.sol @@ -79,7 +79,7 @@ contract TradeExtension is BaseGlobalExtension { _initializeExtension(setToken, _delegatedManager); - TradeExtensionInitialized(address(setToken), address(_delegatedManager)); + emit TradeExtensionInitialized(address(setToken), address(_delegatedManager)); } /** @@ -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)); } /** diff --git a/contracts/lib/BaseGlobalExtension.sol b/contracts/lib/BaseGlobalExtension.sol index e631700..427c569 100644 --- a/contracts/lib/BaseGlobalExtension.sol +++ b/contracts/lib/BaseGlobalExtension.sol @@ -155,6 +155,6 @@ abstract contract BaseGlobalExtension { delete setManagers[setToken]; - ExtensionRemoved(address(setToken), address(delegatedManager)); + emit ExtensionRemoved(address(setToken), address(delegatedManager)); } } \ No newline at end of file diff --git a/package.json b/package.json index 7a18866..c5ac3ed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@setprotocol/set-v2-strategies", - "version": "0.0.5", + "version": "0.0.6", "description": "", "main": "dist", "types": "dist/types",