/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* camel-stream.c : abstract class for a stream */ /* * Author: * Bertrand Guiheneuf * * Copyright 1999, 2000 Ximian, Inc. (www.ximian.com) * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #ifdef HAVE_CONFIG_H #include #endif #include #include "camel-stream.h" static CamelObjectClass *parent_class = NULL; /* Returns the class for a CamelStream */ #define CS_CLASS(so) CAMEL_STREAM_CLASS(CAMEL_OBJECT_GET_CLASS(so)) /* default implementations, do very little */ static ssize_t stream_read (CamelStream *stream, char *buffer, size_t n) { return 0; } static ssize_t stream_write (CamelStream *stream, const char *buffer, size_t n) { return n; } static int stream_close (CamelStream *stream) { return 0; } static int stream_flush (CamelStream *stream) { return 0; } static gboolean stream_eos (CamelStream *stream) { return stream->eos; } static int stream_reset (CamelStream *stream) { return 0; } static void camel_stream_class_init (CamelStreamClass *camel_stream_class) { parent_class = camel_type_get_global_classfuncs( CAMEL_OBJECT_TYPE ); /* virtual method definition */ camel_stream_class->read = stream_read; camel_stream_class->write = stream_write; camel_stream_class->close = stream_close; camel_stream_class->flush = stream_flush; camel_stream_class->eos = stream_eos; camel_stream_class->reset = stream_reset; } CamelType camel_stream_get_type (void) { static CamelType camel_stream_type = CAMEL_INVALID_TYPE; if (camel_stream_type == CAMEL_INVALID_TYPE) { camel_stream_type = camel_type_register( CAMEL_OBJECT_TYPE, "CamelStream", sizeof( CamelStream ), sizeof( CamelStreamClass ), (CamelObjectClassInitFunc) camel_stream_class_init, NULL, NULL, NULL ); } return camel_stream_type; } /** * camel_stream_read: * @stream: a CamelStream. * @buffer: output buffer * @n: max number of bytes to read. * * Attempts to read up to @len bytes from @stream into @buf. * * Returns the number of bytes actually read, or -1 on error and set * errno. **/ ssize_t camel_stream_read (CamelStream *stream, char *buffer, size_t n) { g_return_val_if_fail (CAMEL_IS_STREAM (stream), -1); g_return_val_if_fail (n == 0 || buffer, -1); return CS_CLASS (stream)->read (stream, buffer, n); } /** * camel_stream_write: * @stream: a CamelStream object. * @buffer: buffer to write. * @n: number of bytes to write * * Attempts to write up to @n bytes of @buffer into @stream. * * Returns the number of bytes written to the stream, or -1 on error * along with setting errno. **/ ssize_t camel_stream_write (CamelStream *stream, const char *buffer, size_t n) { g_return_val_if_fail (CAMEL_IS_STREAM (stream), -1); g_return_val_if_fail (n == 0 || buffer, -1); return CS_CLASS (stream)->write (stream, buffer, n); } /** * camel_stream_flush: * @stream: stream * * Flushes any buffered data to the stream's backing store. Only * meaningful for writable streams. * * Returns 0 on success or -1 on fail along with setting errno. **/ int camel_stream_flush (CamelStream *stream) { g_return_val_if_fail (CAMEL_IS_STREAM (stream), -1); return CS_CLASS (stream)->flush (stream); } /** * camel_stream_close: * @stream: * * Closes the stream. * * Returns 0 on success or -1 on error. **/ int camel_stream_close (CamelStream *stream) { g_return_val_if_fail (CAMEL_IS_STREAM (stream), -1); return CS_CLASS (stream)->close (stream); } /** * camel_stream_eos: * @stream: a CamelStream object * * Tests if there are bytes left to read on the @stream object. * * Returns %TRUE on EOS or %FALSE otherwise. **/ gboolean camel_stream_eos (CamelStream *stream) { g_return_val_if_fail (CAMEL_IS_STREAM (stream), TRUE); return CS_CLASS (stream)->eos (stream); } /** * camel_stream_reset: * @stream: the stream object * * Resets the stream. That is, put it in a state where it can be read * from the beginning again. Not all streams in Camel are seekable, * but they must all be resettable. * * Returns 0 on success or -1 on error along with setting errno. **/ int camel_stream_reset (CamelStream *stream) { g_return_val_if_fail (CAMEL_IS_STREAM (stream), -1); return CS_CLASS (stream)->reset (stream); } /***************** Utility functions ********************/ /** * camel_stream_write_string: * @stream: a stream object * @string: a string * * Writes the string to the stream. * * Returns the number of characters written or -1 on error. **/ ssize_t camel_stream_write_string (CamelStream *stream, const char *string) { return camel_stream_write (stream, string, strlen (string)); } /** * camel_stream_printf: * @stream: a stream object * @fmt: a printf-style format string * * Write formatted output to a stream. * * Returns the number of characters written or -1 on error. **/ ssize_t camel_stream_printf (CamelStream *stream, const char *fmt, ... ) { va_list args; char *string; ssize_t ret; g_return_val_if_fail (CAMEL_IS_STREAM (stream), -1); va_start (args, fmt); string = g_strdup_vprintf (fmt, args); va_end (args); if (!string) return -1; ret = camel_stream_write (stream, string, strlen (string)); g_free (string); return ret; } /** * camel_stream_write_to_stream: * @stream: Source CamelStream. * @output_stream: Destination CamelStream. * * Write all of a stream (until eos) into another stream, in a * blocking fashion. * * Returns -1 on error, or the number of bytes succesfully * copied across streams. **/ ssize_t camel_stream_write_to_stream (CamelStream *stream, CamelStream *output_stream) { char tmp_buf[4096]; ssize_t total = 0; ssize_t nb_read; ssize_t nb_written; g_return_val_if_fail (CAMEL_IS_STREAM (stream), -1); g_return_val_if_fail (CAMEL_IS_STREAM (output_stream), -1); while (!camel_stream_eos (stream)) { nb_read = camel_stream_read (stream, tmp_buf, sizeof (tmp_buf)); if (nb_read < 0) return -1; else if (nb_read > 0) { nb_written = 0; while (nb_written < nb_read) { ssize_t len = camel_stream_write (output_stream, tmp_buf + nb_written, nb_read - nb_written); if (len < 0) return -1; nb_written += len; } total += nb_written; } } return total; } w44/cgit/dexon-sol-tools/commit/?h=@0x/dev-tools-pages@0.0.2&id=fcbe24a1263e189aad8f2698043217e6ed6488b3'>Fix linter errorsLeonid Logvinov2018-02-072-2/+3 | | * Generate contract wrappers on pre-buildLeonid Logvinov2018-02-071-1/+1 | | * Add missing asyncLeonid Logvinov2018-02-071-1/+1 | | * Remove noImplicitThisLeonid Logvinov2018-02-071-0/+1 | | * Tslint disable no-consecutive-blank-lines in generated filesLeonid Logvinov2018-02-071-1/+1 | | * Change compiled sources in contractsLeonid Logvinov2018-02-071-2/+2 | | * Change utilsLeonid Logvinov2018-02-074-32/+41 | | * Change testsLeonid Logvinov2018-02-0710-207/+275 | | * Add base_contract.tsLeonid Logvinov2018-02-071-0/+35 | | * Remove generated filesLeonid Logvinov2018-02-075-2208/+0 | | * .gitignore gemerated filesLeonid Logvinov2018-02-071-0/+8 | | * Change the list of generated wrappersLeonid Logvinov2018-02-071-1/+1 | | * Change contract templatesLeonid Logvinov2018-02-074-43/+28 | | * Add indices for index parameters so that their names don't collideLeonid Logvinov2018-02-071-2/+2 | | * Use abi-gen for events in 0x.jsLeonid Logvinov2018-02-079-125/+76 | | * Fix artifacts pathAmir Bandeali2018-02-074-13/+13 | | * Update compile command and run prettierAmir Bandeali2018-02-072-5/+4 | | * Add CLI option for networkId, add abi-gen to contracts packageAmir Bandeali2018-02-0756-3/+2328 | |/ | * Merge branch 'development' of github.com:0xProject/0x.js into developmentFabio Berger2018-02-0714-85/+196 | |\ | * | Add networkId to event labelFabio Berger2018-02-074-7/+19 | * | Update yarn.lockFabio Berger2018-02-071-9/+16 * | | Organize async task queues by networkBrandon Millman2018-02-077-171/+172 | |/ |/| * | Merge pull request #352 from 0xProject/feature/testnet-faucets/order-dispenserBrandon Millman2018-02-0714-94/+196 |\ \ | |/ |/| | * Bump subproviders versionBrandon Millman2018-02-071-1/+1 | * Update yarn.lockBrandon Millman2018-02-071-9/+0 | * Merge branch 'development' into feature/testnet-faucets/order-dispenserBrandon Millman2018-02-0728-33/+360 | |\ | * | Change rpcUrls keys back into string literalsBrandon Millman2018-02-071-4/+4 | * | Add types-bn package to 0x.js and testnet-faucetsBrandon Millman2018-02-072-0/+2 | * | PrettierBrandon Millman2018-02-072-2/+3 | * | Merge branch 'development' into feature/testnet-faucets/order-dispenserBrandon Millman2018-02-0728-163/+92 | |\ \ | * | | Addressed comments and update 0xProject/types-ethereumjs-util depsBrandon Millman2018-02-0613-115/+85 | * | | Merge branch 'development' into feature/testnet-faucets/order-dispenserBrandon Millman2018-02-06117-6934/+6112 | |\ \ \ | * | | | PrettierBrandon Millman2018-02-011-1/+1 | * | | | Update testnet-faucets READMEBrandon Millman2018-02-011-3/+11 | * | | | Merge branch 'development' into feature/testnet-faucets/order-dispenserBrandon Millman2018-02-0177-720/+1306 | |\ \ \ \ | * | | | | Fix lint errorsBrandon Millman2018-01-311-0/+2 | * | | | | Add order signing and dispensing ability to faucetBrandon Millman2018-01-319-39/+167 * | | | | | Merge pull request #370 from 0xProject/feature/ga-portal-loggingTom Schmidt2018-02-077-64/+113 |\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | * | | | | Added logging for order filling and order cancellingThomas Schmidt2018-02-072-1/+26 | * | | | | Moved to async awaitThomas Schmidt2018-02-061-18/+13 | * | | | | Formatting and removed old GA codeThomas Schmidt2018-02-062-80/+77 | * | | | | Converted BigNumber to number for GA loggingThomas Schmidt2018-02-062-3/+3 | * | | | | GA logging for order creationThomas Schmidt2018-02-062-4/+21 | * | | | | Switch GA to React GA and add logging for PortalThomas Schmidt2018-02-065-7/+22 * | | | | | Merge pull request #355 from 0xProject/feature/subproviders/nonce-trackerJacob Evans2018-02-0728-33/+360 |\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | * | | | | Attribute the origins of NonceTrackerJacob Evans2018-02-072-0/+7 | * | | | | Move BlockParamLiteral to shared types packageJacob Evans2018-02-0712-21/+28 | * | | | | FixesJacob Evans2018-02-072-7/+8 | * | | | | Move BlockParam and BlockParamLiteral to shared typesJacob Evans2018-02-077-21/+19 | * | | | | Merge branch 'development' into feature/subproviders/nonce-trackerJacob Evans2018-02-064-7/+11 | |\ \ \ \ \ | * | | | | | Rename called to something more readableJacob Evans2018-02-061-5/+6 | * | | | | | Newline prettier/lintJacob Evans2018-02-061-1/+1 | * | | | | | Yarn.lockJacob Evans2018-02-061-0/+9 | * | | | | | Merge branch 'development' into feature/subproviders/nonce-trackerJacob Evans2018-02-06109-6906/+5980 | |\ \ \ \ \ \ | * | | | | | | Refactor tests for reuse of the fixture subproviderJacob Evans2018-02-063-107/+61 | * | | | | | | Remove re-fetch of transaction count on errorJacob Evans2018-02-065-33/+41 | * | | | | | | Disable linter for multiple class declarationsJacob Evans2018-02-031-0/+2 | * | | | | | | Remove double declarationJacob Evans2018-02-021-5/+5 | * | | | | | | Enable CIRCLECI and declare web3Jacob Evans2018-02-023-0/+14 | * | | | | | | Test faucets to use new NonceTrackerJacob Evans2018-02-022-2/+3 | * | | | | | | Update changelogJacob Evans2018-02-021-1/+5 | * | | | | | | Readability and prettierJacob Evans2018-02-022-13/+11 | * | | | | | | PrettifyJacob Evans2018-02-023-68/+65 | * | | | | | | Nonce tracker subproviderJacob Evans2018-02-024-0/+329 * | | | | | | | Update utils in top level package to 0.3.0Jacob Evans2018-02-062-10/+1 * | | | | | | | Add 0.2.0 back to yarn lockJacob Evans2018-02-061-0/+9 | |_|/ / / / / |/| | | | | | * | | | | | | Reword comment on anyJacob Evans2018-02-061-1/+2 * | | | | | | Merge pull request #363 from 0xProject/refactor/subproviders/injected-provide...Jacob Evans2018-02-064-7/+13 |\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | | * | | | | | Link to the wiki article in the READMEJacob Evans2018-02-061-0/+2 | * | | | | | Justify the any usageJacob Evans2018-02-061-1/+2 | * | | | | | ChangelogJacob Evans2018-02-031-1/+5 | * | | | | | Change the InjectedWeb3Subprovider to accept Web3.ProviderJacob Evans2018-02-032-6/+5 * | | | | | | Publishcontracts@2.1.9@0xproject/website@0.0.12@0xproject/testnet-faucets@1.0.10@0xproject/monorepo-scripts@0.1.9@0xproject/deployer@0.0.6Leonid Logvinov2018-02-0617-77/+77 * | | | | | | Revert "Temp"Leonid Logvinov2018-02-066-78/+0 | |_|_|_|_|/ |/| | | | | * | | | | | Add dates to CHANGELOGsLeonid Logvinov2018-02-062-2/+2 * | | | | | Merge branch 'development' of github.com:0xProject/0x.js into developmentLeonid Logvinov2018-02-068-17/+73 |\ \ \ \ \ \ | * \ \ \ \ \ Merge pull request #366 from 0xProject/fix/abi_decoder_colisionLeonid2018-02-063-10/+24 | |\ \ \ \ \ \ | | |_|_|/ / / | |/| | | | | | | * | | | | Change CHANGELOGsLeonid Logvinov2018-02-062-2/+2 | | * | | | | Merge branch 'development' into fix/abi_decoder_colisionLeonid2018-02-065-8/+35 | | |\ \ \ \ \ | | * | | | | | Use forEach instead of mapLeonid Logvinov2018-02-052-4/+8 | | * | | | | | Add PR numberLeonid Logvinov2018-02-051-1/+1 | | * | | | | | Fix an exception when a signature collision happensLeonid Logvinov2018-02-052-5/+18 | * | | | | | | Merge pull request #360 from 0xProject/feature/editorconfigRemco Bloemen2018-02-061-0/+12 | |\ \ \ \ \ \ \ | | |_|/ / / / / | |/| | | | | | | | * | | | | | Add .editorconfigRemco Bloemen2018-02-061-0/+12 | | |/ / / / / | * | | | | | Merge pull request #350 from 0xProject/fix/ether_token_addressLeonid2018-02-065-8/+38 | |\ \ \ \ \ \ | | |/ / / / / | |/| | | | | | | * | | | | Fix a typoLeonid Logvinov2018-02-061-1/+1 | | * | | | | Fix prettierLeonid Logvinov2018-02-051-1/+0 | | * | | | | Merge branch 'development' into fix/ether_token_addressLeonid2018-02-05244-8866/+8273 | | |\ \ \ \ \ | | |/ / / / / | |/| | | | | | | * | | | | Add regression testsLeonid Logvinov2018-02-051-0/+12 | | * | | | | Improve the comment and fix an exceptionLeonid Logvinov2018-02-051-3/+7 | | * | | | | Fix PR templateLeonid Logvinov2018-01-301-4/+6 | | * | | | | Update CHANGELOGLeonid Logvinov2018-01-301-0/+4 | | * | | | | Fix linter errorsLeonid Logvinov2018-01-302-1/+1 | | * | | | | Add zeroEx.etherToken.getContractAddressifExistsLeonid Logvinov2018-01-303-2/+11 * | | | | | | TempLeonid Logvinov2018-02-066-0/+78 |/ / / / / / * | | | | | Merge pull request #358 from 0xProject/feature/build_watchLeonid2018-02-0530-24/+100 |\ \ \ \ \ \ | * | | | | | Add missing comasLeonid Logvinov2018-02-052-2/+2 | * | | | | | Merge branch 'development' into feature/build_watchLeonid2018-02-0593-6894/+5862 | |\ \ \ \ \ \ | |/ / / / / / |/| | | | | | * | | | | | | Merge pull request #356 from 0xProject/lerna-ignoreLeonid2018-02-051-0/+5 |\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | | * | | | | | Lerna-ignore tslint and tsconfigLeonid Logvinov2018-02-051-1/+1 | * | | | | | Lerna ignore scripts and libLeonid Logvinov2018-02-011-1/+1 | * | | | | | Ignore test files and markdown files changes on publishLeonid Logvinov2018-02-011-0/+5 | | |_|_|_|/ | |/| | | | * | | | | | Merge pull request #329 from 0xProject/feature/contracts/versioningAmir Bandeali2018-02-0369-6788/+5701 |\ \ \ \ \ \ | * | | | | | Update contract versions, fix testsAmir Bandeali2018-02-0327-88/+90 | * | | | | | Rename directoriesAmir Bandeali2018-02-0364-6432/+5551 | * | | | | | Rename previous contracts, fix imports, add nested file structureAmir Bandeali2018-02-0326-34/+35 | * | | | | | Move all contracts into a single directoryFabio Berger2018-02-0324-7/+8 | * | | | | | Update importFabio Berger2018-02-031-1/+1 | * | | | | | Fix importFabio Berger2018-02-031-1/+1 | * | | | | | Get rid of suffixed contract versioning and replace it with a poor-mans packa...Fabio Berger2018-02-0326-346/+136 |/ / / / / / * | | | | | Merge pull request #361 from 0xProject/feature/deployer/solc-0.4.19Leonid2018-02-022-0/+23 |\ \ \ \ \ \ | * | | | | | Add solc 0.4.19Remco Bloemen2018-02-022-0/+23 | | |_|_|/ / | |/| | | | * / | | | | Add CODEOWNERS file for automatically adding reviewers to PRsBrandon Millman2018-02-021-0/+1 |/ / / / / * | | | | Publishcontracts@2.1.8@0xproject/website@0.0.11@0xproject/testnet-faucets@1.0.9@0xproject/monorepo-scripts@0.1.8@0xproject/deployer@0.0.5Leonid Logvinov2018-02-0118-107/+124 * | | | | Fix linter errorsLeonid Logvinov2018-02-011-2/+2 * | | | | Update changelogLeonid Logvinov2018-02-011-0/+4 * | | | | Merge pull request #357 from ERCdEX/luke/zrx_order_watch_cacheLeonid2018-02-011-1/+5 |\ \ \ \ \ | * | | | | don't remove maker/zrx order from cache twiceLuke Autry2018-02-011-1/+5 | |/ / / / * / / / / Add OrderWatcherConfig to the list of public typesLeonid Logvinov2018-02-011-0/+1 |/ / / / | * | | Merge pull request #359 from 0xProject/feature/ts-2.7Leonid2018-02-0519-24/+24 | |\ \ \ | | * | | Fix errors after TS upgradeLeonid Logvinov2018-02-011-4/+4 | | * | | Upgrade TS to the newest versionLeonid Logvinov2018-02-0118-20/+20 | * | | | Add build:watch to README'sLeonid Logvinov2018-02-0211-0/+61 | |/ / / | * / / Add build:watch command to all TS packagesLeonid Logvinov2018-02-0115-0/+15 |/ / / * | | Merge pull request #354 from 0xProject/feature/tslint-config/underscore-prote...Brandon Millman2018-02-0121-58/+65 |\ \ \ | * | | PrettierBrandon Millman2018-02-012-2/+5 | * | | Merge branch 'development' into feature/tslint-config/underscore-protected-me...Brandon Millman2018-02-019-18/+39 | |\ \ \ | |/ / / |/| | | * | | | Merge pull request #346 from joincivil/feature/abi-gen-partialsLeonid2018-01-319-18/+39 |\ \ \ \ | * | | | Updated contract generation in 0x to new abi-gen CLIOlaf Tomalka2018-01-317-1/+1 | * | | | Removed deprecated CLI optionsOlaf Tomalka2018-01-311-19/+2 | * | | | Added PR # to the changelog of abi-genOlaf Tomalka2018-01-271-1/+3 | * | | | Added CLI options for explicit specifying location of partials and main templateOlaf Tomalka2018-01-272-14/+50 | | * | | Add PR number to changelogBrandon Millman2018-01-311-1/+1 | | * | | Fix lint errorsBrandon Millman2018-01-3117-55/+54 | | * | | Add protected keyword to underscore lint ruleBrandon Millman2018-01-313-3/+8 | |/ / / |/| | | * | | | Remove unused propFabio Berger2018-01-311-1/+0 * | | | Merge pull request #351 from 0xProject/feature/portal-ledger-supportFabio Berger2018-01-3153-645/+1204 |\ \ \ \ | |_|_|/ |/| | | | * | | Fix prettierFabio Berger2018-01-311-9/+1 | * | | Uppercase Networks enum valuesFabio Berger2018-01-317-22/+22 | * | | Make default gasPrice more readableFabio Berger2018-01-311-1/+3 | * | | Fix prettier messFabio Berger2018-01-311-6/+3 | * | | Fix linter errorsFabio Berger2018-01-3121-72/+20 | * | | Shrink imgFabio Berger2018-01-311-0/+0 | * | | Merge branch 'development' into feature/portal-ledger-supportFabio Berger2018-01-312-0/+2 | |\ \ \ | * | | | Fix all setState calls after unmounted errors. Decided to create our own flag...Fabio Berger2018-01-317-43/+90 | * | | | Fix bug where we were return undefined instead of the empty objectFabio Berger2018-01-311-1/+1 | * | | | Default the derivation path to that found in the Ledger subproviderFabio Berger2018-01-311-1/+4 | * | | | Add browser data to dialog infoFabio Berger2018-01-311-1/+1 | * | | | Add Rinkeby supportFabio Berger2018-01-302-6/+3 | * | | | Pass in whether we want the personal message prefix appended and never append...Fabio Berger2018-01-302-1/+20 | * | | | Merge branch 'development' into feature/portal-ledger-supportFabio Berger2018-01-3052-219/+434 | |\ \ \ \ | | | |_|/ | | |/| | | * | | | Wholesale replace the tokenByAddress and de-dup properlyFabio Berger2018-01-304-26/+31 | * | | | Call destroy ealier so that web3Wrapper stops polling for userAddress/network...Fabio Berger2018-01-302-3/+8 | * | | | Disallow negative amountsFabio Berger2018-01-301-1/+1 | * | | | Remove the ability to clear tokenByAddress. It should simply be updated.Fabio Berger2018-01-304-14/+0 | * | | | Use live backend on developmentFabio Berger2018-01-291-1/+1 | * | | | Fetch default gasPrice from our ethGasStation API mirror and set it for all t...Fabio Berger2018-01-291-3/+34 | * | | | remove unused typeFabio Berger2018-01-291-10/+0 | * | | | Small improvementsFabio Berger2018-01-291-2/+2 | * | | | Fix bug related to balance/allowance fetching being asyncFabio Berger2018-01-291-0/+14 | * | | | Add missing entries for Ropsten and Rinkeby testnets, added Ropsten to Ledger...Fabio Berger2018-01-296-23/+32 | * | | | Re-set Ledger config dialog to connect step if dialog is closedFabio Berger2018-01-291-0/+1 | * | | | Add flash message instructing user to confirm tx on LedgerFabio Berger2018-01-291-0/+13 | * | | | Add the stack trace to help with debuggingFabio Berger2018-01-291-1/+1 | * | | | Make it such that users can switch between Ledger accounts without first swit...Fabio Berger2018-01-293-9/+12 | * | | | Use colors module and remove in-lined colorsFabio Berger2018-01-292-7/+10 | * | | | Replace heavy loading animation with simple circular loaderFabio Berger2018-01-295-41/+14 | * | | | Add network name to the select providerFabio Berger2018-01-291-12/+15 | * | | | Fix bug where could not switch to Ledger and backFabio Berger2018-01-296-31/+65 | * | | | Implement just-in-time loading of token balances & allowancesFabio Berger2018-01-2823-295/+384 | * | | | Initial Ledger support implementationFabio Berger2018-01-2824-163/+559 | * | | | Remove unused Ledgerco importFabio Berger2018-01-282-2/+0 | * | | | Add light blue as our accent colorFabio Berger2018-01-281-0/+1 | * | | | Properly detect user signing cancellation on Metamask, Parity signer and LedgerFabio Berger2018-01-286-7/+7 | * | | | Merge branch 'development' into feature/portal-ledger-supportFabio Berger2018-01-25524-15110/+20859 | |\ \ \ \ | * | | | | Update yarn.lockFabio Berger2017-12-091-5/+1 | * | | | | Change dev domain since .dev is actually owned by Google and Chrome now enfor...Fabio Berger2017-12-091-2/+2 | * | | | | Merge branch 'feature/addSubproviders' into feature/portal-ledger-supportFabio Berger2017-12-0979-334/+412 | |\ \ \ \ \ | * \ \ \ \ \ Merge branch 'feature/addSubproviders' into feature/portal-ledger-supportFabio Berger2017-12-082-6/+12 | |\ \ \ \ \ \ | * \ \ \ \ \ \ Merge branch 'feature/addSubproviders' into feature/portal-ledger-supportFabio Berger2017-12-0811-147/+68 | |\ \ \ \ \ \ \ | * \ \ \ \ \ \ \ Merge branch 'feature/addSubproviders' into feature/portal-ledger-supportFabio Berger2017-12-0714-127/+173 | |\ \ \ \ \ \ \ \ | * | | | | | | | | Add missing awaitFabio Berger2017-12-061-1/+1 | * | | | | | | | | Move declaration into proper conditional blockFabio Berger2017-12-061-1/+1 | * | | | | | | | | Fix Party element so that an identicon's height is that which was passed inFabio Berger2017-12-061-1/+1 * | | | | | | | | | Merge pull request #332 from 0xProject/feature/contracts-abi-genLeonid2018-01-3193-1357/+1132 |\ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|/ / |/| | | | | | | | | | * | | | | | | | | Change orderLeonid Logvinov2018-01-301-1/+1 | * | | | | | | | | Separate npm scripts in contractsLeonid Logvinov2018-01-301-2/+3 | * | | | | | | | | Remove a semicolonLeonid Logvinov2018-01-301-1/+1 | * | | | | | | | | Fix glob patternsLeonid Logvinov2018-01-301-1/+1 | * | | | | | | | | Remove constructor argLeonid Logvinov2018-01-303-5/+6 | * | | | | | | | | Remove authorized address magic from testsLeonid Logvinov2018-01-301-8/+1 | * | | | | | | | | Remove accounts magic from testsLeonid Logvinov2018-01-303-8/+4 | * | | | | | | | | Make an RPC constructor param implicitLeonid Logvinov2018-01-3023-26/+27 | * | | | | | | | | Remove no-unused-variabe ruleLeonid Logvinov2018-01-301-1/+0 | * | | | | | | | | Fix tslint issuesLeonid Logvinov2018-01-303-7/+6 | * | | | | | | | | Use an enum for contract nameLeonid Logvinov2018-01-3013-47/+60 | * | | | | | | | | Remove promisified web3 functions from testsLeonid Logvinov2018-01-302-14/+12 | * | | | | | | | | Remove truffle as a dependencyLeonid Logvinov2018-01-302-101/+1 | * | | | | | | | | Fix prettierLeonid Logvinov2018-01-303-23/+11 | * | | | | | | | | Normalize the dependenciesLeonid Logvinov2018-01-3021-147/+76 | * | | | | | | | | Add --bail to mocha configLeonid Logvinov2018-01-301-1/+1 | * | | | | | | | | Make awaitTransactionMinedAsync non-generic againLeonid Logvinov2018-01-303-13/+13 | * | | | | | | | | Add back the artifactsLeonid Logvinov2018-01-3016-0/+6408 | * | | | | | | | | Remove duplicate codeLeonid Logvinov2018-01-302-55/+0 | * | | | | | | | | Remove truffle from testsLeonid Logvinov2018-01-3072-7162/+649 | * | | | | | | | | Refactor contracts tests to not use injected web3 instanceLeonid Logvinov2018-01-3037-126/+89 | * | | | | | | | | Remove truffle from Exchange testsLeonid Logvinov2018-01-303-20/+65 | * | | | | | | | | Remove truffle from ZRXToken testsLeonid Logvinov2018-01-301-11/+19 | * | | | | | | | | Remove truffle from UnlimitedAllowanceToken testsLeonid Logvinov2018-01-302-5/+26 | * | | | | | | | | Remove truffle from UnlimitedAllowanceTokenV2 testsLeonid Logvinov2018-01-305-14/+22 | * | | | | | | | | Remove truffle from TokenRegistry testsLeonid Logvinov2018-01-301-12/+28 | * | | | | | | | | Remove truffle from MultiSigWalletWithTimeLock testsLeonid Logvinov2018-01-301-4/+10 | * | | | | | | | | Remove truffle from MultiSigWalletWithTimeLockExceptRemoveAuthAddr testsLeonid Logvinov2018-01-302-14/+32 | * | | | | | | | | Remove truffle from Ether Token testsLeonid Logvinov2018-01-301-12/+24 | * | | | | | | | | Remove truffle from tokenTransferProxy testsLeonid Logvinov2018-01-302-39/+37 | * | | | | | | | | Remove truffle from tokenTransferProxy testsLeonid Logvinov2018-01-3014-54/+76 |/ / / / / / / / / * | | | | | | | | Prettierignore package.jsonLeonid Logvinov2018-01-301-0/+1 * | | | | | | | | Enable solidity syntax highlightingLeonid Logvinov2018-01-301-0/+1 | |_|_|_|_|_|/ / |/| | | | | | | * | | | | | | | Publishcontracts@2.1.7@0xproject/website@0.0.10@0xproject/testnet-faucets@1.0.8@0xproject/monorepo-scripts@0.1.7@0xproject/deployer@0.0.4Fabio Berger2018-01-3018-101/+118 * | | | | | | | Merge pull request #349 from 0xProject/fix/0x.js/signOrderHashFabio Berger2018-01-3013-64/+70 |\ \ \ \ \ \ \ \ | * | | | | | | | Add PR numberFabio Berger2018-01-301-1/+1 | * | | | | | | | Add config file specifically in prettier command and fix filesFabio Berger2018-01-30379-34296/+34296 | * | | | | | | | Fix prettierFabio Berger2018-01-30