Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
@0x/contracts-asset-proxy: Merge ERC20Bridge into IERC20Bridge.
Browse files Browse the repository at this point in the history
  • Loading branch information
dorothy-zbornak committed Oct 1, 2019
1 parent 579dba1 commit 6da48be
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 38 deletions.
30 changes: 0 additions & 30 deletions contracts/asset-proxy/contracts/src/bridges/ERC20Bridge.sol

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
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`.
/// @param tokenAddress The address of the ERC20 token to transfer.
Expand Down
4 changes: 2 additions & 2 deletions contracts/asset-proxy/contracts/test/TestERC20Bridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
pragma solidity ^0.5.9;
pragma experimental ABIEncoderV2;

import "../src/bridges/ERC20Bridge.sol";
import "../src/interfaces/IERC20Bridge.sol";


/// @dev Test bridge token
Expand Down Expand Up @@ -50,7 +50,7 @@ contract TestERC20BridgeToken {

/// @dev Test bridge contract.
contract TestERC20Bridge is
ERC20Bridge
IERC20Bridge
{
TestERC20BridgeToken public testToken;

Expand Down
2 changes: 1 addition & 1 deletion contracts/asset-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"compile:truffle": "truffle compile"
},
"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."
},
"repository": {
Expand Down
2 changes: 0 additions & 2 deletions contracts/asset-proxy/src/artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import { ContractArtifact } from 'ethereum-types';

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 ERC20Proxy from '../generated-artifacts/ERC20Proxy.json';
import * as ERC721Proxy from '../generated-artifacts/ERC721Proxy.json';
Expand All @@ -32,7 +31,6 @@ export const artifacts = {
ERC721Proxy: ERC721Proxy as ContractArtifact,
MultiAssetProxy: MultiAssetProxy as ContractArtifact,
StaticCallProxy: StaticCallProxy as ContractArtifact,
ERC20Bridge: ERC20Bridge as ContractArtifact,
IAssetData: IAssetData as ContractArtifact,
IAssetProxy: IAssetProxy as ContractArtifact,
IAssetProxyDispatcher: IAssetProxyDispatcher as ContractArtifact,
Expand Down
1 change: 0 additions & 1 deletion contracts/asset-proxy/src/wrappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* -----------------------------------------------------------------------------
*/
export * from '../generated-wrappers/erc1155_proxy';
export * from '../generated-wrappers/erc20_bridge';
export * from '../generated-wrappers/erc20_bridge_proxy';
export * from '../generated-wrappers/erc20_proxy';
export * from '../generated-wrappers/erc721_proxy';
Expand Down
1 change: 0 additions & 1 deletion contracts/asset-proxy/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"include": ["./src/**/*", "./test/**/*", "./generated-wrappers/**/*"],
"files": [
"generated-artifacts/ERC1155Proxy.json",
"generated-artifacts/ERC20Bridge.json",
"generated-artifacts/ERC20BridgeProxy.json",
"generated-artifacts/ERC20Proxy.json",
"generated-artifacts/ERC721Proxy.json",
Expand Down

0 comments on commit 6da48be

Please sign in to comment.