Skip to content

Instantly share code, notes, and snippets.

@talbaneth
Created April 11, 2019 11:48
Show Gist options
  • Save talbaneth/d903c5f140366dbe879e4add578990b8 to your computer and use it in GitHub Desktop.
Save talbaneth/d903c5f140366dbe879e4add578990b8 to your computer and use it in GitHub Desktop.
npx truffle test
Using network 'development'.
Compiling ./contracts/ERC20Interface.sol...
Contract: ConversionRates
✓ should init globals
✓ should test bytes14. (368ms)
✓ should init ConversionRates Inst and set general parameters. (3392ms)
✓ should set base rates for all tokens then get and verify. (601ms)
✓ should set compact data all tokens then get and verify. (399ms)
✓ should verify setCompactData reverted when block number out of range. (110ms)
✓ should set step functions qty and imbalance. (2206ms)
✓ should get qty buy step function and verify numbers. (97ms)
✓ should get qty sell step function and verify numbers. (105ms)
✓ should get imbalance buy step function and verify numbers. (127ms)
✓ should get imbalance sell step function and verify numbers. (131ms)
✓ should get set function data reverts with illegal command ID.
✓ should get and verify listed tokens.
✓ should test get token basic data works properly. (204ms)
✓ should get buy rate with update according to compact data update. (65ms)
✓ should get buy rate when compact data has boundary values (-128, 127). (164ms)
✓ should get buy rate when updating only 2nd cell compact data. (87ms)
✓ should get buy rate with compact data and quantity step. (66ms)
✓ should get buy rate quantity step and compact data update with token index > 14. (67ms)
✓ should add imbalance. get buy rate with with compact data + quantity step + imbalance step. (112ms)
✓ should add imbalance and get sell rate with with compact data + quantity step + imbalance step. (193ms)
✓ should verify addToken reverted when token already exists.
✓ should verify set compact data reverted when input arrays length don't match. (82ms)
✓ should verify set compact data reverted when input arrays length don't match num set tokens. (65ms)
✓ should verify set base rate data reverted when input arrays length don't match each other. (592ms)
✓ should verify set base rate data reverted when setting to unlisted token. (177ms)
✓ should verify set qty step reverted when input arrays lengths don't match. (318ms)
✓ should verify set qty step reverted when token not listed.
✓ should verify set imbalance step reverted when input arrays lengths don't match. (338ms)
✓ should verify set qty step reverted when token not listed.
✓ should verify enable token trade reverted if token not added(listed). (260ms)
✓ should verify enable token trade reverted if token control info not set. (197ms)
✓ should verify disable token trade reverted if token not listed. (246ms)
✓ should verify get rate returns 0 if token disabled. (125ms)
✓ should verify get rate returns 0 if token minimal record resolution is zero. (125ms)
✓ should verify get rate returns 0 block is high (bigger then expiration block). (66ms)
✓ should verify get rate returns 0 when qty above block imbalance. (90ms)
✓ should verify get rate returns 0 when qty + total imbalance are above maxTotalImbalance. (803ms)
✓ should verify record imbalance reverted when not from reserve address. (70ms)
✓ should verify set step functions for qty reverted when more them max steps (10). (240ms)
✓ should verify set step functions for imbalance reverted when more them max steps (10). (237ms)
✓ should verify getCompactData reverted when token not listed. (135ms)
✓ should verify add bps reverts for illegal values (56ms)
Contract: ExpectedRate
✓ should init kyber network and all its components. (2444ms)
✓ should init expected rate.
✓ should test can't init expected rate with empty contracts (address 0). (100ms)
✓ should test eth to token. use qty slippage. (497ms)
✓ should test eth to token. use min slippage. (422ms)
✓ should test token to eth. use qty slippage. (334ms)
✓ should test token to eth. use min quantity. (363ms)
✓ should verify get expected rate reverted when quantity factor is 0. (409ms)
✓ should verify set quantity factor reverts when > 100. (71ms)
✓ should verify set min slippage reverts when > 100 * 100. (69ms)
✓ should verify get expected rate reverts when qty > MAX QTY. (215ms)
✓ should verify get expected rate reverts when qty * qtyFactor > MAX QTY. (279ms)
✓ should verify when qty 0, expected rate correct. expected isn't 0. slippage is 0 (410ms)
✓ should verify when qty small, expected rate isn't 0. slippage is 0 (282ms)
✓ test qty above max trade value, expected rate 0. slippage is 0 (214ms)
✓ test qty as max trade value, quantity factor 2 expected rate OK. slippage is 0 (150ms)
✓ test qty as max trade value, quantity factor 1. expected rate OK. slippage little worse (238ms)
✓ should verify when qty 0, token to token rate as expected. (603ms)
✓ should verify when rate received from kyber network is > MAX_RATE, get expected rate return (0,0). (221ms)
✓ should verify knc arbitrage. (439ms)
✓ call getExpectedRate call to kyber reverts. getExpectedRate should return 0 and not revert. without permissionless (389ms)
✓ call getExpectedRate call to kyber reverts. getExpectedRate should return 0 and not revert. including permissionless (371ms)
Contract: FeeBurner
✓ should init globals and init feeBurner Inst. (399ms)
✓ should test handle fees success without other wallet fees. (63ms)
✓ should test handle fees success with other wallet ID fees. (109ms)
✓ should test handle fees rejected with wrong caller.
✓ should test all set set functions rejected for non admin. (57ms)
✓ verify burn reverts if transferFrom knc wallet fail (91ms)
✓ should test burn fee success. See waiting fees 'zeroed' (= 1). (146ms)
✓ should set tax fee and and tax wallet and validate values. (100ms)
✓ should test tax fees sent to wallet according to set fees. (333ms)
✓ should test tax fees behavior with smallest values. (220ms)
✓ should test that when knc wallet (we burn from) is empty burn fee is reverted. (77ms)
✓ should test that when calling burn fees with no fees to burn call reverted. (131ms)
✓ should test can't init this contract with empty contracts (address 0). (152ms)
✓ should test can't set bps fee > 1% (100 bps). (58ms)
✓ should test can't set empty (address 0) knc wallet. (53ms)
✓ should test can't set wallet fees above 100% (10000 bps). (49ms)
✓ should test can't fee taxes above 100% (10000 bps). (51ms)
✓ should test send fees to wallet reverted when balance is 'zeroed' == 1.
✓ should test handle fees reverted when trade size > max trade size. (133ms)
✓ should test when calling send fees to wallet but knc wallet doesn't have enough tokens. call reverted. (45ms)
✓ should verify payed so far on this reserve.
✓ should test tax fees revert when knc.transferFrom doesn't return true value. (230ms)
✓ should test set knc rate gets rate from kyber network (403ms)
✓ should test 'set KNC rate' reverted when min is 0. (86ms)
✓ should test 'set KNC rate' reverted when kncRate above max rate. (142ms)
✓ should check event for 'set knc rate' (127ms)
✓ verify if spread in kyber too big (rate tampered). can't set knc rate in fee burner (288ms)
Contract: KyberDutchXReserve
misc
✓ should be able to send ETH to reserve
✓ verify dutchx auction data (41ms)
✓ should allow admin to withdraw tokens (91ms)
✓ reject withdrawing tokens by non-admin users (50ms)
constructor params
✓ dutchx must not be 0
✓ admin must not be 0
✓ kyberNetwork must not be 0
✓ weth contract must not be 0
✓ dutchX is saved (79ms)
✓ admin is saved (82ms)
✓ kyberNetwork is saved (79ms)
✓ wethcontract is saved (79ms)
#getConversionRate
✓ conversion rate 1:1 (174ms)
✓ conversion rate 1:1 (163ms)
✓ rate 0 for small qty Eth - > token
✓ rate 0 for small qty token -> Eth
✓ rate 0 if both tokens are ETH
✓ 0 rate if both tokens are not ETH
✓ 0 rate for unsupported tokens (73ms)
✓ returns 0 if trade is disabled (78ms)
✓ returns 0 if insufficient funds (109ms)
✓ returns 0 if auction not running == price value 0 (81ms)
#trade
✓ can be called from KyberNetwork (205ms)
✓ can not be called by user other than KyberNetwork (49ms)
✓ trade eth to token with conversion rate 1:1 (272ms)
✓ trade token to Eth with conversion rate 1:1 (322ms)
✓ fail if ETH in src and dest
✓ fail if token in both src and dest (80ms)
✓ trade eth -> token with 0.25% fee (347ms)
✓ trade eth -> token with 0.25% fee kyber + 0.5% fee dutchx (432ms)
✓ trade token -> ETH with 0.25% fee (377ms)
✓ trade token -> ETH with 0.25% fee kyber + 0.5% fee dutch (389ms)
✓ trade fail when actual conversion rate worse then requested (228ms)
✓ ETH -> token, fail if srcAmount != msg.value (51ms)
✓ token -> ETH, fail if 0 != msg.value (93ms)
✓ fail if trade is disabled (80ms)
✓ trade event emitted (341ms)
#setFee
✓ default fee (79ms)
✓ dutchX fee (261ms)
✓ fee value saved (39ms)
✓ calling by admin allowed
✓ calling by non-admin reverts
✓ fail for fee > 10000
✓ event sent on setFee
#listToken
✓ calling by admin allowed (96ms)
✓ calling by non-admin reverts (74ms)
✓ fails for token with address 0
✓ event sent on token listed (92ms)
✓ listing token gives allowance to exchange (106ms)
#delistToken
✓ calling by admin allowed (125ms)
✓ calling by non-admin reverts (108ms)
✓ after calling token no longer supported (199ms)
✓ cannot delist unlisted tokens (139ms)
✓ event sent on token delisted (125ms)
Responsible reserve
✓ enableTrade() allowed for admin (81ms)
✓ enableTrade() fails if not admin
✓ event emitted on enableTrade()
✓ disableTrade() allowed for alerter (88ms)
✓ disableTrade() fails if not alerter
✓ event emitted on disableTrade()
#setKyberNetwork
✓ set new value by admin (43ms)
✓ should reject address 0
✓ only admin can set values
✓ setting value emits an event
Contract: KyberNetwork
✓ should init globals. init 2 ConversionRates Inst, init tokens and add to pricing inst. set basic data per token. (1937ms)
✓ should set base rates + compact data rate factor + step function. for all tokens. (1737ms)
✓ should init network and reserves and set all reserve data including balances (1404ms)
✓ test Kyber global parameters
✓ should init Kyber network data, list token pairs. (1009ms)
✓ test kyber network set contract events (550ms)
✓ test enable API (85ms)
✓ should disable 1 reserve. perform buy and check: balances changed as expected. (568ms)
✓ should disable 1 reserve. perform sell and check: balances changed as expected. (620ms)
trade ether to token without randomize reserve. gasUsed: 221040
✓ perform buy with reserve rate diff > negligibleDiff. make sure buy from correct reserve. (808ms)
trade token to ether without randomize reserve. gasUsed: 177292
✓ should set reserve sell rate diff > negligibleDiff. perform sell and make sure done on expected reserve. (745ms)
trade token to ether. gas used: 177268
✓ should test low 'max dest amount' on sell. make sure it reduces source amount. (1190ms)
✓ should test low 'max dest amount' with failing transfer token. see trade reverted. (392ms)
✓ should test trade with failing transfer token. see trade reverted. (146ms)
trade ether to token with low max dest amount. gas used: 221411
✓ should test low 'max dest amount' on buy. make sure it reduces source amount. (1253ms)
average gas usage 20 buys. ether to token: 207376
✓ should set reserve rate diff < negligibleDiff (negligible diff) perform 20 buys in loop. make sure buys from both reserves. (5598ms)
average gas usage 20 sells. token to ether: 191269
✓ should set reserve rate diff < negligibleDiff perform 20 sells in loop. make sure sells from both reserves. (5278ms)
✓ should verify trade reverted when 0 source amount.
✓ should verify trade reverted when network disabled. (343ms)
✓ should verify trade reverted when handle fee fails (due to different network address in burner). (882ms)
✓ should verify trade reverted when handle fee fails (due to different network address in burner). (789ms)
✓ should verify trade reverted when hint size no as expected (0 or 4 bytes)
✓ should verify trade reverted when different network address in reserve. (614ms)
✓ should verify trade reverted when different network address in reserve. (568ms)
✓ should verify trade reverted when sender isn't networkProxy. (283ms)
✓ should verify buy reverted when bad ether amount is sent. (290ms)
✓ should verify sell reverted when not enough token allowance. (445ms)
✓ should verify sell reverted when sent with ether value. (305ms)
✓ should verify trade reverted when dest amount (actual amount) is 0. (961ms)
✓ should verify trade reverted (token to token) when dest amount (actual amount) is 0. (1493ms)
✓ should verify for qty 0 return rate is 0 (872ms)
✓ verify when whitelist contract isn't set. user gets 'infinte' cap (95ms)
✓ verify getUserCapInTokenWei always reverts
✓ should test listing and unlisting pairs. compare to listed pairs API. (596ms)
✓ should test can't list pairs if reserve not added. (125ms)
✓ should test can't list token that its approve API fails. (106ms)
✓ should test listing and unlisting new pair for new reserve. see rate changes. token to eth. as expected. (1554ms)
✓ should test listing and unlisting new pair for new reserve. see rate changes. token to token. as expected. (7138ms)
✓ should verify buy reverted when unlisting pair. (542ms)
✓ should verify sell reverted when unlisting pair. (503ms)
✓ should verify trade reverted when gas price above set max. (298ms)
✓ should verify trade reverted when ether amount above user cap in white list. (587ms)
✓ should verify trade reverted src amount > max src amount (10**28). (632ms)
✓ should verify trade reverted when rate below min rate. (724ms)
✓ should verify trade reverted when rate above max rate. (634ms)
✓ should verify trade reverted when dest address 0. (282ms)
✓ should get reserve list and verify addresses.
✓ should verify same reserve can't be added twice. (110ms)
✓ should remove reserves and verify reserve array length is 0. (251ms)
✓ verify remove reserve revert scenario (177ms)
✓ should test can't init this contract with empty contracts (address 0). (177ms)
✓ should test can't set enable if any mandatory contract has zero value = wasn't set. (295ms)
✓ should verify network reverts when setting negligible rate diff > 10000. (108ms)
✓ should verify get expected rate reverts when rates contracts not set (address 0). (471ms)
✓ should use setInfo (UI info) and check value is set. (43ms)
token to token trades
✓ should test token to token trade 1 reserve. (1362ms)
✓ should test token to token trade 2 different reserves. (1031ms)
✓ should test token to token trade 2 different reserves. other numbers. (1198ms)
✓ should test token to token trade with limited max dest amount. (1031ms)
✓ should test token to token - limited max dest amount - different numbers. (1106ms)
✓ should test token to token trade with same src and dest token. (714ms)
average gas usage 19 buys. token to token: 328501
✓ test token to token, a few trades, both reserves. (21687ms)
permissionless order book reserve
✓ add permission less order book reserve for new token using reserve lister. see success... (575ms)
✓ deposit tokens to new orderbookReserve, make token to eth orders, see network returns rate value (746ms)
✓ verify getExpectedRateOnlyPermission reverts when expected rate contract doesn't exist (not set) (71ms)
✓ deposit EthWei to new orderbookReserve, make eth to token orders, see network returns rate value (640ms)
take 2 Eth to token orders gas: 305350
✓ trade ETH to token permissionless through network (415ms)
take 2 tokenToEth orders gas: 233247
✓ trade permissionless token to ETH through network (541ms)
✓ create order book reserve for token that is already listed in regular reserve. list it in network (246ms)
✓ list an existing token with better rate then other reserves (buy), get rate with / without permissionless, see rate diff (1352ms)
✓ test getting rate only permissioned with hint (1125ms)
✓ trade (buy) token listed regular and order book. see token taken from order book reserve(better rate) (685ms)
✓ trade (buy) token listed regular and order book. when permissionless not allowed. see token taken from regular reserve (625ms)
✓ list an existing token with better rate then other reserves (sell), get rate with / without permissionless, see rate diff (1278ms)
✓ trade (sell) token listed regular and order book. see token taken from order book reserve(better rate) (721ms)
✓ trade (sell) token listed regular and order book permissionless not allowed. see token taken from regular reserve (667ms)
✓ get rate token to token with token listed regular and permissionless. see diff (2359ms)
token to token with permissionless. partial order amount. gas: 378772
✓ trade token to token with / without permissionless. see as expected (2193ms)
token to token with permissionless. partial order amount. gas: 373875
✓ trade token to token with / without permissionless. see as expected (2176ms)
gas only permissioned: 192181
gas with traversing permissionless 9 orders (not taking): 237163
gas effect of traversing 9 orders in get rate (not taking): 44982
gas 9 orders from permissionless: 699242
✓ Add 9 'spam' orders Eth to token see gas affect on trade with other reserve. (2832ms)
gas only permissioned: 192413
gas with traversing permissionless 5 orders (not taking): 220443
gas effect of traversing 5 orders in get rate (not taking): 28030
gas 5 orders from permissionless: 467544
✓ Add 5 'spam' orders Eth to token see gas affect on trade with other reserve. (2361ms)
gas price taking 3.7 orders. remaining removed: 341137
gas price taking 4.7 orders. remaining removed: 399087
gas price taking 5.7 orders. remaining removed: 457039
gas price taking 6.7 orders. remaining removed: 514991
✓ see gas consumption when taking 3.6, 4.6, 5.6, 6.6, 7.6 orders. remaining removed. (3133ms)
Contract: KyberNetworkProxy
✓ should init globals. init 2 ConversionRates Inst, init tokens and add to pricing inst. set basic data per token. (2089ms)
✓ should set base rates + compact data rate factor + step function. for all tokens. (1574ms)
✓ should init network and reserves and set all reserve data including balances (1491ms)
✓ init kyber network proxy and kyber network data, list token pairs. (1154ms)
✓ should disable 1 reserve. perform buy and check: balances changed as expected. (607ms)
✓ should disable 1 reserve. swap ether to token (simple API) check: balances changed as expected. (490ms)
✓ should disable 1 reserve. perform sell and check: balances changed as expected. (555ms)
✓ should disable 1 reserve. swap token to ether (simple API): balances changed as expected. (664ms)
✓ use trade with hint. disable 1 reserve. perform buy and check: balances changed as expected. (656ms)
✓ use trade with hint. see hint size > 0 reverts (436ms)
✓ use trade with hint. disable 1 reserve. perform sell and check: balances changed as expected. (569ms)
trade ether to token without randomize reserve. gasUsed: 240893
✓ perform buy with reserve rate diff > negligibleDiff. make sure buy from correct reserve. (822ms)
trade token to ether without randomize reserve. gasUsed: 219101
✓ should set reserve sell rate diff > negligibleDiff. perform sell and make sure done on expected reserve. (752ms)
trade token to ether. gas used: 196738
✓ should test low 'max dest amount' on sell. make sure it reduces source amount. (1280ms)
trade ether to token with low max dest amount. gas used: 241388
✓ should test low 'max dest amount' on buy. make sure it reduces source amount. (1182ms)
average gas usage 20 buys. ether to token: 228455
✓ should set reserve rate diff < negligibleDiff (negligible diff) perform 20 buys in loop. make sure buys from both reserves. (5808ms)
✓ should verify trade reverted when network disabled. (393ms)
✓ should verify buy reverted when bad ether amount is sent. (300ms)
✓ should verify sell reverted when not enough token allowance. (383ms)
✓ should verify sell reverted when not enough tokens in source address allowance. (503ms)
✓ should verify sell reverted when sent with ether value. (339ms)
✓ should verify trade reverted when dest amount (actual amount) is 0. (959ms)
✓ should verify trade reverted when gas price above set max. (319ms)
✓ should verify trade reverted when ether amount above user cap in white list. (605ms)
✓ should verify trade reverted src amount > max src amount (10**28). (689ms)
✓ should verify trade reverted when rate below min rate. (764ms)
✓ should verify trade reverted when rate above max rate. (755ms)
✓ should verify trade reverted when dest address 0. (305ms)
✓ should test can't init this contract with empty contracts (address 0) or with non admin. (146ms)
✓ should set kyberNetwork and test event. (58ms)
✓ should test getter. user cap in Wei. (40ms)
✓ should test getter. user cap in token Wei. see reverts
✓ should test getter. max gas price.
✓ should test getter. max gas price. (111ms)
✓ use setInfo (UI info) and see value returned in getter. (41ms)
✓ should test token to token trade 1 reserve. (1452ms)
✓ should test token to token swap (simple API) 2 different reserves. (1002ms)
✓ should test token to token trade 2 different reserves. other numbers. (1097ms)
✓ should test token to token trade with limited max dest amount. (1030ms)
✓ should test token to token - limited max dest amount - different numbers. (1149ms)
✓ verify trade is reverted when malicious reserve tries recursive call = tries to call kyber trade function. (1213ms)
✓ should verify revert when token to token trade with same src and dest token. (778ms)
✓ test token to token, a few trades, both reserves. (21825ms)
✓ init smart malicious network and set all contracts and params (968ms)
✓ verify sell with malicious network reverts when using exact rate as min rate (843ms)
✓ verify buy with malicious network reverts when using exact rate as min rate (898ms)
✓ verify buy with malicious network reverts when using slippage rate as min rate - depending on taken amount (980ms)
✓ verify when user sets min rate to 0 all tokens can be stolen (659ms)
✓ init malicious network returning wrong actual dest, and set all contracts and params (1024ms)
✓ verify sell with malicious network2 reverts when using any min rate (0). (817ms)
✓ verify buy with malicious network reverts with any rate (even 0) as min rate (939ms)
✓ init network with no max dest check. set all contracts and params (999ms)
✓ verify sell with low max dest amount reverts. (754ms)
✓ verify buy with network without max dest reverts if dest amount is below actual dest amount (678ms)
✓ init 'generous' network with trade reverse direction, could result in overflow. (989ms)
✓ verify trade with reverses trade = (src address before is lower then source address after), reverts. (605ms)
✓ verify trade with reversed trade (malicious token or network) ->dest address after is lower then dest address before, reverts. (621ms)
permissionless order book reserve
✓ add permission less order book reserve for new token using reserve lister. see success... (672ms)
✓ deposit tokens to new orderbookReserve, make token to eth orders, see proxy returns rate value (764ms)
✓ deposit EthWei to new orderbookReserve, make eth to token orders, see proxy returns rate value (668ms)
take 2 Eth to token orders gas: 347860
✓ trade ETH to token permissionless through network (432ms)
take 2 tokenToEth orders gas: 237680
✓ trade permissionless token to ETH through network (528ms)
✓ create order book reserve for token that is already listed in regular reserve. list it in network (256ms)
✓ list an existing token with better rate then other reserves (buy), get rate with / without permissionless, see rate diff (1445ms)
✓ trade (buy) token listed regular and order book. see token taken from order book reserve(better rate) (704ms)
✓ trade (buy) token listed regular and order book. when permissionless not allowed. see token taken from regular reserve (718ms)
✓ list an existing token with better rate then other reserves (sell), get rate with / without permissionless, see rate diff (1221ms)
✓ trade (sell) token listed regular and order book. see token taken from order book reserve(better rate) (744ms)
✓ trade (sell) token listed regular and order book permissionless not allowed. see token taken from regular reserve (711ms)
✓ get rate token to token with token listed regular and permissionless. see diff (1191ms)
token to token with permissionless. partial order amount. gas: 401747
✓ trade token to token with / without permissionless. see as expected (2383ms)
token to token with permissionless. partial order amount. gas: 397479
✓ trade token to token with / without permissionless. see as expected (2343ms)
gas only permissioned: 211896
gas with traversing permissionless 9 orders (not taking): 256686
gas effect of traversing 9 orders in get rate (not taking): 44790
gas 9 orders from permissionless: 718655
✓ Add 9 'spam' orders Eth to token see gas affect on trade with other reserve. (3205ms)
gas only permissioned: 212012
gas with traversing permissionless 5 orders (not taking): 239862
gas effect of traversing 5 orders in get rate (not taking): 27850
gas 5 orders from permissionless: 486847
✓ Add 5 'spam' orders Eth to token see gas affect on trade with other reserve. (2473ms)
gas price taking 3.7 orders. remaining removed: 345570
gas price taking 4.7 orders. remaining removed: 403520
gas price taking 5.7 orders. remaining removed: 461472
gas price taking 6.7 orders. remaining removed: 519424
✓ see gas consumption when taking 3.6, 4.6, 5.6, 6.6, 7.6 orders. take as sell (take token to Eth). remaining removed. (3495ms)
gas price taking 3.7 orders. remaining removed: 358393
gas price taking 4.7 orders. remaining removed: 416333
gas price taking 5.7 orders. remaining removed: 474275
gas price taking 6.7 orders. remaining removed: 532217
✓ see gas consumption when taking 3.6, 4.6, 5.6, 6.6, 7.6 orders. take as buy (take Eth to token). remaining removed. (3248ms)
Contract: KyberOasisReserve
✓ should init globals (584ms)
✓ should do a eth->dai trade (170ms)
✓ should do a eth->mkr trade that takes 1st level (161ms)
✓ should do a eth->mkr trade that takes 2nd level (170ms)
✓ should do a eth->mkr trade that takes 3rd level (183ms)
✓ should do a eth->mkr trade that takes more than 3rd level and verify we get 0 rate (40ms)
✓ should do a eth->mkr rate query with 0 src quantity and make sure we get non 0 rate
✓ should do a eth->mkr rate query with very small src quantity and make sure we get non 0 rate
✓ should do a dai->eth trade (163ms)
✓ should do a mkr->eth trade that takes 1st level (155ms)
✓ should do a mkr->eth trade that takes 2nd level (167ms)
✓ should do a mkr->eth trade that takes 3rd level (176ms)
✓ should do a mkr->eth trade that takes mored than 3rd level and make sure we get 0 rate (43ms)
✓ should do a mkr->eth trade with 0 src quantity and make sure we get non 0 rate
✓ should do a mkr->eth trade with very small src quantity and make sure we get non 0 rate
✓ should disable trades in the reserve and see that getconversionrate reverts (90ms)
✓ should re-enable trades in the reserve and see that getconversionrate and trade does not revert (139ms)
✓ should change network to another address and see that trade fails since sender is not network (83ms)
✓ should return network admin address and see that trade does not revert (136ms)
✓ should set fee to another value and make sure getconversionrate and trade pass (225ms)
✓ should query rate for 0 amount of tokens and see we get rate as for 1 dai (58ms)
✓ should delist a token and see that we get 0 rate on it (120ms)
✓ should try getconversionrate for a token other than trade token and see it reverts (86ms)
✓ should try getconversionrate for without eth as src or dest and see it reverts (39ms)
✓ should try getconversionrate without eth as src or dest and see it reverts
✓ should try trade but send src amount than specified (142ms)
✓ should try to trade but send from address other than network (130ms)
✓ should try to change network without being admin (54ms)
✓ should try to list a token without being admin (153ms)
✓ should try to delist a token without being admin (154ms)
✓ should try to set fee without being admin (46ms)
✓ verify that cannot get buy rate when exceeding order book first level (58ms)
✓ verify that cannot get sell rate when exceeding order book first level (56ms)
✓ should init hybrid reserve (842ms)
✓ check that can buy and sell from internal inventory (76ms)
✓ check conversion rates from internal inventory (95ms)
✓ do buy from internal inventory (151ms)
✓ do sell to internal inventory (128ms)
✓ check that cannot buy from internal inventory when amt exceed balance
✓ check that cannot buy from internal inventory when exceed min dai balance
✓ check that cannot sell to internal inventory when amt exceed balance
✓ check that cannot sell to internal inventory when exceed max dai balance
✓ check that cannot buy or sell with internal inventory when there is price arbitrage (95ms)
✓ check that cannot buy or sell with internal inventory when there is small spread (98ms)
✓ do buy from otc inventory (214ms)
✓ do sell to internal inventory (199ms)
✓ check setInternalPriceAdminParams from non admin
✓ check setInternalPriceAdminParams for non listed token
✓ check setInternalPriceAdminParams for too high premium
✓ check setInternalPriceAdminParams for too high min spread
✓ check setInternalInventoryMinMax from non operator
✓ check setInternalInventoryMinMax for non listed token
Contract: KyberReserve
✓ should init globals. init ConversionRates Inst, init tokens and add to pricing inst. set basic data per token. (980ms)
✓ should set base prices + compact data price factor + step function. for all tokens. (812ms)
✓ should init reserve and set all reserve data including balances (662ms)
✓ should perform small buy (no steps) and check: balances changed, rate is expected rate. (173ms)
✓ should perform a few buys with steps and check: correct balances change, rate is expected rate.
✓ should perform a few buys with steps and check: correct balances change, rate is expected rate. Also tokens are in a wallet (126ms)
✓ should perform small sell and check: balances changed, rate is expected rate. (213ms)
✓ should verify trade success when validation disabled. (211ms)
✓ should perform a few sells with steps. check: balances changed, rate is expected rate. (3747ms)
✓ should test sell trade reverted without token approved. (247ms)
✓ should test trade reverted when trade disabled . (272ms)
✓ should test trade reverted when conversion rate 0. (214ms)
✓ should test trade reverted when dest amount is 0. (217ms)
✓ should test buy trade reverted when not sending correct ether value. (168ms)
✓ should test trade reverted when not sent from network. (162ms)
✓ should test trade reverted when sending ether value with sell trade. (219ms)
✓ should test reverted scenario for set contracts call. (71ms)
✓ should test get src qty when dst qty is very small and source is near 0. (82ms)
✓ should test get src qty reverted when decimals diff > max decimals diff (18). (171ms)
✓ should approve withdraw address and withdraw. token and ether (332ms)
✓ should test reverted scenarios for withdraw (56ms)
✓ should test reverted scenarios for setTokenWallet
✓ should test get dest qty (123ms)
✓ should test get src qty (119ms)
✓ should test get conversion rate options (220ms)
✓ should test get conversion rate return 0 when sanity rate is lower the calculated rate (593ms)
✓ should zero reserve balance and see that get rate returns zero when not enough dest balance (383ms)
✓ should test can't init this contract with empty contracts (address 0). (199ms)
Contract: KyberUniswapReserve
Deployed test token with 18 decimals at 0xf4ef9137d0473272e2be85906d23c84e66576252
UniswapFactoryMock deployed to address 0xad3868ccdd9b93ff84d0c7826fa86ca48cb50db9
KyberUniswapReserve deployed to address 0x3c66ed264a680c51e9f856bc98a11e6f5103c998
constructor params
✓ UniswapFactory must not be 0
✓ admin must not be 0
✓ kyberNetwork must not be 0
✓ UniswapFactory is saved (61ms)
✓ admin is saved (71ms)
✓ kyberNetwork is saved (64ms)
Misc
✓ should be able to send ETH to reserve
✓ should allow admin to withdraw tokens (85ms)
✓ reject withdrawing tokens by non-admin users (48ms)
#getConversionRate
✓ conversion rate 1:1 (70ms)
✓ conversion rate eth -> token of 1:2 (69ms)
✓ conversion rate eth -> token of 2:1 (70ms)
✓ conversion rate token -> eth of 2:1 (71ms)
✓ conversion rate token -> eth of 1:2 (70ms)
- conversion between a non-18 decimals token and ETH
- conversion between ETH and a non-18 decimals token
✓ fail if both tokens are ETH
✓ fail if both tokens are not ETH
Deployed test token with 18 decimals at 0x59fa98353383f98f0ce45837bbaaba6a05a429e9
✓ fail for unsupported tokens (61ms)
✓ conversion rate eth -> token of 1:2, with 1% fees (71ms)
✓ conversion rate token -> eth of 2:1, with 5% fees (76ms)
✓ returns 0 if trade is disabled (96ms)
#trade
✓ can be called from KyberNetwork (144ms)
✓ can not be called by user other than KyberNetwork (105ms)
✓ fail if ETH in src and dest (106ms)
✓ fail if token in both src and dest (126ms)
✓ simple trade eth -> token (190ms)
✓ simple trade token -> ETH (258ms)
✓ trade eth -> token with 0.25% fee (188ms)
✓ trade token -> ETH with 0.25% fee (217ms)
✓ trade eth -> token with rate 1:2 and 0.25% fee (185ms)
✓ trade token -> ETH with rate 1:2 and 0.25% fee (208ms)
✓ fail if actual trade rate < conversionRate param (152ms)
✓ ETH -> token, fail if srcAmount != msg.value (108ms)
✓ fail if trade is disabled (118ms)
✓ trade event emitted (165ms)
#setFee
✓ default fee (59ms)
✓ fee value saved (40ms)
✓ calling by admin allowed
✓ calling by non-admin reverts
✓ fail for fee > 10000
✓ event sent on setFee
#listToken
Deployed test token with 18 decimals at 0xc7479f79be51fbd747752eec77cbb3dd593227b8
✓ calling by admin allowed (92ms)
Deployed test token with 18 decimals at 0x8dab4dc78537b3a94b48160f58025ae864c2e8de
✓ calling by non-admin reverts (108ms)
Deployed test token with 18 decimals at 0x849c809bcd8a50dcf44f2a4a6029b658518e9b2a
✓ adding token (101ms)
Deployed test token with 10 decimals at 0x20bccb66ec7cb06c5cc84763fc2c44ec98d5460f
✓ listing a token saves its decimals (101ms)
✓ fails for token with address 0
Deployed test token with 18 decimals at 0x520afcfebcc15bd5bbe53fb89cd4b259b0adef9a
✓ event sent on token listed (100ms)
Deployed test token with 18 decimals at 0x5ab9840ac68e6ae73cdbb6057a0683279136b5cf
✓ listing a token saves its uniswap exchange address (181ms)
Deployed test token with 18 decimals at 0xe6925601ab95f8688c4a930faf3ea03aa524d5b6
✓ listing token gives allowence to exchange (112ms)
#delistToken
Deployed test token with 18 decimals at 0xfdbd3809b5df439ec4da0344f6cd0adb96ffe4d2
✓ calling by admin allowed (116ms)
Deployed test token with 18 decimals at 0xca094c9b48e83fda7869b6c1fada2c99066a0788
✓ calling by non-admin reverts (108ms)
Deployed test token with 18 decimals at 0x500ebb3b371bf3937a31e1bf9685534614a8bbc4
✓ after calling token no longer supported (133ms)
Deployed test token with 18 decimals at 0x4c8086d8000b9e97c6386264c5d166245dacdde1
✓ cannot delist unlisted tokens (132ms)
Deployed test token with 18 decimals at 0xf140be5f1c3f778172fd9758554ff27c2bad78d4
✓ event sent on token delisted (122ms)
Responsible reserve
✓ enableTrade() allowed for admin (78ms)
✓ enableTrade() fails if not admin
✓ event emitted on enableTrade()
✓ disableTrade() allowed for alerter (77ms)
✓ disableTrade() fails if not alerter (83ms)
✓ event emitted on disableTrade()
#setKyberNetwork
✓ set new value by admin (38ms)
✓ should reject address 0
✓ only admin can set values
✓ setting value emits an event
Contract: LiquidityConversionRates
✓ should init globals
✓ should init LiquidityConversionRates Inst and setting of reserve address (110ms)
✓ should test abs. (54ms)
✓ should set liquidity params (45ms)
✓ should test calculation of collected fee for buy case. (71ms)
✓ should test calculation of collected fee for sell case. (68ms)
✓ should test reducing fees from amount.
✓ should test converting from wei to formula formulaPrecision.
✓ should test converting from token wei to formula formulaPrecision.
✓ should test calculation of buy rate for zero quantity. (65ms)
✓ should test calculation of sell rate for zero quantity. (59ms)
✓ should test calculation of deltaT. (80ms)
✓ should test calculation of buy rate for non zero quantity. (73ms)
✓ should test calculation of deltaE. (165ms)
✓ should test calculation of sell rate for non zero quantity. (164ms)
✓ should test recording of imbalance. (69ms)
✓ should test resetting of imbalance not by admin.
✓ should test resetting of imbalance. (46ms)
✓ should test getrate for buy=true and qtyInSrcWei = non_0. (79ms)
✓ should test getrate for buy=true and qtyInSrcWei = 0. (60ms)
✓ should test getrate for buy=true and qtyInSrcWei very small. (63ms)
✓ should test getrate for buy=false and qtyInSrcWei = non_0. (175ms)
✓ should test getrate for buy=false and qtyInSrcWei = 0. (63ms)
✓ should test getrate for buy=false and qtyInSrcWei very small. (63ms)
✓ should test set liquidity params not as admin. (64ms)
✓ should test set liquidity params with illegal fee in BPS configuration. (61ms)
✓ should test get rate with invalid token. (64ms)
✓ should test max sell rate smaller then expected rate and min sell rate larger then expected rate . (640ms)
✓ should test exceeding max cap buy
✓ should test exceeding max cap sell (166ms)
✓ should test get rate with E (75ms)
✓ should test recording of imbalance from non reserve address.
Contract: kyberReserve for Liquidity
✓ should init globals. init ConversionRates Inst, token, set liquidity params . (158ms)
✓ should init reserve and set all reserve data including balances (204ms)
✓ should test getConversionRate of buy rate for zero quantity. (84ms)
✓ should test getConversionRate of sell rate for zero quantity. (72ms)
✓ should test getConversionRate of buy rate for non zero quantity. (100ms)
✓ should test getConversionRate of sell rate for non zero quantity. (188ms)
✓ should perform a series of buys and check: correct balances change, rates and fees as expected. (5891ms)
1) should perform a series of sells and check: correct balances change, rates and fees as expected.
2) "after each" hook: after test for "should perform a series of sells and check: correct balances change, rates and fees as expected."
Contract: FeeBurner
3) "before all" hook: prepare suite
Contract: MockDepositAddressEther
4) "before all" hook: prepare suite
Contract: MockDepositAddressToken
5) "before all" hook: prepare suite
Contract: MockExchange
6) "before all" hook: prepare suite
Contract: OrderIdManager
7) "before all" hook: prepare suite
Contract: OrderList
8) "before all" hook: prepare suite
Contract: OrderbookReserve
9) "before all" hook: prepare suite
Contract: OrderbookReserve_feeBurner_network
10) "before all" hook: prepare suite
Contract: PermissionGroups
11) "before all" hook: prepare suite
Contract: PermissionlessOrderbookReserveLister
12) "before all" hook: prepare suite
Contract: PermissionlessOrderbookReserveLister_feeBurner_tests
13) "before all" hook: prepare suite
Contract: SanityRates
14) "before all" hook: prepare suite
Contract: utils
15) "before all" hook: prepare suite
Contract: utils2
16) "before all" hook: prepare suite
Contract: VolumeImbalanceRecorder
17) "before all" hook: prepare suite
Contract: WhiteList
18) "before all" hook: prepare suite
Contract: Withdrawable
19) "before all" hook: prepare suite
Contract: WrapConversionRates
20) "before all" hook: prepare suite
Contract: WrapFeeBurner
21) "before all" hook: prepare suite
496 passing (5m)
2 pending
21 failing
1) Contract: kyberReserve for Liquidity should perform a series of sells and check: correct balances change, rates and fees as expected.:
Error: Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
at ProviderError.ExtendableError (node_modules/truffle/build/cli.bundled.js:9328:17)
at new ProviderError (node_modules/truffle/build/cli.bundled.js:314009:24)
at node_modules/truffle/build/cli.bundled.js:314133:17
at node_modules/truffle/build/cli.bundled.js:314191:24
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/cli.bundled.js:315621:13)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/cli.bundled.js:70159:18)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/cli.bundled.js:70449:12)
at XMLHttpRequest._onHttpRequestError (node_modules/truffle/build/cli.bundled.js:70639:12)
at ClientRequest.<anonymous> (node_modules/truffle/build/cli.bundled.js:70509:24)
at Socket.socketOnEnd (_http_client.js:423:9)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
2) Contract: kyberReserve for Liquidity "after each" hook: after test for "should perform a series of sells and check: correct balances change, rates and fees as expected.":
Error: Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
at ProviderError.ExtendableError (node_modules/truffle/build/cli.bundled.js:9328:17)
at new ProviderError (node_modules/truffle/build/cli.bundled.js:314009:24)
at node_modules/truffle/build/cli.bundled.js:314133:17
at node_modules/truffle/build/cli.bundled.js:314191:24
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/cli.bundled.js:315621:13)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/cli.bundled.js:70159:18)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/cli.bundled.js:70449:12)
at XMLHttpRequest._onHttpRequestError (node_modules/truffle/build/cli.bundled.js:70639:12)
at ClientRequest.<anonymous> (node_modules/truffle/build/cli.bundled.js:70509:24)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
3) Contract: FeeBurner "before all" hook: prepare suite:
Error: Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
at ProviderError.ExtendableError (node_modules/truffle/build/cli.bundled.js:9328:17)
at new ProviderError (node_modules/truffle/build/cli.bundled.js:314009:24)
at node_modules/truffle/build/cli.bundled.js:314133:17
at node_modules/truffle/build/cli.bundled.js:314191:24
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/cli.bundled.js:315621:13)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/cli.bundled.js:70159:18)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/cli.bundled.js:70449:12)
at XMLHttpRequest._onHttpRequestError (node_modules/truffle/build/cli.bundled.js:70639:12)
at ClientRequest.<anonymous> (node_modules/truffle/build/cli.bundled.js:70509:24)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
4) Contract: MockDepositAddressEther "before all" hook: prepare suite:
Error: Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
at ProviderError.ExtendableError (node_modules/truffle/build/cli.bundled.js:9328:17)
at new ProviderError (node_modules/truffle/build/cli.bundled.js:314009:24)
at node_modules/truffle/build/cli.bundled.js:314133:17
at node_modules/truffle/build/cli.bundled.js:314191:24
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/cli.bundled.js:315621:13)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/cli.bundled.js:70159:18)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/cli.bundled.js:70449:12)
at XMLHttpRequest._onHttpRequestError (node_modules/truffle/build/cli.bundled.js:70639:12)
at ClientRequest.<anonymous> (node_modules/truffle/build/cli.bundled.js:70509:24)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
5) Contract: MockDepositAddressToken "before all" hook: prepare suite:
Error: Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
at ProviderError.ExtendableError (node_modules/truffle/build/cli.bundled.js:9328:17)
at new ProviderError (node_modules/truffle/build/cli.bundled.js:314009:24)
at node_modules/truffle/build/cli.bundled.js:314133:17
at node_modules/truffle/build/cli.bundled.js:314191:24
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/cli.bundled.js:315621:13)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/cli.bundled.js:70159:18)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/cli.bundled.js:70449:12)
at XMLHttpRequest._onHttpRequestError (node_modules/truffle/build/cli.bundled.js:70639:12)
at ClientRequest.<anonymous> (node_modules/truffle/build/cli.bundled.js:70509:24)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
6) Contract: MockExchange "before all" hook: prepare suite:
Error: Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
at ProviderError.ExtendableError (node_modules/truffle/build/cli.bundled.js:9328:17)
at new ProviderError (node_modules/truffle/build/cli.bundled.js:314009:24)
at node_modules/truffle/build/cli.bundled.js:314133:17
at node_modules/truffle/build/cli.bundled.js:314191:24
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/cli.bundled.js:315621:13)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/cli.bundled.js:70159:18)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/cli.bundled.js:70449:12)
at XMLHttpRequest._onHttpRequestError (node_modules/truffle/build/cli.bundled.js:70639:12)
at ClientRequest.<anonymous> (node_modules/truffle/build/cli.bundled.js:70509:24)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
7) Contract: OrderIdManager "before all" hook: prepare suite:
Error: Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
at ProviderError.ExtendableError (node_modules/truffle/build/cli.bundled.js:9328:17)
at new ProviderError (node_modules/truffle/build/cli.bundled.js:314009:24)
at node_modules/truffle/build/cli.bundled.js:314133:17
at node_modules/truffle/build/cli.bundled.js:314191:24
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/cli.bundled.js:315621:13)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/cli.bundled.js:70159:18)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/cli.bundled.js:70449:12)
at XMLHttpRequest._onHttpRequestError (node_modules/truffle/build/cli.bundled.js:70639:12)
at ClientRequest.<anonymous> (node_modules/truffle/build/cli.bundled.js:70509:24)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
8) Contract: OrderList "before all" hook: prepare suite:
Error: Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
at ProviderError.ExtendableError (node_modules/truffle/build/cli.bundled.js:9328:17)
at new ProviderError (node_modules/truffle/build/cli.bundled.js:314009:24)
at node_modules/truffle/build/cli.bundled.js:314133:17
at node_modules/truffle/build/cli.bundled.js:314191:24
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/cli.bundled.js:315621:13)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/cli.bundled.js:70159:18)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/cli.bundled.js:70449:12)
at XMLHttpRequest._onHttpRequestError (node_modules/truffle/build/cli.bundled.js:70639:12)
at ClientRequest.<anonymous> (node_modules/truffle/build/cli.bundled.js:70509:24)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
9) Contract: OrderbookReserve "before all" hook: prepare suite:
Error: Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
at ProviderError.ExtendableError (node_modules/truffle/build/cli.bundled.js:9328:17)
at new ProviderError (node_modules/truffle/build/cli.bundled.js:314009:24)
at node_modules/truffle/build/cli.bundled.js:314133:17
at node_modules/truffle/build/cli.bundled.js:314191:24
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/cli.bundled.js:315621:13)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/cli.bundled.js:70159:18)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/cli.bundled.js:70449:12)
at XMLHttpRequest._onHttpRequestError (node_modules/truffle/build/cli.bundled.js:70639:12)
at ClientRequest.<anonymous> (node_modules/truffle/build/cli.bundled.js:70509:24)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
10) Contract: OrderbookReserve_feeBurner_network "before all" hook: prepare suite:
Error: Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
at ProviderError.ExtendableError (node_modules/truffle/build/cli.bundled.js:9328:17)
at new ProviderError (node_modules/truffle/build/cli.bundled.js:314009:24)
at node_modules/truffle/build/cli.bundled.js:314133:17
at node_modules/truffle/build/cli.bundled.js:314191:24
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/cli.bundled.js:315621:13)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/cli.bundled.js:70159:18)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/cli.bundled.js:70449:12)
at XMLHttpRequest._onHttpRequestError (node_modules/truffle/build/cli.bundled.js:70639:12)
at ClientRequest.<anonymous> (node_modules/truffle/build/cli.bundled.js:70509:24)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
11) Contract: PermissionGroups "before all" hook: prepare suite:
Error: Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
at ProviderError.ExtendableError (node_modules/truffle/build/cli.bundled.js:9328:17)
at new ProviderError (node_modules/truffle/build/cli.bundled.js:314009:24)
at node_modules/truffle/build/cli.bundled.js:314133:17
at node_modules/truffle/build/cli.bundled.js:314191:24
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/cli.bundled.js:315621:13)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/cli.bundled.js:70159:18)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/cli.bundled.js:70449:12)
at XMLHttpRequest._onHttpRequestError (node_modules/truffle/build/cli.bundled.js:70639:12)
at ClientRequest.<anonymous> (node_modules/truffle/build/cli.bundled.js:70509:24)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
12) Contract: PermissionlessOrderbookReserveLister "before all" hook: prepare suite:
Error: Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
at ProviderError.ExtendableError (node_modules/truffle/build/cli.bundled.js:9328:17)
at new ProviderError (node_modules/truffle/build/cli.bundled.js:314009:24)
at node_modules/truffle/build/cli.bundled.js:314133:17
at node_modules/truffle/build/cli.bundled.js:314191:24
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/cli.bundled.js:315621:13)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/cli.bundled.js:70159:18)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/cli.bundled.js:70449:12)
at XMLHttpRequest._onHttpRequestError (node_modules/truffle/build/cli.bundled.js:70639:12)
at ClientRequest.<anonymous> (node_modules/truffle/build/cli.bundled.js:70509:24)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
13) Contract: PermissionlessOrderbookReserveLister_feeBurner_tests "before all" hook: prepare suite:
Error: Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
at ProviderError.ExtendableError (node_modules/truffle/build/cli.bundled.js:9328:17)
at new ProviderError (node_modules/truffle/build/cli.bundled.js:314009:24)
at node_modules/truffle/build/cli.bundled.js:314133:17
at node_modules/truffle/build/cli.bundled.js:314191:24
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/cli.bundled.js:315621:13)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/cli.bundled.js:70159:18)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/cli.bundled.js:70449:12)
at XMLHttpRequest._onHttpRequestError (node_modules/truffle/build/cli.bundled.js:70639:12)
at ClientRequest.<anonymous> (node_modules/truffle/build/cli.bundled.js:70509:24)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
14) Contract: SanityRates "before all" hook: prepare suite:
Error: Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
at ProviderError.ExtendableError (node_modules/truffle/build/cli.bundled.js:9328:17)
at new ProviderError (node_modules/truffle/build/cli.bundled.js:314009:24)
at node_modules/truffle/build/cli.bundled.js:314133:17
at node_modules/truffle/build/cli.bundled.js:314191:24
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/cli.bundled.js:315621:13)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/cli.bundled.js:70159:18)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/cli.bundled.js:70449:12)
at XMLHttpRequest._onHttpRequestError (node_modules/truffle/build/cli.bundled.js:70639:12)
at ClientRequest.<anonymous> (node_modules/truffle/build/cli.bundled.js:70509:24)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
15) Contract: utils "before all" hook: prepare suite:
Error: Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
at ProviderError.ExtendableError (node_modules/truffle/build/cli.bundled.js:9328:17)
at new ProviderError (node_modules/truffle/build/cli.bundled.js:314009:24)
at node_modules/truffle/build/cli.bundled.js:314133:17
at node_modules/truffle/build/cli.bundled.js:314191:24
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/cli.bundled.js:315621:13)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/cli.bundled.js:70159:18)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/cli.bundled.js:70449:12)
at XMLHttpRequest._onHttpRequestError (node_modules/truffle/build/cli.bundled.js:70639:12)
at ClientRequest.<anonymous> (node_modules/truffle/build/cli.bundled.js:70509:24)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
16) Contract: utils2 "before all" hook: prepare suite:
Error: Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
at ProviderError.ExtendableError (node_modules/truffle/build/cli.bundled.js:9328:17)
at new ProviderError (node_modules/truffle/build/cli.bundled.js:314009:24)
at node_modules/truffle/build/cli.bundled.js:314133:17
at node_modules/truffle/build/cli.bundled.js:314191:24
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/cli.bundled.js:315621:13)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/cli.bundled.js:70159:18)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/cli.bundled.js:70449:12)
at XMLHttpRequest._onHttpRequestError (node_modules/truffle/build/cli.bundled.js:70639:12)
at ClientRequest.<anonymous> (node_modules/truffle/build/cli.bundled.js:70509:24)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
17) Contract: VolumeImbalanceRecorder "before all" hook: prepare suite:
Error: Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
at ProviderError.ExtendableError (node_modules/truffle/build/cli.bundled.js:9328:17)
at new ProviderError (node_modules/truffle/build/cli.bundled.js:314009:24)
at node_modules/truffle/build/cli.bundled.js:314133:17
at node_modules/truffle/build/cli.bundled.js:314191:24
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/cli.bundled.js:315621:13)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/cli.bundled.js:70159:18)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/cli.bundled.js:70449:12)
at XMLHttpRequest._onHttpRequestError (node_modules/truffle/build/cli.bundled.js:70639:12)
at ClientRequest.<anonymous> (node_modules/truffle/build/cli.bundled.js:70509:24)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
18) Contract: WhiteList "before all" hook: prepare suite:
Error: Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
at ProviderError.ExtendableError (node_modules/truffle/build/cli.bundled.js:9328:17)
at new ProviderError (node_modules/truffle/build/cli.bundled.js:314009:24)
at node_modules/truffle/build/cli.bundled.js:314133:17
at node_modules/truffle/build/cli.bundled.js:314191:24
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/cli.bundled.js:315621:13)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/cli.bundled.js:70159:18)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/cli.bundled.js:70449:12)
at XMLHttpRequest._onHttpRequestError (node_modules/truffle/build/cli.bundled.js:70639:12)
at ClientRequest.<anonymous> (node_modules/truffle/build/cli.bundled.js:70509:24)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
19) Contract: Withdrawable "before all" hook: prepare suite:
Error: Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
at ProviderError.ExtendableError (node_modules/truffle/build/cli.bundled.js:9328:17)
at new ProviderError (node_modules/truffle/build/cli.bundled.js:314009:24)
at node_modules/truffle/build/cli.bundled.js:314133:17
at node_modules/truffle/build/cli.bundled.js:314191:24
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/cli.bundled.js:315621:13)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/cli.bundled.js:70159:18)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/cli.bundled.js:70449:12)
at XMLHttpRequest._onHttpRequestError (node_modules/truffle/build/cli.bundled.js:70639:12)
at ClientRequest.<anonymous> (node_modules/truffle/build/cli.bundled.js:70509:24)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
20) Contract: WrapConversionRates "before all" hook: prepare suite:
Error: Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
at ProviderError.ExtendableError (node_modules/truffle/build/cli.bundled.js:9328:17)
at new ProviderError (node_modules/truffle/build/cli.bundled.js:314009:24)
at node_modules/truffle/build/cli.bundled.js:314133:17
at node_modules/truffle/build/cli.bundled.js:314191:24
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/cli.bundled.js:315621:13)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/cli.bundled.js:70159:18)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/cli.bundled.js:70449:12)
at XMLHttpRequest._onHttpRequestError (node_modules/truffle/build/cli.bundled.js:70639:12)
at ClientRequest.<anonymous> (node_modules/truffle/build/cli.bundled.js:70509:24)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
21) Contract: WrapFeeBurner "before all" hook: prepare suite:
Error: Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
at ProviderError.ExtendableError (node_modules/truffle/build/cli.bundled.js:9328:17)
at new ProviderError (node_modules/truffle/build/cli.bundled.js:314009:24)
at node_modules/truffle/build/cli.bundled.js:314133:17
at node_modules/truffle/build/cli.bundled.js:314191:24
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/cli.bundled.js:315621:13)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/cli.bundled.js:70159:18)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/cli.bundled.js:70449:12)
at XMLHttpRequest._onHttpRequestError (node_modules/truffle/build/cli.bundled.js:70639:12)
at ClientRequest.<anonymous> (node_modules/truffle/build/cli.bundled.js:70509:24)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
//////////////////////////////////////////////////////////
net_version
eth_sendTransaction
Transaction: 0x231548e37090166b3147b4ee69f853fa51496cae73016768e5d5e143d5eaf07e
Gas usage: 45675
Block Number: 106
Block Time: Thu Apr 11 2019 11:45:15 GMT+0000 (UTC)
eth_getTransactionReceipt
net_version
eth_sendTransaction
Transaction: 0x91435bce8592a818b98579dc6a7b875db8be3566a5750a11cca0a8d8d0e11e87
Gas usage: 55486
Block Number: 107
Block Time: Thu Apr 11 2019 11:45:15 GMT+0000 (UTC)
eth_getTransactionReceipt
eth_getBalance
net_version
eth_call
net_version
eth_call
net_version
eth_call
net_version
eth_call
eth_getBalance
net_version
eth_call
net_version
eth_call
net_version
eth_call
net_version
eth_call
net_version
eth_call
net_version
eth_sendTransaction
Transaction: 0xfe39395838889324e55191d20da1b854859cd0b8319ea0046662652e447aed59
Gas usage: 45675
Block Number: 108
Block Time: Thu Apr 11 2019 11:45:16 GMT+0000 (UTC)
eth_getTransactionReceipt
net_version
eth_sendTransaction
Transaction: 0xa2a1d0994e3e28e95c342a22c1ae497a569b0228acff6dcd8010e242efa58a00
Gas usage: 55486
Block Number: 109
Block Time: Thu Apr 11 2019 11:45:16 GMT+0000 (UTC)
eth_getTransactionReceipt
eth_getBalance
net_version
eth_call
net_version
eth_call
net_version
eth_call
net_version
eth_call
eth_getBalance
net_version
eth_call
net_version
eth_call
net_version
eth_call
net_version
eth_call
net_version
eth_call
Killed
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment