Lawrence Forman
882dd4597e
@0x/dev-utils
: Move Error
-> RevertError
coercion logic to @0x/utils
.
2019-07-23 15:27:39 -07:00
Lawrence Forman
2e846159a8
In @0x/dev-utils
: swap order of equality check in RevertError
chai helper from actual.equals(expected)
to expected.equals(actual)
.
2019-07-23 15:17:56 -07:00
Lawrence Forman
94a91ed5c8
In @0x/dev-utils
: Tweak equality assertion failure actual
and expected
rendering to be more readable
2019-07-23 15:17:56 -07:00
Lawrence Forman
162a812189
In @0x/typescript-typings
: Add types for @0x/dev-utils
chai helpers in types/@0x
.
...
In `@0x/dev-utils`: remove global typescript types for chai helpers in lieu of defining them in `@0x/typescript-typings`
2019-07-23 15:17:56 -07:00
Lawrence Forman
1aae68c614
In @0x/dev-utils
: Break out RevertError
helper code into a separate file from chai_setup.ts
.
...
In `@0x/dev-utils`: Add chai support for ganache and geth transaction reverts.
2019-07-23 15:17:28 -07:00
Lawrence Forman
e00ac37cb2
In @0x/dev-utils
fix the RevertError
chai helper's equal
override not passing all arguments to previous handler.
...
In `@0x/dev-utils` add more `RevertError` chai helper tests for backwards compatibility with `rejectedWith`.
In `@0x/dev-utils` instead of overriding `rejectedWith`, add a new method `revertWith`.
In `@0x/dev-utils` clean up the code for the `RevertError` chai helper.
2019-07-23 15:16:49 -07:00
Lawrence Forman
42963ea77d
Use new RevertError
nomenclature.
...
Tweak `RevertError` coercion in chai helper.
Add more `RevertError` chai helper tests.
2019-07-23 15:15:17 -07:00
Lawrence Forman
ed78bde359
Make the chai helper for rich reverts in dev-utils
more robust.
...
Add rich reverts chai helper tests to `dev-utils`
2019-07-23 15:14:52 -07:00
Lawrence Forman
9319f362bb
Add chaiSetup
function wtih rich revert support to @0x/dev-utils
2019-07-23 15:12:33 -07:00
Xianny
7423028fea
Replace lodash with built-ins where possible to reduce bundle size ( #1766 )
...
* add tslint rule to disallow lodash.isUndefined
* add tslint rule to disallow lodash.isNull
* apply fixes
2019-04-10 09:36:32 -07:00
Jacob Evans
180c65cfeb
Change all packages to use web3providerengine without excess polling
2019-03-21 11:50:19 +01:00
Fabio Berger
d01837f42c
Allow using Web3Factory in-process Ganache with existing snapshot
2019-02-08 13:19:47 +00:00
Jacob Evans
2a577e0475
Add Docker image and Snapshot commands
2018-12-17 15:44:24 +11:00
Jacob Evans
9f924e459c
chore: change package org from 0xproject to 0x
2018-10-18 22:27:31 +11:00
Jacob Evans
21f6072186
Handle revert with reason when decoding call result
...
We use in-process ganache which throws on an RPC error. This means all of our tests get a nice revert error thrown when testing against ganache. This is not possible with RPC providers and a revert with reason result is returned. Our callAsync doesn't handle this and attempts to decode the revert with reason error log as a successful log, which results in an error while decoding.
This only works with our fork of ethers https://github.com/ethers-io/ethers.js/pull/188 and will need to be re-worked when updating to Ethers.js 4
2018-09-28 09:59:58 +10:00
Fabio Berger
f4a2e227e1
Remove all in-package monorepo-scripts by adding doc gen/upload and aggregate release note publishing to publish script
2018-07-29 21:58:39 +02:00
Leonid Logvinov
f3241ff86a
Merge pull request #883 from 0xProject/feature/tslint-improvements
...
New tslint rules
2018-07-18 14:54:47 +02:00
Alex Browne
2bfacbb8ba
Mine a dummy block in blockchain_lifecycle to re-apply any time offset
2018-07-17 11:48:39 -07:00
Leonid Logvinov
bf8ac3b9e6
Fix tslint issues
2018-07-17 12:59:02 +02:00
Fabio Berger
512502ca08
Export Web3ProviderEngine from subproviders package
2018-07-13 14:26:02 +02:00
Fabio Berger
2e5ff53d72
-fetch';
2018-07-13 12:42:01 +02:00
Fabio Berger
8adc6f0faa
merge v2-prototype
2018-07-04 16:35:49 +02:00
Fabio Berger
5f2c303bd8
Remove hack since latest web3-provider-engine fixed underlying issue
2018-07-04 00:23:40 +02:00
Alex Browne
dc956020ef
Move NodeType caching out of web3-wrapper and into our internal code
2018-07-03 12:57:11 -07:00
Alex Browne
5b64b3ea93
Improve robustness of revert reason assertions
2018-07-02 18:57:33 -07:00
Alex Browne
d79994fbb2
Improve reliability of the minimum block number hack for the devnet/geth
2018-06-28 15:32:14 -07:00
Alex Browne
7ab921669b
Introduce subprovider for printing revert stack traces
2018-06-14 13:58:54 -07:00
Fabio Berger
e1879ef4d9
Fix no-unused-variable tslint rule to include parameters and fix issues
2018-06-11 23:42:30 +02:00
Leonid Logvinov
760bab8f86
Implement SolidityProfiler & adapt sol-cov to work with Geth
2018-06-08 14:56:45 -07:00
fragosti
e75721016e
Fix linting issues
2018-06-06 16:43:05 -07:00
fragosti
e0d5b9daf8
Merge branch 'v2-prototype' of https://github.com/0xProject/0x-monorepo into feature/improve-linting
2018-06-06 16:36:11 -07:00
Alex Browne
d6d7f4e875
Update more things to work with both Geth and Ganache
2018-06-06 12:40:31 -07:00
Alex Browne
45a3d8b75a
Remove extra logs and other small fixes
2018-06-06 12:40:31 -07:00
Alex Browne
2004c0d739
Add ability to quickly switch between Geth and Ganache by changing a const
2018-06-06 12:39:44 -07:00
Alex Browne
00bf957b53
Add more transactions to Geth on init. Skip tests that are failing.
2018-06-06 12:39:43 -07:00
Alex Browne
577156fe5f
Use Geth for contract tests
2018-06-06 12:39:39 -07:00
fragosti
9778695b4a
Try enabling no-unused-variable...
2018-06-04 19:48:21 -07:00
Leonid Logvinov
a7fc9caacb
Introduce ethereum-types package
2018-05-31 11:04:05 -07:00
Amir Bandeali
8f2fd9b603
Rename Signer to Wallet, rename GAS_ESTIMATE to GAS_LIMIT
2018-05-30 17:11:31 -07:00
Amir Bandeali
18ebed3c5d
Increase block gas limit
2018-05-30 17:11:30 -07:00
Leonid Logvinov
1ff34bd0f4
Remove web3Factory.create and remove dev-tools dependency on sol-cov
2018-05-22 15:20:34 -07:00
Leonid Logvinov
974575b695
Make sol-cov work with truffle and other artifact adapters
2018-05-22 15:20:34 -07:00
Fabio Berger
5422bf5733
Fix TSLint issues
2018-05-14 23:27:41 +02:00
Fabio Berger
d370296e82
Merge branch 'development' into breakUp0xjs
...
* development:
Fix ganache subprovider config
Fix a bug in compiler config precedence
Fix linter errors
Fix templates
Remove unused deployer docs configs
Add a legacy endpoint for the deployer
Add a check for compiler output
Add a comment
Put ARTIFACTS_VERSION in a config
Improve a comment
Remove _applyDefaultsToDeployTxDataAsync
Add a HACK comment
Fix linter issues
Rename deployer to sol-compiler
Remove deployer
Remove deployer from 0x.js and migrations
Configure migrations with a compiler.json
Remove deployer from metacoin and contract tests
Update wallet footer and add remove token functionality
# Conflicts:
# .gitignore
# packages/0x.js/package.json
# packages/0x.js/src/0x.ts
# packages/contracts/package.json
# packages/contracts/test/multi_sig_with_time_lock.ts
# packages/contracts/test/multi_sig_with_time_lock_except_remove_auth_addr.ts
# packages/contracts/util/artifacts.ts
# packages/deployer/test/deployer_test.ts
# packages/migrations/package.json
2018-05-11 12:32:57 +02:00
Leonid Logvinov
c093aab350
Fix ganache subprovider config
2018-05-11 11:59:08 +02:00
Leonid Logvinov
75d24dea0e
Fix linter issues
2018-05-10 17:47:38 +02:00
Fabio Berger
cd5f00ac4d
Merge branch 'development' into breakUp0xjs
...
* development: (38 commits)
Add fallback image support to relayer grid tile
Clear relayer grid state when fetching
Configure the compiler to generate artifacts with deployedBytecode
Implement loading and error state for relayer grid
Fallback image for relayer grid tile
Change relayer grid tile to link on header
Display top tokens from backend
Remove overflowZ property from portal
Suggestions and fix bad merge
Fix typo
Only show untracked tokens
Make wallet scrollable
Add token flow
Update The Ocean logo
Fix artifacts paths
Create an artifacts folder
Introduce a var
Add removeHexPrefix util method
CHeck if ABI exists
Improve the readability of the check for should compile
...
# Conflicts:
# .gitignore
# packages/contracts/test/multi_sig_with_time_lock.ts
# packages/contracts/test/multi_sig_with_time_lock_except_remove_auth_addr.ts
# packages/contracts/util/artifacts.ts
2018-05-10 17:08:07 +02:00
Fabio Berger
13a61db289
Add var returns
2018-05-10 15:22:51 +02:00
Fabio Berger
209266dbed
Split 0x.js into contract-wrappers, order-watcher but keep 0x.js as a unifying library with the same interface
2018-05-09 20:36:28 +02:00
Leonid Logvinov
906af858a5
Fix artifacts paths
2018-05-07 14:32:17 +02:00