aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src/contracts/current/protocol/AssetProxy/mixins/MAuthorizable.sol
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-05-08 02:20:53 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-05-08 02:20:53 +0800
commit7e7364fc83167677594f246b418fe939b1b02f2a (patch)
tree84c3f55589320ac7ef9a4698ac9e0b52a767d337 /packages/contracts/src/contracts/current/protocol/AssetProxy/mixins/MAuthorizable.sol
parent395d06042707892bcb74cb7a0e2897c628e5c903 (diff)
downloaddexon-sol-tools-7e7364fc83167677594f246b418fe939b1b02f2a.tar
dexon-sol-tools-7e7364fc83167677594f246b418fe939b1b02f2a.tar.gz
dexon-sol-tools-7e7364fc83167677594f246b418fe939b1b02f2a.tar.bz2
dexon-sol-tools-7e7364fc83167677594f246b418fe939b1b02f2a.tar.lz
dexon-sol-tools-7e7364fc83167677594f246b418fe939b1b02f2a.tar.xz
dexon-sol-tools-7e7364fc83167677594f246b418fe939b1b02f2a.tar.zst
dexon-sol-tools-7e7364fc83167677594f246b418fe939b1b02f2a.zip
Move Authorizable to AssetProxy dir, rename to MixinAuthorizable
Diffstat (limited to 'packages/contracts/src/contracts/current/protocol/AssetProxy/mixins/MAuthorizable.sol')
-rw-r--r--packages/contracts/src/contracts/current/protocol/AssetProxy/mixins/MAuthorizable.sol42
1 files changed, 42 insertions, 0 deletions
diff --git a/packages/contracts/src/contracts/current/protocol/AssetProxy/mixins/MAuthorizable.sol b/packages/contracts/src/contracts/current/protocol/AssetProxy/mixins/MAuthorizable.sol
new file mode 100644
index 000000000..71d1910e5
--- /dev/null
+++ b/packages/contracts/src/contracts/current/protocol/AssetProxy/mixins/MAuthorizable.sol
@@ -0,0 +1,42 @@
+/*
+
+ Copyright 2018 ZeroEx Intl.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+*/
+
+pragma solidity ^0.4.23;
+pragma experimental ABIEncoderV2;
+
+import "../interfaces/IAuthorizable.sol";
+
+contract MAuthorizable is
+ IAuthorizable
+{
+
+ // Event logged when a new address is authorized.
+ event AuthorizedAddressAdded(
+ address indexed target,
+ address indexed caller
+ );
+
+ // Event logged when a currently authorized address is unauthorized.
+ event AuthorizedAddressRemoved(
+ address indexed target,
+ address indexed caller
+ );
+
+ /// @dev Only authorized addresses can invoke functions with this modifier.
+ modifier onlyAuthorized { _; }
+}