* WIP add combinatorial tests for internal Exchange functions * Change combinitorial testing strategy based on feedback * Check value of filled[orderHash] in updateFilledState tests * Add combinatorial tests for addFillResults * Add combinatorial tests for getPartialAmount * Implement generic `testWithReferenceFuncAsync` * Implement generic `testCombinatoriallyWithReferenceFuncAsync` * Add combinatorial tests for isRoundingError * Add combinatorial tests for calculateFillResults * Add support for Geth in internal contract tests * Fix contract artifacts * Change DECIMAL_PLACES to 78 and add a note. * Document new functions in utils * Optimize tests by only reseting state when needed * Rename/move some files * Print parameter names on failure in testWithReferenceFuncAsync * Add to changelog for utils package * Appease various linters * Rename some more things related to FillOrderCombinatorialUtils * Remove .only from test/exchange/internal.ts * Remove old test for isRoundingError and getPartialAmount * Appease linters again * Remove old todos * Fix typos, add comments, rename some things * Re-add some LibMath tests * Update contract internal tests to use new SafeMath revert reasons * Apply PR feedback from Amir * Apply PR feedback from Remco * Re-add networks to ZRXToken artifact * Remove duplicate Whitelist in compiler.json
58 lines
3.5 KiB
TypeScript
58 lines
3.5 KiB
TypeScript
import { ContractArtifact } from '@0xproject/sol-compiler';
|
|
|
|
import * as AssetProxyOwner from '../../artifacts/AssetProxyOwner.json';
|
|
import * as DummyERC20Token from '../../artifacts/DummyERC20Token.json';
|
|
import * as DummyERC721Receiver from '../../artifacts/DummyERC721Receiver.json';
|
|
import * as DummyERC721Token from '../../artifacts/DummyERC721Token.json';
|
|
import * as ERC20Proxy from '../../artifacts/ERC20Proxy.json';
|
|
import * as ERC721Proxy from '../../artifacts/ERC721Proxy.json';
|
|
import * as Exchange from '../../artifacts/Exchange.json';
|
|
import * as ExchangeWrapper from '../../artifacts/ExchangeWrapper.json';
|
|
import * as Forwarder from '../../artifacts/Forwarder.json';
|
|
import * as IAssetProxy from '../../artifacts/IAssetProxy.json';
|
|
import * as MixinAuthorizable from '../../artifacts/MixinAuthorizable.json';
|
|
import * as MultiSigWallet from '../../artifacts/MultiSigWallet.json';
|
|
import * as MultiSigWalletWithTimeLock from '../../artifacts/MultiSigWalletWithTimeLock.json';
|
|
import * as TestAssetProxyDispatcher from '../../artifacts/TestAssetProxyDispatcher.json';
|
|
import * as TestAssetProxyOwner from '../../artifacts/TestAssetProxyOwner.json';
|
|
import * as TestConstants from '../../artifacts/TestConstants.json';
|
|
import * as TestExchangeInternals from '../../artifacts/TestExchangeInternals.json';
|
|
import * as TestLibBytes from '../../artifacts/TestLibBytes.json';
|
|
import * as TestLibs from '../../artifacts/TestLibs.json';
|
|
import * as TestSignatureValidator from '../../artifacts/TestSignatureValidator.json';
|
|
import * as TokenRegistry from '../../artifacts/TokenRegistry.json';
|
|
import * as Validator from '../../artifacts/Validator.json';
|
|
import * as Wallet from '../../artifacts/Wallet.json';
|
|
import * as EtherToken from '../../artifacts/WETH9.json';
|
|
import * as Whitelist from '../../artifacts/Whitelist.json';
|
|
import * as ZRX from '../../artifacts/ZRXToken.json';
|
|
|
|
export const artifacts = {
|
|
AssetProxyOwner: (AssetProxyOwner as any) as ContractArtifact,
|
|
DummyERC20Token: (DummyERC20Token as any) as ContractArtifact,
|
|
DummyERC721Receiver: (DummyERC721Receiver as any) as ContractArtifact,
|
|
DummyERC721Token: (DummyERC721Token as any) as ContractArtifact,
|
|
ERC20Proxy: (ERC20Proxy as any) as ContractArtifact,
|
|
ERC721Proxy: (ERC721Proxy as any) as ContractArtifact,
|
|
Exchange: (Exchange as any) as ContractArtifact,
|
|
ExchangeWrapper: (ExchangeWrapper as any) as ContractArtifact,
|
|
EtherToken: (EtherToken as any) as ContractArtifact,
|
|
Forwarder: (Forwarder as any) as ContractArtifact,
|
|
IAssetProxy: (IAssetProxy as any) as ContractArtifact,
|
|
MixinAuthorizable: (MixinAuthorizable as any) as ContractArtifact,
|
|
MultiSigWallet: (MultiSigWallet as any) as ContractArtifact,
|
|
MultiSigWalletWithTimeLock: (MultiSigWalletWithTimeLock as any) as ContractArtifact,
|
|
TestAssetProxyOwner: (TestAssetProxyOwner as any) as ContractArtifact,
|
|
TestAssetProxyDispatcher: (TestAssetProxyDispatcher as any) as ContractArtifact,
|
|
TestConstants: (TestConstants as any) as ContractArtifact,
|
|
TestLibBytes: (TestLibBytes as any) as ContractArtifact,
|
|
TestLibs: (TestLibs as any) as ContractArtifact,
|
|
TestExchangeInternals: (TestExchangeInternals as any) as ContractArtifact,
|
|
TestSignatureValidator: (TestSignatureValidator as any) as ContractArtifact,
|
|
Validator: (Validator as any) as ContractArtifact,
|
|
Wallet: (Wallet as any) as ContractArtifact,
|
|
TokenRegistry: (TokenRegistry as any) as ContractArtifact,
|
|
Whitelist: (Whitelist as any) as ContractArtifact,
|
|
ZRX: (ZRX as any) as ContractArtifact,
|
|
};
|