diff --git a/contracts/asset-proxy/src/artifacts.ts b/contracts/asset-proxy/src/artifacts.ts index 87b80d0758..d82c0537e2 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 4bff2f423f..f8cd342c0b 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 0627b98cf2..c97a73195e 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 b66c3b1ca2..40193e7d86 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 daa29a83c0..79a76e21b4 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 909e05868b..716f6cca4e 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 39295b7973..94bcdf84a8 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 a023f878cc..cbe72c5cfc 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 5e660e1a8a..861d6f3d2d 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 8408861817..05244d87b7 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 e49aea10b4..efdacd376e 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 eca3c1c89b..1c1d7fdb44 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 6db3daecc2..efa5c859c1 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 d34cca2926..1a67d2ee39 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 37aa9d4ef2..7d8a85884b 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 fc46799d0a..81aab39da2 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 26f665eec8..15a1abedfc 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 fc8e4584a2..8748cb074d 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 0695d9c984..0160a82046 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';