aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2019-02-04 20:00:15 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2019-02-04 20:00:15 +0800
commit1a88eac9c7e8f30f5d1f57132a48e59abd912d41 (patch)
tree0a1e9664ca875a3f4b5c84b8c2426940d01c5728
parent47357ddec84fedb9e449edf6a75d3c7ab295aa6b (diff)
downloaddexon-0x-contracts-1a88eac9c7e8f30f5d1f57132a48e59abd912d41.tar.gz
dexon-0x-contracts-1a88eac9c7e8f30f5d1f57132a48e59abd912d41.tar.zst
dexon-0x-contracts-1a88eac9c7e8f30f5d1f57132a48e59abd912d41.zip
Make the banner more visible
-rw-r--r--contracts/asset-proxy/src/artifacts.ts6
-rw-r--r--contracts/asset-proxy/src/wrappers.ts6
-rw-r--r--contracts/erc20/src/artifacts.ts6
-rw-r--r--contracts/erc20/src/wrappers.ts6
-rw-r--r--contracts/erc721/src/artifacts.ts6
-rw-r--r--contracts/erc721/src/wrappers.ts6
-rw-r--r--contracts/exchange-forwarder/src/artifacts.ts6
-rw-r--r--contracts/exchange-forwarder/src/wrappers.ts6
-rw-r--r--contracts/exchange-libs/src/artifacts.ts6
-rw-r--r--contracts/exchange-libs/src/wrappers.ts6
-rw-r--r--contracts/exchange/src/artifacts.ts6
-rw-r--r--contracts/exchange/src/wrappers.ts6
-rw-r--r--contracts/extensions/src/artifacts.ts6
-rw-r--r--contracts/extensions/src/wrappers.ts6
-rw-r--r--contracts/multisig/src/artifacts.ts6
-rw-r--r--contracts/multisig/src/wrappers.ts6
-rw-r--r--contracts/utils/src/artifacts.ts6
-rw-r--r--contracts/utils/src/wrappers.ts6
-rw-r--r--packages/contracts-gen/src/contracts-gen.ts10
19 files changed, 97 insertions, 21 deletions
diff --git a/contracts/asset-proxy/src/artifacts.ts b/contracts/asset-proxy/src/artifacts.ts
index 87b80d075..d82c0537e 100644
--- a/contracts/asset-proxy/src/artifacts.ts
+++ b/contracts/asset-proxy/src/artifacts.ts
@@ -1,4 +1,8 @@
-// This file is auto-generated by contracts-gen. Don't edit manually.
+/*
+ * -----------------------------------------------------------------------------
+ * Warning: This file is auto-generated by contracts-gen. Don't edit manually.
+ * -----------------------------------------------------------------------------
+ */
import { ContractArtifact } from 'ethereum-types';
import * as DummyERC20Token from '../generated-artifacts/DummyERC20Token.json';
diff --git a/contracts/asset-proxy/src/wrappers.ts b/contracts/asset-proxy/src/wrappers.ts
index 4bff2f423..f8cd342c0 100644
--- a/contracts/asset-proxy/src/wrappers.ts
+++ b/contracts/asset-proxy/src/wrappers.ts
@@ -1,4 +1,8 @@
-// This file is auto-generated by contracts-gen. Don't edit manually.
+/*
+ * -----------------------------------------------------------------------------
+ * Warning: This file is auto-generated by contracts-gen. Don't edit manually.
+ * -----------------------------------------------------------------------------
+ */
export * from '../generated-wrappers/dummy_erc20_token';
export * from '../generated-wrappers/dummy_erc721_receiver';
export * from '../generated-wrappers/dummy_erc721_token';
diff --git a/contracts/erc20/src/artifacts.ts b/contracts/erc20/src/artifacts.ts
index 0627b98cf..c97a73195 100644
--- a/contracts/erc20/src/artifacts.ts
+++ b/contracts/erc20/src/artifacts.ts
@@ -1,4 +1,8 @@
-// This file is auto-generated by contracts-gen. Don't edit manually.
+/*
+ * -----------------------------------------------------------------------------
+ * Warning: This file is auto-generated by contracts-gen. Don't edit manually.
+ * -----------------------------------------------------------------------------
+ */
import { ContractArtifact } from 'ethereum-types';
import * as DummyERC20Token from '../generated-artifacts/DummyERC20Token.json';
diff --git a/contracts/erc20/src/wrappers.ts b/contracts/erc20/src/wrappers.ts
index b66c3b1ca..40193e7d8 100644
--- a/contracts/erc20/src/wrappers.ts
+++ b/contracts/erc20/src/wrappers.ts
@@ -1,4 +1,8 @@
-// This file is auto-generated by contracts-gen. Don't edit manually.
+/*
+ * -----------------------------------------------------------------------------
+ * Warning: This file is auto-generated by contracts-gen. Don't edit manually.
+ * -----------------------------------------------------------------------------
+ */
export * from '../generated-wrappers/dummy_erc20_token';
export * from '../generated-wrappers/dummy_multiple_return_erc20_token';
export * from '../generated-wrappers/dummy_no_return_erc20_token';
diff --git a/contracts/erc721/src/artifacts.ts b/contracts/erc721/src/artifacts.ts
index daa29a83c..79a76e21b 100644
--- a/contracts/erc721/src/artifacts.ts
+++ b/contracts/erc721/src/artifacts.ts
@@ -1,4 +1,8 @@
-// This file is auto-generated by contracts-gen. Don't edit manually.
+/*
+ * -----------------------------------------------------------------------------
+ * Warning: This file is auto-generated by contracts-gen. Don't edit manually.
+ * -----------------------------------------------------------------------------
+ */
import { ContractArtifact } from 'ethereum-types';
import * as DummyERC721Receiver from '../generated-artifacts/DummyERC721Receiver.json';
diff --git a/contracts/erc721/src/wrappers.ts b/contracts/erc721/src/wrappers.ts
index 909e05868..716f6cca4 100644
--- a/contracts/erc721/src/wrappers.ts
+++ b/contracts/erc721/src/wrappers.ts
@@ -1,4 +1,8 @@
-// This file is auto-generated by contracts-gen. Don't edit manually.
+/*
+ * -----------------------------------------------------------------------------
+ * Warning: This file is auto-generated by contracts-gen. Don't edit manually.
+ * -----------------------------------------------------------------------------
+ */
export * from '../generated-wrappers/dummy_erc721_receiver';
export * from '../generated-wrappers/dummy_erc721_token';
export * from '../generated-wrappers/erc721_token';
diff --git a/contracts/exchange-forwarder/src/artifacts.ts b/contracts/exchange-forwarder/src/artifacts.ts
index 39295b797..94bcdf84a 100644
--- a/contracts/exchange-forwarder/src/artifacts.ts
+++ b/contracts/exchange-forwarder/src/artifacts.ts
@@ -1,4 +1,8 @@
-// This file is auto-generated by contracts-gen. Don't edit manually.
+/*
+ * -----------------------------------------------------------------------------
+ * Warning: This file is auto-generated by contracts-gen. Don't edit manually.
+ * -----------------------------------------------------------------------------
+ */
import { ContractArtifact } from 'ethereum-types';
import * as DummyERC20Token from '../generated-artifacts/DummyERC20Token.json';
diff --git a/contracts/exchange-forwarder/src/wrappers.ts b/contracts/exchange-forwarder/src/wrappers.ts
index a023f878c..cbe72c5cf 100644
--- a/contracts/exchange-forwarder/src/wrappers.ts
+++ b/contracts/exchange-forwarder/src/wrappers.ts
@@ -1,4 +1,8 @@
-// This file is auto-generated by contracts-gen. Don't edit manually.
+/*
+ * -----------------------------------------------------------------------------
+ * Warning: This file is auto-generated by contracts-gen. Don't edit manually.
+ * -----------------------------------------------------------------------------
+ */
export * from '../generated-wrappers/dummy_erc20_token';
export * from '../generated-wrappers/dummy_erc721_token';
export * from '../generated-wrappers/exchange';
diff --git a/contracts/exchange-libs/src/artifacts.ts b/contracts/exchange-libs/src/artifacts.ts
index 5e660e1a8..861d6f3d2 100644
--- a/contracts/exchange-libs/src/artifacts.ts
+++ b/contracts/exchange-libs/src/artifacts.ts
@@ -1,4 +1,8 @@
-// This file is auto-generated by contracts-gen. Don't edit manually.
+/*
+ * -----------------------------------------------------------------------------
+ * Warning: This file is auto-generated by contracts-gen. Don't edit manually.
+ * -----------------------------------------------------------------------------
+ */
import { ContractArtifact } from 'ethereum-types';
import * as LibAbiEncoder from '../generated-artifacts/LibAbiEncoder.json';
diff --git a/contracts/exchange-libs/src/wrappers.ts b/contracts/exchange-libs/src/wrappers.ts
index 840886181..05244d87b 100644
--- a/contracts/exchange-libs/src/wrappers.ts
+++ b/contracts/exchange-libs/src/wrappers.ts
@@ -1,4 +1,8 @@
-// This file is auto-generated by contracts-gen. Don't edit manually.
+/*
+ * -----------------------------------------------------------------------------
+ * Warning: This file is auto-generated by contracts-gen. Don't edit manually.
+ * -----------------------------------------------------------------------------
+ */
export * from '../generated-wrappers/lib_abi_encoder';
export * from '../generated-wrappers/lib_asset_proxy_errors';
export * from '../generated-wrappers/lib_constants';
diff --git a/contracts/exchange/src/artifacts.ts b/contracts/exchange/src/artifacts.ts
index e49aea10b..efdacd376 100644
--- a/contracts/exchange/src/artifacts.ts
+++ b/contracts/exchange/src/artifacts.ts
@@ -1,4 +1,8 @@
-// This file is auto-generated by contracts-gen. Don't edit manually.
+/*
+ * -----------------------------------------------------------------------------
+ * Warning: This file is auto-generated by contracts-gen. Don't edit manually.
+ * -----------------------------------------------------------------------------
+ */
import { ContractArtifact } from 'ethereum-types';
import * as DummyERC20Token from '../generated-artifacts/DummyERC20Token.json';
diff --git a/contracts/exchange/src/wrappers.ts b/contracts/exchange/src/wrappers.ts
index eca3c1c89..1c1d7fdb4 100644
--- a/contracts/exchange/src/wrappers.ts
+++ b/contracts/exchange/src/wrappers.ts
@@ -1,4 +1,8 @@
-// This file is auto-generated by contracts-gen. Don't edit manually.
+/*
+ * -----------------------------------------------------------------------------
+ * Warning: This file is auto-generated by contracts-gen. Don't edit manually.
+ * -----------------------------------------------------------------------------
+ */
export * from '../generated-wrappers/dummy_erc20_token';
export * from '../generated-wrappers/dummy_erc721_token';
export * from '../generated-wrappers/dummy_no_return_erc20_token';
diff --git a/contracts/extensions/src/artifacts.ts b/contracts/extensions/src/artifacts.ts
index 6db3daecc..efa5c859c 100644
--- a/contracts/extensions/src/artifacts.ts
+++ b/contracts/extensions/src/artifacts.ts
@@ -1,4 +1,8 @@
-// This file is auto-generated by contracts-gen. Don't edit manually.
+/*
+ * -----------------------------------------------------------------------------
+ * Warning: This file is auto-generated by contracts-gen. Don't edit manually.
+ * -----------------------------------------------------------------------------
+ */
import { ContractArtifact } from 'ethereum-types';
import * as BalanceThresholdFilter from '../generated-artifacts/BalanceThresholdFilter.json';
diff --git a/contracts/extensions/src/wrappers.ts b/contracts/extensions/src/wrappers.ts
index d34cca292..1a67d2ee3 100644
--- a/contracts/extensions/src/wrappers.ts
+++ b/contracts/extensions/src/wrappers.ts
@@ -1,4 +1,8 @@
-// This file is auto-generated by contracts-gen. Don't edit manually.
+/*
+ * -----------------------------------------------------------------------------
+ * Warning: This file is auto-generated by contracts-gen. Don't edit manually.
+ * -----------------------------------------------------------------------------
+ */
export * from '../generated-wrappers/balance_threshold_filter';
export * from '../generated-wrappers/dummy_erc20_token';
export * from '../generated-wrappers/dummy_erc721_token';
diff --git a/contracts/multisig/src/artifacts.ts b/contracts/multisig/src/artifacts.ts
index 37aa9d4ef..7d8a85884 100644
--- a/contracts/multisig/src/artifacts.ts
+++ b/contracts/multisig/src/artifacts.ts
@@ -1,4 +1,8 @@
-// This file is auto-generated by contracts-gen. Don't edit manually.
+/*
+ * -----------------------------------------------------------------------------
+ * Warning: This file is auto-generated by contracts-gen. Don't edit manually.
+ * -----------------------------------------------------------------------------
+ */
import { ContractArtifact } from 'ethereum-types';
import * as AssetProxyOwner from '../generated-artifacts/AssetProxyOwner.json';
diff --git a/contracts/multisig/src/wrappers.ts b/contracts/multisig/src/wrappers.ts
index fc46799d0..81aab39da 100644
--- a/contracts/multisig/src/wrappers.ts
+++ b/contracts/multisig/src/wrappers.ts
@@ -1,4 +1,8 @@
-// This file is auto-generated by contracts-gen. Don't edit manually.
+/*
+ * -----------------------------------------------------------------------------
+ * Warning: This file is auto-generated by contracts-gen. Don't edit manually.
+ * -----------------------------------------------------------------------------
+ */
export * from '../generated-wrappers/asset_proxy_owner';
export * from '../generated-wrappers/mixin_authorizable';
export * from '../generated-wrappers/multi_sig_wallet';
diff --git a/contracts/utils/src/artifacts.ts b/contracts/utils/src/artifacts.ts
index 26f665eec..15a1abedf 100644
--- a/contracts/utils/src/artifacts.ts
+++ b/contracts/utils/src/artifacts.ts
@@ -1,4 +1,8 @@
-// This file is auto-generated by contracts-gen. Don't edit manually.
+/*
+ * -----------------------------------------------------------------------------
+ * Warning: This file is auto-generated by contracts-gen. Don't edit manually.
+ * -----------------------------------------------------------------------------
+ */
import { ContractArtifact } from 'ethereum-types';
import * as IOwnable from '../generated-artifacts/IOwnable.json';
diff --git a/contracts/utils/src/wrappers.ts b/contracts/utils/src/wrappers.ts
index fc8e4584a..8748cb074 100644
--- a/contracts/utils/src/wrappers.ts
+++ b/contracts/utils/src/wrappers.ts
@@ -1,4 +1,8 @@
-// This file is auto-generated by contracts-gen. Don't edit manually.
+/*
+ * -----------------------------------------------------------------------------
+ * Warning: This file is auto-generated by contracts-gen. Don't edit manually.
+ * -----------------------------------------------------------------------------
+ */
export * from '../generated-wrappers/i_ownable';
export * from '../generated-wrappers/lib_bytes';
export * from '../generated-wrappers/ownable';
diff --git a/packages/contracts-gen/src/contracts-gen.ts b/packages/contracts-gen/src/contracts-gen.ts
index 0695d9c98..0160a8204 100644
--- a/packages/contracts-gen/src/contracts-gen.ts
+++ b/packages/contracts-gen/src/contracts-gen.ts
@@ -14,7 +14,11 @@ const SOLIDITY_EXTENSION = '.sol';
const DEFAULT_ARTIFACTS_DIR = 'artifacts';
const DEFAULT_CONTRACTS_DIR = 'contracts';
const DEFAULT_WRAPPERS_DIR = 'generated-wrappers';
-const AUTO_GENERATED_BANNER = `This file is auto-generated by contracts-gen. Don't edit manually.`;
+const AUTO_GENERATED_BANNER = `/*
+* -----------------------------------------------------------------------------
+* Warning: This file is auto-generated by contracts-gen. Don't edit manually.
+* -----------------------------------------------------------------------------
+*/`;
const AUTO_GENERATED_BANNER_FOR_LISTS = `This list is auto-generated by contracts-gen. Don't edit manually.`;
(async () => {
@@ -82,7 +86,7 @@ function generateArtifactsTs(contracts: string[], artifactsDir: string, prettier
}
});
const artifactsTs = `
- // ${AUTO_GENERATED_BANNER}
+ ${AUTO_GENERATED_BANNER}
import { ContractArtifact } from 'ethereum-types';
${sortedImports.join('\n')}
@@ -102,7 +106,7 @@ function generateWrappersTs(contracts: string[], wrappersDir: string, prettierCo
});
const sortedImports = _.sortBy(imports);
const wrappersTs = `
- // ${AUTO_GENERATED_BANNER}
+ ${AUTO_GENERATED_BANNER}
${sortedImports.join('\n')}
`;
const WRAPPERS_TS_FILE_PATH = 'src/wrappers.ts';