aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils/test/signature_utils_test.ts
Commit message (Collapse)AuthorAgeFilesLines
* chore: change package org from 0xproject to 0xJacob Evans2018-10-181-2/+2
|
* Throw and handle errors from Providers.Jacob Evans2018-10-091-62/+87
| | | | | | | 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
* Return SignedOrder from signing utils.Jacob Evans2018-10-051-3/+48
| | | | | Create a helper back in EIP712Utils for code cleanup. Moved constants in order-utils into the constants object
* Introduce Metamask Subprovider.Jacob Evans2018-10-051-89/+15
| | | | MM has a number of inconsistencies with other providers when implementing the JSON RPC interface. This subprovider wraps those nuances so they do not leak into the rest of our code
* Expose eth_signTypedData functionality for order signingJacob Evans2018-10-051-10/+45
|
* Remove remaining Trezor referencesAmir Bandeali2018-08-251-9/+0
|
* Remove Trezor SignatureTypeAmir Bandeali2018-08-251-14/+0
|
* Fix additional merge conflictsFabio Berger2018-08-151-11/+28
|
* Merge developmentFabio Berger2018-08-151-39/+103
|\
| * Rename from SignerProviderType.EthSign to SignerType.DefaultJacob Evans2018-08-111-37/+50
| |
| * Update jsdocJacob Evans2018-08-091-0/+1
| |
| * Introduce SignerProviderTypeJacob Evans2018-08-091-39/+78
| | | | | | | | This allows the developer to indicate the nuanced signer provider. Some have different implementations (trezor, ledger) and others have different implementations (metamask). Breaking the abstraction of eth_sign. EthSign assumes a spec compliant implementation and can be used as a default
| * Add strictArgumentEncodingCheck to BaseContract and use it in contract templatesAlex Browne2018-08-091-1/+2
| |
* | Make signature_util into an object literal so related functions are rendered ↵Fabio Berger2018-08-031-16/+52
|/ | | | together in the docs
* Use make-promises-safe as a preloader instead of manually importingAlex Browne2018-06-221-1/+0
|
* Try enabling no-unused-variable...fragosti2018-06-051-2/+1
|
* Fix type importsFabio Berger2018-06-021-1/+1
|
* Add signature specific validation methods, and other refactorsFabio Berger2018-06-021-2/+0
|
* Fix TODOsFabio Berger2018-06-011-2/+1
|
* Merge branch 'v2-prototype' into refactor/order-utils/for-v2Fabio Berger2018-06-011-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * v2-prototype: (45 commits) Check length before accessing indices, add awaitTransactionSuccess where needed, and rename function Add back before/after snapshots for each test Rename Signer to Wallet, rename GAS_ESTIMATE to GAS_LIMIT Make preSigned and allowedValidators mappings public Change names of signature types Fix formatting and tests Make AssetProxyId last byte of assetData Add signer to txHash, allow approveValidator to be used with executeTransaction Update Whitelist Fix Exchange interface Increase block gas limit Use last byte of signature as signature type Remove TxOrigin signature type, modify whitelist to use Validator signature type Update Whitelist contract with comments, also require maker to be whitelisted Fix build Add example whitelist contract and minimum tests Add sample whitelist contract Add TxOrigin signature type and rearrange order of types Add approveValidator function Add Validator signature type ... # Conflicts: # packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol # packages/contracts/src/utils/types.ts # packages/contracts/test/exchange/transactions.ts # packages/order-utils/src/asset_proxy_utils.ts
* | Move isValidOrderHash to the order_hash_test fileFabio Berger2018-05-311-15/+0
| |
* | Fix order-utils testsFabio Berger2018-05-311-32/+27
| |
* | Initial refactor of order-utils. Move many utils from contracts into this ↵Fabio Berger2018-05-301-14/+69
|/ | | | package.
* Merge pull request #594 from 0xProject/improvement/addCustomTslintRulesFabio Berger2018-05-231-4/+8
|\ | | | | Add more tslint rules
| * Fix TSLint rulesFabio Berger2018-05-161-4/+8
| |
* | Use make-promises-safe to catch unhandled rejections in testsAlex Browne2018-05-171-0/+1
|/
* Add missing type definitionsLeonid Logvinov2018-05-141-2/+2
|
* Fix signature utils testsLeonid Logvinov2018-05-031-15/+22
|
* Move order utils to @0xproject/order-utilsLeonid Logvinov2018-05-021-0/+157