Fabio B
7a38a196ad
Update packages/contract-wrappers/src/types.ts
...
Co-Authored-By: LogvinovLeon <logvinov.leon@gmail.com >
2018-11-20 16:42:49 +01:00
Leonid Logvinov
e1bc3f3f2d
Add nonce to TxOpts
2018-11-20 15:59:33 +01:00
Fabio Berger
d3592d362e
address linter errors
2018-11-11 13:02:45 +01:00
Fabio Berger
1f0ac47bd9
Move signature validation into OrderValidationUtils.validateOrderFillableOrThrowAsync
2018-11-10 00:14:48 +01:00
Fabio Berger
857a35d4f7
Fix validateOrderFillableOrThrowAsync method so it also checks order signature, cancelled, cancelledUpTo, and throws helpful error messages
2018-11-09 00:45:48 +01:00
Alex Browne
e1306f55ed
Add note about tslint false positive
2018-10-26 10:52:12 -07:00
Alex Browne
9c26334eff
fix(contract-wrappers): Fix tslint errors that were lingering due to misconfiguration
2018-10-23 18:30:58 -07:00
Brandon Millman
af2bf053bc
feat(contract-wrappers): relax requirement for throwing ContractWrappersError.SignatureRequestDenied
2018-10-23 10:02:00 -07:00
Brandon Millman
b75fe10c79
feat(contract-wrappers): export ForwarderWrapperError and ContractWrapperError.SignatureRequestDenied
2018-10-22 22:44:13 -07:00
Jacob Evans
9f924e459c
chore: change package org from 0xproject to 0x
2018-10-18 22:27:31 +11:00
Alex Browne
5bdfad9b41
Remove ContractNotFound errors in contract-wrappers
2018-10-16 00:23:43 -07:00
Alex Browne
6f8e98e537
In contract-wrappers, remove setProvider and add unsubscribeAll method.
2018-10-15 17:35:25 -07:00
Alex Browne
e093864bff
Update json-schemas for contract-wrappers
2018-10-15 17:09:35 -07:00
Alex Browne
38b146c395
Add OrThrow suffix to getContractAddressesForNetwork
2018-10-15 14:22:48 -07:00
Alex Browne
00db096d2e
Fix bug introduced during rebase
2018-10-15 13:44:21 -07:00
Alex Browne
f0e4837983
Fix failing doc generation tests
2018-10-15 13:38:59 -07:00
Alex Browne
003ab1e5b3
Fix linter errors in contract-wrappers
2018-10-15 13:38:59 -07:00
Alex Browne
c83dec22c9
Improve error handling for unknown network ids in contract-wrappers
2018-10-15 13:38:59 -07:00
Alex Browne
974ec23ecd
Apply various PR feedback
2018-10-15 13:38:33 -07:00
Alex Browne
1e9ea09f08
Introduce new contract-addresses package and use it everywhere
2018-10-15 13:38:33 -07:00
Alex Browne
2bd7b0f66b
update contract_wrappers to use new artifacts and abi-gen wrappers packages
2018-10-15 13:36:59 -07:00
Alex Browne
3a7bb97ad1
Remove artifacts from migrations package and update contract-wrappers accordingly
2018-10-15 13:36:59 -07:00
Alex Browne
026ad1f9a1
Update contract-wrappers package to use new contracts package for generated files
2018-10-15 13:36:09 -07:00
Brandon Millman
22abd1dfcf
feat(contract-wrappers): add optional validation to the forwarder wrapper
...
Similar to the approach taken in exchange wrapper, make a call to an rpc
node in order to simulate the transaction before actually sending the
transaction. The decorator will parse revert reasons and other types of
errors into canonical errors that a consumer of the library expects when
interacting with a contract wrapper.
2018-10-12 14:42:31 -07:00
Jacob Evans
7f554303b4
Update the exported types for the packages which touch RPC providers
2018-10-09 20:29:41 +11:00
Jacob Evans
9e8031d5e3
Throw and handle errors from Providers.
...
In web3 wrapper when a response contains an error field we throw this rather than return response.result which is often undefined.
In Signature Utils we handle the error thrown when a user rejects the signing dialogue to prevent double signing.
Exposed the ZeroExTransaction JSON schema.
In Website only use the MetamaskSubprovider if we can detect the provider is Metamask
2018-10-09 19:01:36 +11:00
Jacob Evans
75d274f330
Return SignedOrder from signing utils.
...
Create a helper back in EIP712Utils for code cleanup.
Moved constants in order-utils into the constants object
2018-10-05 17:12:17 +10:00
Jacob Evans
3e2fe40a11
Add eth_signTypedData support to our wallet subproviders
2018-10-05 12:02:09 +10:00
Leonid Logvinov
8c985eb579
Fix linter issue
2018-10-02 15:09:24 +02:00
Fabio Berger
977d55c61b
merge development
2018-09-25 13:07:14 +01:00
Fabio Berger
fc3acec669
Fix lint issues
2018-09-25 12:32:20 +01:00
Fabio Berger
55ca971186
Decode logs received from blockstream
2018-09-25 12:05:44 +01:00
Fabio Berger
0afe55f2ff
Refactor blockstream integration to use the proper callback method interface
2018-09-25 11:20:09 +01:00
Francesco Agosti
b830c28d83
Merge pull request #1037 from 0xProject/feature/forwarder-helper/sra-and-rpc
...
[asset-buyer] Create new AssetBuyer class
2018-09-24 17:47:59 +02:00
Fabio Berger
7516959c9f
Add comments for clarity
2018-09-24 15:14:14 +01:00
Fabio Berger
d0448c2bbd
Fix bug where if block wasn't found, getBlockAsync would throw. Now it returns undefined
2018-09-24 15:02:06 +01:00
fragosti
fd4b4f8f82
Make ForwaderWrapper take in a number for feePercentage instead of BigNumber
2018-09-18 23:56:07 +02:00
Fabio Berger
bfabf765e3
Update decoration error
2018-09-17 12:52:12 +01:00
fragosti
e61dbbb6cf
Merge https://github.com/0xProject/0x-monorepo into feature/website/update-portal-v2
2018-09-04 10:53:18 -07:00
Fabio Berger
8d8528996a
Export abstract fetchers
2018-09-04 17:44:27 +01:00
Fabio Berger
bbfd7647a8
Export missing type
2018-09-04 16:52:21 +01:00
Fabio Berger
d496a7585c
Add validateFillOrderThrowIfInvalidAsync
and validateOrderFillableOrThrowAsync
to ExchangeWrapper
2018-09-04 16:27:16 +01:00
Fabio Berger
ed786f3e8f
Export fetchers from contract-wrappers
2018-09-04 16:23:29 +01:00
Fabio Berger
539c243733
Move fetchers to contract-wrappers
2018-09-04 16:23:02 +01:00
Brandon Millman
01685b7622
Fix contract not deployed on network bug in ContractWrapper class
2018-08-30 13:24:24 -07:00
Brandon Millman
9c4c4fb19a
Export missing types and add OrderValidatorWrapper to hidden constructors
2018-08-28 12:03:21 -07:00
Brandon Millman
2c846ff145
Add OrderValidatorWrapper to public interface
2018-08-27 16:06:34 -07:00
Brandon Millman
7271fc0bab
Add getBalancesAndAllowances to wrapper
2018-08-27 13:49:44 -07:00
Brandon Millman
38e6d26145
Add params to all function comments
2018-08-27 13:31:12 -07:00
Brandon Millman
b0f210dea9
Add getERC721Owner to wrapper
2018-08-27 13:21:14 -07:00