Fix tests
This commit is contained in:
@@ -1026,28 +1026,6 @@
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"constant": false,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "assetProxyId",
|
||||
"type": "bytes4"
|
||||
},
|
||||
{
|
||||
"name": "newAssetProxy",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"name": "oldAssetProxy",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"name": "registerAssetProxy",
|
||||
"outputs": [],
|
||||
"payable": false,
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"constant": true,
|
||||
"inputs": [],
|
||||
@@ -1305,6 +1283,20 @@
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"constant": false,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "assetProxy",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"name": "registerAssetProxy",
|
||||
"outputs": [],
|
||||
"payable": false,
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"constant": true,
|
||||
"inputs": [
|
||||
@@ -1899,16 +1891,11 @@
|
||||
},
|
||||
{
|
||||
"indexed": false,
|
||||
"name": "newAssetProxy",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"indexed": false,
|
||||
"name": "oldAssetProxy",
|
||||
"name": "assetProxy",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"name": "AssetProxySet",
|
||||
"name": "AssetProxyRegistered",
|
||||
"type": "event"
|
||||
}
|
||||
]
|
||||
|
@@ -61,7 +61,7 @@ export {
|
||||
|
||||
export {
|
||||
ExchangeCancelUpToEventArgs,
|
||||
ExchangeAssetProxySetEventArgs,
|
||||
ExchangeAssetProxyRegisteredEventArgs,
|
||||
ExchangeFillEventArgs,
|
||||
ExchangeCancelEventArgs,
|
||||
ExchangeEventArgs,
|
||||
|
@@ -486,9 +486,15 @@ describe('ExchangeWrapper', () => {
|
||||
it('should only get the logs with the correct indexed fields', async () => {
|
||||
txHash = await contractWrappers.exchange.fillOrderAsync(signedOrder, takerTokenFillAmount, takerAddress);
|
||||
await web3Wrapper.awaitTransactionSuccessAsync(txHash, constants.AWAIT_TRANSACTION_MINED_MS);
|
||||
|
||||
const signedOrderWithAnotherMakerAddress = await fillScenarios.createFillableSignedOrderAsync(
|
||||
makerAssetData,
|
||||
takerAssetData,
|
||||
anotherMakerAddress,
|
||||
takerAddress,
|
||||
fillableAmount,
|
||||
);
|
||||
txHash = await contractWrappers.exchange.fillOrderAsync(
|
||||
anotherSignedOrder,
|
||||
signedOrderWithAnotherMakerAddress,
|
||||
takerTokenFillAmount,
|
||||
takerAddress,
|
||||
);
|
||||
|
@@ -4,7 +4,7 @@ import { Provider } from 'ethereum-types';
|
||||
|
||||
const txDefaults = {
|
||||
from: devConstants.TESTRPC_FIRST_ADDRESS,
|
||||
gasLimit: devConstants.GAS_LIMIT,
|
||||
gas: devConstants.GAS_LIMIT,
|
||||
};
|
||||
const provider: Provider = web3Factory.getRpcProvider({ shouldUseInProcessGanache: true });
|
||||
const web3Wrapper = new Web3Wrapper(provider);
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace
|
||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
||||
// tslint:disable:no-unused-variable
|
||||
import { BaseContract } from '@0xproject/base-contract';
|
||||
import { ContractArtifact } from '@0xproject/sol-compiler';
|
||||
|
@@ -1,10 +1,7 @@
|
||||
import {
|
||||
BalanceAndProxyAllowanceLazyStore,
|
||||
ContractWrappers,
|
||||
LogCancelContractEventArgs,
|
||||
LogFillContractEventArgs,
|
||||
OrderFilledCancelledLazyStore,
|
||||
WithdrawalContractEventArgs,
|
||||
} from '@0xproject/contract-wrappers';
|
||||
import { schemas } from '@0xproject/json-schemas';
|
||||
import { getOrderHashHex, OrderStateUtils } from '@0xproject/order-utils';
|
||||
|
@@ -64,7 +64,7 @@
|
||||
"typescript": "2.7.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@0xproject/assert": "^0.2.12",
|
||||
"@0xproject/assert": "0.3.0",
|
||||
"@0xproject/json-schemas": "^1.0.0",
|
||||
"@0xproject/typescript-typings": "^0.4.1",
|
||||
"@0xproject/utils": "^0.7.1",
|
||||
|
Reference in New Issue
Block a user