diff --git a/contracts/exchange-forwarder/package.json b/contracts/exchange-forwarder/package.json index 1852d1451a..8d137b6eb8 100644 --- a/contracts/exchange-forwarder/package.json +++ b/contracts/exchange-forwarder/package.json @@ -38,7 +38,7 @@ "docs:json": "typedoc --excludePrivate --excludeExternals --excludeProtected --ignoreCompilerErrors --target ES5 --tsconfig typedoc-tsconfig.json --json $JSON_FILE_PATH $PROJECT_FILES" }, "config": { - "publicInterfaceContracts": "Forwarder", + "publicInterfaceContracts": "Forwarder,IExchangeV2", "abis": "./test/generated-artifacts/@(Forwarder|IAssets|IExchangeV2|IForwarder|IForwarderCore|LibConstants|LibForwarderRichErrors|MixinAssets|MixinExchangeWrapper|MixinForwarderCore|MixinWeth|TestForwarder).json", "abis:comment": "This list is auto-generated by contracts-gen. Don't edit manually." }, diff --git a/contracts/exchange-forwarder/src/artifacts.ts b/contracts/exchange-forwarder/src/artifacts.ts index a316777cb3..bdb4b1b56b 100644 --- a/contracts/exchange-forwarder/src/artifacts.ts +++ b/contracts/exchange-forwarder/src/artifacts.ts @@ -6,4 +6,5 @@ import { ContractArtifact } from 'ethereum-types'; import * as Forwarder from '../generated-artifacts/Forwarder.json'; -export const artifacts = { Forwarder: Forwarder as ContractArtifact }; +import * as IExchangeV2 from '../generated-artifacts/IExchangeV2.json'; +export const artifacts = { Forwarder: Forwarder as ContractArtifact, IExchangeV2: IExchangeV2 as ContractArtifact }; diff --git a/contracts/exchange-forwarder/src/index.ts b/contracts/exchange-forwarder/src/index.ts index dd06356a44..f859993391 100644 --- a/contracts/exchange-forwarder/src/index.ts +++ b/contracts/exchange-forwarder/src/index.ts @@ -1,5 +1,5 @@ export { artifacts } from './artifacts'; -export { ForwarderContract } from './wrappers'; +export { ForwarderContract, IExchangeV2Contract } from './wrappers'; export { ExchangeForwarderRevertErrors } from '@0x/utils'; export { ContractArtifact, diff --git a/contracts/exchange-forwarder/src/wrappers.ts b/contracts/exchange-forwarder/src/wrappers.ts index e77944402a..46d3326781 100644 --- a/contracts/exchange-forwarder/src/wrappers.ts +++ b/contracts/exchange-forwarder/src/wrappers.ts @@ -4,3 +4,4 @@ * ----------------------------------------------------------------------------- */ export * from '../generated-wrappers/forwarder'; +export * from '../generated-wrappers/i_exchange_v2'; diff --git a/contracts/exchange-forwarder/tsconfig.json b/contracts/exchange-forwarder/tsconfig.json index 9ebde3a67c..7fb86aa0f2 100644 --- a/contracts/exchange-forwarder/tsconfig.json +++ b/contracts/exchange-forwarder/tsconfig.json @@ -4,6 +4,7 @@ "include": ["./src/**/*", "./test/**/*", "./generated-wrappers/**/*"], "files": [ "generated-artifacts/Forwarder.json", + "generated-artifacts/IExchangeV2.json", "test/generated-artifacts/Forwarder.json", "test/generated-artifacts/IAssets.json", "test/generated-artifacts/IExchangeV2.json",