From 5dd708aae8b2e51fdb3a0a4b551aa1cee4c8dca3 Mon Sep 17 00:00:00 2001 From: Greg Hysen Date: Wed, 11 Apr 2018 10:43:35 -0700 Subject: Updated public -> external --- .../current/protocol/AssetProxyDispatcher/AssetProxyDispatcher.sol | 6 +++--- .../contracts/current/protocol/AssetProxyDispatcher/IAssetProxy.sol | 2 +- .../current/protocol/AssetProxyDispatcher/IAssetProxyDispatcher.sol | 4 ++-- .../current/protocol/AssetProxyDispatcher/proxies/ERC20Proxy.sol | 2 +- .../current/protocol/AssetProxyDispatcher/proxies/ERC20Proxy_v1.sol | 2 +- .../current/protocol/AssetProxyDispatcher/proxies/ERC721Proxy.sol | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/AssetProxyDispatcher.sol b/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/AssetProxyDispatcher.sol index e22b88b34..b8a1fb4fe 100644 --- a/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/AssetProxyDispatcher.sol +++ b/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/AssetProxyDispatcher.sol @@ -41,7 +41,7 @@ contract AssetProxyDispatcher is address from, address to, uint256 amount) - public + external onlyAuthorized { // Lookup asset proxy @@ -62,7 +62,7 @@ contract AssetProxyDispatcher is uint8 assetProxyId, address newAssetProxyAddress, address currentAssetProxyAddress) - public + external onlyOwner { // Ensure any existing asset proxy is not unintentionally overwritten @@ -77,7 +77,7 @@ contract AssetProxyDispatcher is /// @param assetProxyId Id of the asset proxy. /// @return The asset proxy registered to assetProxyId. Returns 0x0 if no proxy is registered. function getAssetProxy(uint8 assetProxyId) - public view + external view returns (IAssetProxy) { IAssetProxy assetProxy = assetProxies[assetProxyId]; diff --git a/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/IAssetProxy.sol b/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/IAssetProxy.sol index 5c5f7e605..528915227 100644 --- a/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/IAssetProxy.sol +++ b/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/IAssetProxy.sol @@ -30,5 +30,5 @@ contract IAssetProxy { address from, address to, uint256 amount) - public; + external; } diff --git a/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/IAssetProxyDispatcher.sol b/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/IAssetProxyDispatcher.sol index 61527a3ce..fcd1d2d65 100644 --- a/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/IAssetProxyDispatcher.sol +++ b/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/IAssetProxyDispatcher.sol @@ -38,12 +38,12 @@ contract IAssetProxyDispatcher is uint8 assetProxyId, address newAssetProxyAddress, address currentAssetProxyAddress) - public; + external; /// @dev Gets an asset proxy. /// @param assetProxyId Id of the asset proxy. /// @return The asset proxy registered to assetProxyId. Returns 0x0 if no proxy is registered. function getAssetProxy(uint8 assetProxyId) - public view + external view returns (IAssetProxy); } diff --git a/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC20Proxy.sol b/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC20Proxy.sol index a471d5812..53fc64b69 100644 --- a/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC20Proxy.sol +++ b/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC20Proxy.sol @@ -39,7 +39,7 @@ contract ERC20Proxy is address from, address to, uint256 amount) - public + external onlyAuthorized { address token = decodeMetadata(assetMetadata); diff --git a/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC20Proxy_v1.sol b/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC20Proxy_v1.sol index e83a92284..ee4acce91 100644 --- a/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC20Proxy_v1.sol +++ b/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC20Proxy_v1.sol @@ -48,7 +48,7 @@ contract ERC20Proxy_v1 is address from, address to, uint256 amount) - public + external onlyAuthorized { address token = decodeMetadata(assetMetadata); diff --git a/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC721Proxy.sol b/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC721Proxy.sol index 9b920b79c..d4c548e62 100644 --- a/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC721Proxy.sol +++ b/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC721Proxy.sol @@ -39,7 +39,7 @@ contract ERC721Proxy is address from, address to, uint256 amount) - public + external onlyAuthorized { // No work to do -- cgit