@0x/contracts-asset-proxy: Merge ERC20Bridge into IERC20Bridge.
				
					
				
			This commit is contained in:
		| @@ -1,30 +0,0 @@ | |||||||
| /* |  | ||||||
|  |  | ||||||
|   Copyright 2019 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.5.9; |  | ||||||
| pragma experimental ABIEncoderV2; |  | ||||||
|  |  | ||||||
| import "../interfaces/IERC20Bridge.sol"; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| contract ERC20Bridge is |  | ||||||
|     IERC20Bridge |  | ||||||
| { |  | ||||||
|     // @dev Result of a successful bridge call. |  | ||||||
|     bytes4 constant internal BRIDGE_SUCCESS = 0xdc1600f3; |  | ||||||
| } |  | ||||||
| @@ -19,7 +19,10 @@ | |||||||
| pragma solidity ^0.5.9; | pragma solidity ^0.5.9; | ||||||
|  |  | ||||||
|  |  | ||||||
| interface IERC20Bridge { | contract IERC20Bridge { | ||||||
|  |  | ||||||
|  |     // @dev Result of a successful bridge call. | ||||||
|  |     bytes4 constant internal BRIDGE_SUCCESS = 0xdc1600f3; | ||||||
|  |  | ||||||
|     /// @dev Transfers `amount` of the ERC20 `tokenAddress` from `from` to `to`. |     /// @dev Transfers `amount` of the ERC20 `tokenAddress` from `from` to `to`. | ||||||
|     /// @param tokenAddress The address of the ERC20 token to transfer. |     /// @param tokenAddress The address of the ERC20 token to transfer. | ||||||
|   | |||||||
| @@ -19,7 +19,7 @@ | |||||||
| pragma solidity ^0.5.9; | pragma solidity ^0.5.9; | ||||||
| pragma experimental ABIEncoderV2; | pragma experimental ABIEncoderV2; | ||||||
|  |  | ||||||
| import "../src/bridges/ERC20Bridge.sol"; | import "../src/interfaces/IERC20Bridge.sol"; | ||||||
|  |  | ||||||
|  |  | ||||||
| /// @dev Test bridge token | /// @dev Test bridge token | ||||||
| @@ -50,7 +50,7 @@ contract TestERC20BridgeToken { | |||||||
|  |  | ||||||
| /// @dev Test bridge contract. | /// @dev Test bridge contract. | ||||||
| contract TestERC20Bridge is | contract TestERC20Bridge is | ||||||
|     ERC20Bridge |     IERC20Bridge | ||||||
| { | { | ||||||
|     TestERC20BridgeToken public testToken; |     TestERC20BridgeToken public testToken; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -35,7 +35,7 @@ | |||||||
|         "compile:truffle": "truffle compile" |         "compile:truffle": "truffle compile" | ||||||
|     }, |     }, | ||||||
|     "config": { |     "config": { | ||||||
|         "abis": "./generated-artifacts/@(ERC1155Proxy|ERC20Bridge|ERC20BridgeProxy|ERC20Proxy|ERC721Proxy|IAssetData|IAssetProxy|IAssetProxyDispatcher|IAuthorizable|IERC20Bridge|MixinAssetProxyDispatcher|MixinAuthorizable|MultiAssetProxy|Ownable|StaticCallProxy|TestERC20Bridge|TestStaticCallTarget).json", |         "abis": "./generated-artifacts/@(ERC1155Proxy|ERC20BridgeProxy|ERC20Proxy|ERC721Proxy|IAssetData|IAssetProxy|IAssetProxyDispatcher|IAuthorizable|IERC20Bridge|MixinAssetProxyDispatcher|MixinAuthorizable|MultiAssetProxy|Ownable|StaticCallProxy|TestERC20Bridge|TestStaticCallTarget).json", | ||||||
|         "abis:comment": "This list is auto-generated by contracts-gen. Don't edit manually." |         "abis:comment": "This list is auto-generated by contracts-gen. Don't edit manually." | ||||||
|     }, |     }, | ||||||
|     "repository": { |     "repository": { | ||||||
|   | |||||||
| @@ -6,7 +6,6 @@ | |||||||
| import { ContractArtifact } from 'ethereum-types'; | import { ContractArtifact } from 'ethereum-types'; | ||||||
|  |  | ||||||
| import * as ERC1155Proxy from '../generated-artifacts/ERC1155Proxy.json'; | import * as ERC1155Proxy from '../generated-artifacts/ERC1155Proxy.json'; | ||||||
| import * as ERC20Bridge from '../generated-artifacts/ERC20Bridge.json'; |  | ||||||
| import * as ERC20BridgeProxy from '../generated-artifacts/ERC20BridgeProxy.json'; | import * as ERC20BridgeProxy from '../generated-artifacts/ERC20BridgeProxy.json'; | ||||||
| import * as ERC20Proxy from '../generated-artifacts/ERC20Proxy.json'; | import * as ERC20Proxy from '../generated-artifacts/ERC20Proxy.json'; | ||||||
| import * as ERC721Proxy from '../generated-artifacts/ERC721Proxy.json'; | import * as ERC721Proxy from '../generated-artifacts/ERC721Proxy.json'; | ||||||
| @@ -32,7 +31,6 @@ export const artifacts = { | |||||||
|     ERC721Proxy: ERC721Proxy as ContractArtifact, |     ERC721Proxy: ERC721Proxy as ContractArtifact, | ||||||
|     MultiAssetProxy: MultiAssetProxy as ContractArtifact, |     MultiAssetProxy: MultiAssetProxy as ContractArtifact, | ||||||
|     StaticCallProxy: StaticCallProxy as ContractArtifact, |     StaticCallProxy: StaticCallProxy as ContractArtifact, | ||||||
|     ERC20Bridge: ERC20Bridge as ContractArtifact, |  | ||||||
|     IAssetData: IAssetData as ContractArtifact, |     IAssetData: IAssetData as ContractArtifact, | ||||||
|     IAssetProxy: IAssetProxy as ContractArtifact, |     IAssetProxy: IAssetProxy as ContractArtifact, | ||||||
|     IAssetProxyDispatcher: IAssetProxyDispatcher as ContractArtifact, |     IAssetProxyDispatcher: IAssetProxyDispatcher as ContractArtifact, | ||||||
|   | |||||||
| @@ -4,7 +4,6 @@ | |||||||
|  * ----------------------------------------------------------------------------- |  * ----------------------------------------------------------------------------- | ||||||
|  */ |  */ | ||||||
| export * from '../generated-wrappers/erc1155_proxy'; | export * from '../generated-wrappers/erc1155_proxy'; | ||||||
| export * from '../generated-wrappers/erc20_bridge'; |  | ||||||
| export * from '../generated-wrappers/erc20_bridge_proxy'; | export * from '../generated-wrappers/erc20_bridge_proxy'; | ||||||
| export * from '../generated-wrappers/erc20_proxy'; | export * from '../generated-wrappers/erc20_proxy'; | ||||||
| export * from '../generated-wrappers/erc721_proxy'; | export * from '../generated-wrappers/erc721_proxy'; | ||||||
|   | |||||||
| @@ -4,7 +4,6 @@ | |||||||
|     "include": ["./src/**/*", "./test/**/*", "./generated-wrappers/**/*"], |     "include": ["./src/**/*", "./test/**/*", "./generated-wrappers/**/*"], | ||||||
|     "files": [ |     "files": [ | ||||||
|         "generated-artifacts/ERC1155Proxy.json", |         "generated-artifacts/ERC1155Proxy.json", | ||||||
|         "generated-artifacts/ERC20Bridge.json", |  | ||||||
|         "generated-artifacts/ERC20BridgeProxy.json", |         "generated-artifacts/ERC20BridgeProxy.json", | ||||||
|         "generated-artifacts/ERC20Proxy.json", |         "generated-artifacts/ERC20Proxy.json", | ||||||
|         "generated-artifacts/ERC721Proxy.json", |         "generated-artifacts/ERC721Proxy.json", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user