diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-05-30 20:36:14 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-05-30 20:36:14 +0800 |
commit | 18d65f5f55bcdbbb1e1058ac9e8fe193804b1a06 (patch) | |
tree | 40c1c79350dfb3d982593e755e5bf896dedcea1a /test | |
parent | acd5fba1336659053be470e4041b803150588cc5 (diff) | |
download | dexon-sol-tools-18d65f5f55bcdbbb1e1058ac9e8fe193804b1a06.tar dexon-sol-tools-18d65f5f55bcdbbb1e1058ac9e8fe193804b1a06.tar.gz dexon-sol-tools-18d65f5f55bcdbbb1e1058ac9e8fe193804b1a06.tar.bz2 dexon-sol-tools-18d65f5f55bcdbbb1e1058ac9e8fe193804b1a06.tar.lz dexon-sol-tools-18d65f5f55bcdbbb1e1058ac9e8fe193804b1a06.tar.xz dexon-sol-tools-18d65f5f55bcdbbb1e1058ac9e8fe193804b1a06.tar.zst dexon-sol-tools-18d65f5f55bcdbbb1e1058ac9e8fe193804b1a06.zip |
Append _test to exchange_wrapper
Diffstat (limited to 'test')
-rw-r--r-- | test/exchange_wrapper_test.ts (renamed from test/exchange_wrapper.ts) | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/exchange_wrapper.ts b/test/exchange_wrapper_test.ts index 4bfc49374..bb09a0344 100644 --- a/test/exchange_wrapper.ts +++ b/test/exchange_wrapper_test.ts @@ -1,10 +1,12 @@ import 'mocha'; import * as chai from 'chai'; import chaiAsPromised = require('chai-as-promised'); -import * as Web3 from 'web3'; import {web3Factory} from './utils/web3_factory'; import {ZeroEx} from '../src/0x.js'; import {BlockchainLifecycle} from './utils/blockchain_lifecycle'; +import * as OrderJSON from './fixtures/orders/5_MKR_for_42_MLN.json'; +import * as BigNumber from 'bignumber.js'; +import {signedOrderFromJSON} from './utils/order'; const expect = chai.expect; chai.use(chaiAsPromised); @@ -92,4 +94,12 @@ describe('ExchangeWrapper', () => { expect(isValid).to.be.true; }); }); + describe('#fillOrderAsync', () => { + const fillAmount = new BigNumber(1); + const signedOrder = signedOrderFromJSON(OrderJSON); + it('fillsOrder', async () => { + const orderFillResponse = await zeroEx.exchange.fillOrderAsync(signedOrder, fillAmount); + console.log(orderFillResponse); + }); + }); }); |