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