aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util
Commit message (Collapse)AuthorAgeFilesLines
* Use ROLLBAR_ENABLED constant, and change ROLLBAR_ENVIRONMENT to ↵Steve Klebanoff2018-11-221-10/+3
| | | | INSTANT_ENVIRONMENT
* Move rollbar setup into function, move setting up into providerSteve Klebanoff2018-11-221-33/+33
|
* Always report unexpected errors. Move error message generation into helper ↵Steve Klebanoff2018-11-222-21/+25
| | | | function, and add tests
* LintingSteve Klebanoff2018-11-211-1/+1
|
* Explicit error reportingSteve Klebanoff2018-11-213-3/+9
|
* feat(instant): Report errors to rollbarSteve Klebanoff2018-11-211-0/+68
|
* Get heap analytics id from ENV variableSteve Klebanoff2018-11-201-10/+8
|
* Change disabled analytics name, add assertion, and always setSteve Klebanoff2018-11-201-4/+4
|
* Add way to disable via propsSteve Klebanoff2018-11-171-3/+20
|
* Better way of reporting Fallback providerSteve Klebanoff2018-11-173-7/+1
|
* Specify fallback web3 provider in analyticsSteve Klebanoff2018-11-172-0/+6
|
* Remove old functionSteve Klebanoff2018-11-171-2/+0
|
* Widget -> InstantSteve Klebanoff2018-11-171-0/+2
|
* Getting rid of unused function, and using track prefixSteve Klebanoff2018-11-171-4/+2
|
* Merge branch 'development' into feature/instant/heapSteve Klebanoff2018-11-172-23/+28
|\
| * Send in affiliate info as optionSteve Klebanoff2018-11-161-3/+2
| |
| * Have heartbeat update not trigger errorsSteve Klebanoff2018-11-162-21/+27
| |
* | Disable tslint for unused function so we can include this for future ↵Steve Klebanoff2018-11-171-0/+1
| | | | | | | | tracking events
* | Report on git sha and npm version of buildSteve Klebanoff2018-11-171-2/+4
| |
* | null -> undefinedSteve Klebanoff2018-11-171-2/+2
| |
* | Add initials to TODO noteSteve Klebanoff2018-11-171-1/+1
| |
* | Take out old TODOSteve Klebanoff2018-11-171-1/+0
| |
* | Switch heap id on environment, and make sure app id is what we expectSteve Klebanoff2018-11-171-2/+14
| |
* | We may not know num available assets available when wallet ready, so not ↵Steve Klebanoff2018-11-171-1/+1
| | | | | | | | trackin there
* | Make user and event properties more specificSteve Klebanoff2018-11-172-5/+16
| |
* | Typesafe analytic actionsSteve Klebanoff2018-11-172-25/+44
| |
* | LintingSteve Klebanoff2018-11-161-1/+0
| |
* | Take out console.logsSteve Klebanoff2018-11-161-3/+0
| |
* | Introduce ANALYTICS_ENABLED constantSteve Klebanoff2018-11-161-0/+6
| |
* | Use pure functions instead of classSteve Klebanoff2018-11-161-27/+24
| |
* | feat(instant): Heap middleware and first tracking eventsSteve Klebanoff2018-11-162-7/+41
| |
* | First pass on widget version of heapSteve Klebanoff2018-11-161-0/+87
|/
* feat: use capital values for enumsfragosti2018-11-151-19/+17
|
* Merge branch 'development' of https://github.com/0xProject/0x-monorepo into ↵fragosti2018-11-142-10/+10
|\ | | | | | | feature/instant/different-install-wallet-copy-for-mobile
| * Merge https://github.com/0xProject/0x-monorepo into ↵fragosti2018-11-142-10/+10
| |\ | | | | | | | | | feature/instant/metamask-connect-flow
| | * chore(instant): update selectedAssetAmount in the redux state to be named ↵Brandon Millman2018-11-142-10/+10
| | | | | | | | | | | | selectedAssetUnitAmount
* | | feat: display the correct provider type and change unlock / install prompt ↵fragosti2018-11-142-18/+47
| | | | | | | | | | | | content
* | | feat: change install wallet panel content based on browser and osfragosti2018-11-141-0/+42
|/ /
* | fix: rename handler creator namefragosti2018-11-131-1/+1
| |
* | fix: remove requirement of default case in all switch statementsfragosti2018-11-132-4/+1
| |
* | feat: integrate wallet flow with heartbeat and other branchesfragosti2018-11-131-2/+2
| |
* | Merge branch 'development' of https://github.com/0xProject/0x-monorepo into ↵fragosti2018-11-103-2/+62
|\| | | | | | | feature/instant/metamask-connect-flow
| * lintingSteve Klebanoff2018-11-101-0/+1
| |
| * Lodash noopSteve Klebanoff2018-11-101-1/+1
| |
| * Using built in intervalUtils instead of rolling ownSteve Klebanoff2018-11-101-20/+5
| |
| * Linting and renaming variablesSteve Klebanoff2018-11-103-11/+10
| |
| * Use interface like named parameters hereSteve Klebanoff2018-11-101-1/+1
| |
| * Emulate named parameters with interfaceSteve Klebanoff2018-11-101-3/+9
| |
| * Use existing functions instead of writing our ownSteve Klebanoff2018-11-104-86/+21
| |
| * Merge branch 'development' into feature/instant/buy-quote-heartbeatSteve Klebanoff2018-11-104-0/+68
| |\
| * | Variable name cleanupSteve Klebanoff2018-11-091-9/+9
| | |
| * | Remove unneeded Promise.resolveSteve Klebanoff2018-11-091-1/+0
| | |
| * | move files around and renameSteve Klebanoff2018-11-092-23/+18
| | |
| * | wip: BuyQuote heartbeatSteve Klebanoff2018-11-092-3/+33
| | |
| * | Make heartbeat more genericSteve Klebanoff2018-11-091-19/+24
| | |
| * | wip: abstract out updating buy quoteSteve Klebanoff2018-11-091-0/+55
| | |
| * | lintingSteve Klebanoff2018-11-091-0/+1
| | |
| * | feat(instant): Heartbeat for updating account infoSteve Klebanoff2018-11-091-0/+47
| | |
* | | feat: refactor button styles and add href to Textfragosti2018-11-101-0/+1
| |/ |/|
* | Merge pull request #1232 from 0xProject/feature/instant/account-state-changeBrandon Millman2018-11-092-21/+2
|\ \ | | | | | | [instant] Request account address and balance at mount
| * \ Merge branch 'development' into feature/instant/account-state-changeBrandon Millman2018-11-091-0/+56
| |\ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * development: [instant] Viewport specific errors (#1228) Added more comments Include wholeNumberSchema in sra-spec schemas chore(instant): fix linter Fix isNode fix(instant): update buy quote at start up in the case of default amount fix: apply css reset to overlay as well fix(website): turn off production flag when building locally chore: linter fix: progress bar fix: use fontSize prop in button feat: make instant resistant to external styles feat: add faux externall css file Add upstream issue Use const require instead of import Fix tslint issues Use detect-node Set curstom inspect printer in BigNumber
| * | chore(instant): fix lint errorsBrandon Millman2018-11-081-1/+1
| | |
| * | feat(instant): fetch balance at startupBrandon Millman2018-11-081-13/+0
| | |
| * | feat(instant): fetch account address at startup and drive account state changesBrandon Millman2018-11-081-7/+1
| | |
* | | Merge branch 'development' of https://github.com/0xProject/0x-monorepo into ↵fragosti2018-11-091-0/+56
|\ \ \ | | |/ | |/| | | | feature/instant/dropdown-ui
| * | fix(instant): update buy quote at start up in the case of default amountBrandon Millman2018-11-081-0/+56
| |/
* | Merge branch 'development' of https://github.com/0xProject/0x-monorepo into ↵fragosti2018-11-094-16/+120
|\| | | | | | | feature/instant/dropdown-ui
| * feat(instant): add Account to the ProviderStateBrandon Millman2018-11-081-0/+69
| |
| * feat(instant): fallback to an empty wallet provider when none is injectedBrandon Millman2018-11-083-16/+51
| |
* | feat: implement copy-to-clipboardfragosti2018-11-081-0/+7
| |
* | feat: create PaymentMethodDropdownfragosti2018-11-081-0/+3
|/
* Merge branch 'development' of https://github.com/0xProject/0x-monorepo into ↵fragosti2018-11-037-54/+44
|\ | | | | | | feature/instant/maker-asset-datas-interface
| * Merge branch 'development' into ↵Steve Klebanoff2018-11-035-20/+19
| |\ | | | | | | | | | fix/instant/decimal-fields-scaling-amount-input-bn
| | * feat(instant): pass in provider through props, fallback to injected providerBrandon Millman2018-11-035-20/+19
| | |
| * | Use generic MaybeSteve Klebanoff2018-11-031-4/+4
| | |
| * | Merge branch 'development' into ↵Steve Klebanoff2018-11-033-8/+73
| |\| | | | | | | | | | fix/instant/decimal-fields-scaling-amount-input-bn
| * | Move MaybeBigNumber functions into helperSteve Klebanoff2018-11-031-0/+25
| | |
| * | Getting rid of BigNumberInput in favor of BigNumberSteve Klebanoff2018-11-021-34/+0
| | |
* | | Merge branch 'development' of https://github.com/0xProject/0x-monorepo into ↵fragosti2018-11-033-8/+73
|\ \ \ | | |/ | |/| | | | feature/instant/maker-asset-datas-interface
| * | feat(instant): implement affiliateFeeInfo propBrandon Millman2018-11-031-1/+9
| | |
| * | Nice formatting of displayed timeSteve Klebanoff2018-10-311-0/+39
| | |
| * | Always return estimated time, just use default if not knownSteve Klebanoff2018-10-311-3/+14
| | |
| * | Remove old filesSteve Klebanoff2018-10-311-108/+0
| | |
| * | WIP: beginning of simulated progress bar componentSteve Klebanoff2018-10-311-1/+1
| | |
| * | Dispatching progressSteve Klebanoff2018-10-311-3/+13
| | |
| * | Remove old TODOSteve Klebanoff2018-10-311-1/+0
| | |
| * | Rename functions and get rid of old unused functionSteve Klebanoff2018-10-311-12/+4
| | |
| * | Stall at 95 percentSteve Klebanoff2018-10-311-27/+45
| | |
| * | WIP: Progress ticker with finishingSteve Klebanoff2018-10-311-0/+89
| | |
| * | return estimated stateSteve Klebanoff2018-10-301-6/+13
| |/
* | fix: change assetdatas for OMG and REP to be all lower case, make MKR bluefragosti2018-11-031-2/+5
| |
* | feat: add asserts for new API additionsfragosti2018-11-021-0/+3
| |
* | feat: implement basic erc20 token selectorfragosti2018-11-011-0/+7
| |
* | feat: modify public API to allow for passing in available assets, or fetch ↵fragosti2018-11-012-7/+42
|/ | | | assets from SRA
* Add comment and use constantSteve Klebanoff2018-10-301-2/+3
|
* Use polyfilled fetch from utilsSteve Klebanoff2018-10-301-2/+2
|
* async suffix and use polyfill fetch utilSteve Klebanoff2018-10-301-4/+4
|
* Introduce constants for eth gas station and coinbaseSteve Klebanoff2018-10-302-7/+7
|
* Use constant that exists nowSteve Klebanoff2018-10-301-5/+4
|
* gas price estimatorSteve Klebanoff2018-10-301-0/+45
|
* fix(instant): fix spelling error and BigNumber gte operationBrandon Millman2018-10-301-2/+2
|
* Merge branch 'development' into feature/instant/fixed-orders-in-render-methodBrandon Millman2018-10-303-3/+22
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * development: Has Sufficient Funds/Balance -> Has Sufficient ETH When transaction too low, treat as validation error. also modify callback: errorMessage could be AssetBuyError as well onPendingValidation -> onValidationPending linting Simpler way of validaitng has enough eth questionmark syntax instead of '| undefined' Validate enough ETH when user clicks buy acccount for no address move funct into util move imports yarn.lock changes feat(instant): Show message if user doesn't have enough ETH ethDecimals -> ETH_DECIMALS
| * Has Sufficient Funds/Balance -> Has Sufficient ETHSteve Klebanoff2018-10-302-2/+2
| |
| * lintingSteve Klebanoff2018-10-271-5/+0
| |
| * Simpler way of validaitng has enough ethSteve Klebanoff2018-10-271-30/+10
| |
| * acccount for no addressSteve Klebanoff2018-10-272-10/+18
| |
| * move funct into utilSteve Klebanoff2018-10-271-0/+30
| |
| * Merge branch 'development' into feature/not-enough-ethSteve Klebanoff2018-10-273-2/+41
| |\
| * | feat(instant): Show message if user doesn't have enough ETHSteve Klebanoff2018-10-272-1/+10
| | |
| * | ethDecimals -> ETH_DECIMALSSteve Klebanoff2018-10-271-3/+3
| | |
* | | Refactor error handling such that errorMessage lives on the top level stateBrandon Millman2018-10-272-71/+26
| | |
* | | fix: init BigNumberInput not BigNumber when initializing statefragosti2018-10-271-7/+12
| | |
* | | Merge branch 'development' of https://github.com/0xProject/0x-monorepo into ↵fragosti2018-10-273-2/+41
|\ \ \ | | |/ | |/| | | | feature/instant/fixed-orders-in-render-method
| * | Merge branch 'development' of https://github.com/0xProject/0x-monorepo into ↵fragosti2018-10-262-2/+6
| |\| | | | | | | | | | feature/instant/input-fees-rounding
| * | chore: dont override toString of BigNumber and other PR feedbackfragosti2018-10-262-9/+9
| | |
| * | Merge branch 'development' of https://github.com/0xProject/0x-monorepo into ↵fragosti2018-10-251-0/+24
| |\ \ | | | | | | | | | | | | feature/instant/input-fees-rounding
| * | | chore: run linterfragosti2018-10-252-2/+2
| | | |
| * | | feat: cover more token symbol edge casesfragosti2018-10-241-1/+1
| | | |
| * | | feat: add formatted symbol for asset uitlfragosti2018-10-241-1/+11
| | | |
| * | | feat: support half-written decimal numbers in BigNumberInputfragosti2018-10-241-0/+29
| | | |
* | | | feat: add assertions to render methodfragosti2018-10-271-0/+44
| | | |
* | | | Merge branch 'development' of https://github.com/0xProject/0x-monorepo into ↵fragosti2018-10-262-2/+6
|\ \ \ \ | | |_|/ | |/| | | | | | feature/instant/fixed-orders-in-render-method
| * | | txnHash -> txHashSteve Klebanoff2018-10-261-2/+2
| | | |
| * | | Merge pull request #1180 from 0xProject/feature/instant/metamask-denialSteve Klebanoff2018-10-251-0/+4
| |\ \ \ | | |_|/ | |/| | [instant]Message when signature denied
| | * | feat: Message when denying signing transactionSteve Klebanoff2018-10-251-1/+1
| | | |
| | * | Message when signature deniedSteve Klebanoff2018-10-251-0/+4
| | |/
* | | fix: dont fail for mainnet assetData and non-mainnet networkfragosti2018-10-261-1/+4
| | |
* | | feat: flash an error if the wrong network is detectedfragosti2018-10-261-0/+4
| | |
* | | feat: supply render options from URLfragosti2018-10-261-1/+0
|/ /
* / Get rid of react-shared as a dependency, write own etherscanUtilSteve Klebanoff2018-10-251-0/+24
|/
* chore: run linterfragosti2018-10-201-1/+0
|
* fix: dont force NFTs to uppercase their namefragosti2018-10-191-1/+1
|
* feat: add network to state and use it where relevantfragosti2018-10-191-7/+7
|
* fix: error test undefined casefragosti2018-10-191-2/+2
|
* fix: add error message and move more logic to assetUtilsfragosti2018-10-191-2/+9
|
* Merge branch 'development' of https://github.com/0xProject/0x-monorepo into ↵fragosti2018-10-195-13/+98
|\ | | | | | | feature/instant/beta-render-et-al
| * chore: change package org from 0xproject to 0xJacob Evans2018-10-186-7/+7
| |
| * ReactNode as default for formatters, and show bold dashSteve Klebanoff2018-10-181-6/+14
| |
| * handle other errorsSteve Klebanoff2018-10-181-1/+12
| |
| * creating big error util file per francescos comment in PRSteve Klebanoff2018-10-183-50/+51
| |
| * use lodash isUndefined per PR commentSteve Klebanoff2018-10-181-2/+4
| |
| * export assetDataUtil big objSteve Klebanoff2018-10-182-14/+15
| |
| * feat(instant): Handle AssetBuyer errorsSteve Klebanoff2018-10-183-0/+68
| |
* | feat: MVP of passing in sraApiUrl, assetData and other settings from render ↵fragosti2018-10-192-9/+34
|/ | | | method
* Add tests for format and use toFixed instead of round for usdfragosti2018-10-171-1/+1
|
* Remove expiry buffer seconds option from AssetBuyer initfragosti2018-10-161-3/+1
|
* Put boundNoop in a util filefragosti2018-10-161-0/+5
|
* feat: have coinbase API return BigNumber for eth-usd price endpointfragosti2018-10-131-2/+4
|
* feat: populate order details with information from worst buy quotefragosti2018-10-121-0/+45
|
* feat: Move over features from zrx-buyerfragosti2018-10-114-0/+36