diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-04-12 01:43:35 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-04-21 04:56:17 +0800 |
commit | 5dd708aae8b2e51fdb3a0a4b551aa1cee4c8dca3 (patch) | |
tree | bc5d313bfb611b8c038646c812b1e1057c9f1c6d | |
parent | 2477ea2fcffcce6f188a107c0618eb866f36452b (diff) | |
download | dexon-sol-tools-5dd708aae8b2e51fdb3a0a4b551aa1cee4c8dca3.tar dexon-sol-tools-5dd708aae8b2e51fdb3a0a4b551aa1cee4c8dca3.tar.gz dexon-sol-tools-5dd708aae8b2e51fdb3a0a4b551aa1cee4c8dca3.tar.bz2 dexon-sol-tools-5dd708aae8b2e51fdb3a0a4b551aa1cee4c8dca3.tar.lz dexon-sol-tools-5dd708aae8b2e51fdb3a0a4b551aa1cee4c8dca3.tar.xz dexon-sol-tools-5dd708aae8b2e51fdb3a0a4b551aa1cee4c8dca3.tar.zst dexon-sol-tools-5dd708aae8b2e51fdb3a0a4b551aa1cee4c8dca3.zip |
Updated public -> external
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 |