Page MenuHomePhabricator
Feed Advanced Search

Jul 31 2023

emack updated the diff for D14324: [Cashtab][Alias] Add alias status check to wallet contacts.

Responding to feedback

Jul 31 2023, 22:49
emack closed D14247: [Cashtab][Alias] Switch alias registration fee lookup to api.
Jul 31 2023, 22:36
emack committed rABC1d1f62a9825a: [Cashtab][Alias] Switch alias registration fee lookup to api (authored by emack).
[Cashtab][Alias] Switch alias registration fee lookup to api
Jul 31 2023, 22:36
emack updated the diff for D14247: [Cashtab][Alias] Switch alias registration fee lookup to api.

updated wording nit

Jul 31 2023, 22:34
emack updated the diff for D14323: [Cashtab][Alias] Deprecate alias caching mechanism.

rebase

Jul 31 2023, 22:31
emack updated the diff for D14322: [Cashtab][Alias] Deprecate getAddressFromAlias.

rebase

Jul 31 2023, 22:30
emack added a comment to D14325: [Cashtab][Alias] Add websocket listener for 1 conf on alias registration txs.

I'm talking about the MockChronikClient class

Without the MockChronikClient class you won't be able to trigger a mock Confirmed ws event, which leads to the infinite async loop of txConfListener() reconnecting yearning for a confirmation after npm test has concluded.

Jul 31 2023, 13:07
emack abandoned D14326: [Chronik-client] Add token minter to the .token() API response.

This doesn't have to be in the client library though, it can be in the code for the airdrop.

This slows down everyone that just wants to have token ticker / token name / token decimals.

Jul 31 2023, 13:02
emack updated the test plan for D14247: [Cashtab][Alias] Switch alias registration fee lookup to api.
Jul 31 2023, 13:01
emack added inline comments to D14247: [Cashtab][Alias] Switch alias registration fee lookup to api.
Jul 31 2023, 13:01
emack updated the diff for D14247: [Cashtab][Alias] Switch alias registration fee lookup to api.

Updated alias taken notification to include address

Jul 31 2023, 13:01
emack updated the diff for D14324: [Cashtab][Alias] Add alias status check to wallet contacts.

Updated flow logic

Jul 31 2023, 12:38
emack added a comment to D14326: [Chronik-client] Add token minter to the .token() API response.

what's the use case for this ?

Jul 31 2023, 12:21
emack requested review of D14325: [Cashtab][Alias] Add websocket listener for 1 conf on alias registration txs.

You should split the mock refactor out of this diff, this makes it very noisy.

Jul 31 2023, 12:13
emack requested review of D14326: [Chronik-client] Add token minter to the .token() API response.
Jul 31 2023, 06:11

Jul 30 2023

emack retitled D14269: [Chronik-client] - Cycle through backup instances on outage from [Chronik-client] - (POC) cycle through backup instances on outage to [Chronik-client] - Cycle through backup instances on outage.
Jul 30 2023, 14:59
emack added inline comments to D14269: [Chronik-client] - Cycle through backup instances on outage.
Jul 30 2023, 14:58
emack updated the diff for D14269: [Chronik-client] - Cycle through backup instances on outage.

At a high level, the key design changes are:

  • _get and _post now both reside inside the ChronikClient class
  • _post now updated in this same diff to reduce unnecessary complexity
  • _get and _post functions are now using the url(s) initialized in the ChronikClient constructor as the single source of truth
  • _get and _post calls a newly created _callAxios function that handles the axios calls
  • In order for ScriptEndpoint's utxo() and history() functions to call the same _get and _post functions from inside ChronikClient, a reference to the ChronikClient instance is passed into ScriptEndpoint's constructor
Jul 30 2023, 14:57
emack updated the diff for D14227: [eCash library][ecash-coinselect] Initial npm module for basic utxo selection.

Updated README

Jul 30 2023, 06:56
emack abandoned D14257: [Chronik-client] Implement new UTXO APIs.

As per feedback above.

Jul 30 2023, 06:49
emack added inline comments to D14227: [eCash library][ecash-coinselect] Initial npm module for basic utxo selection.
Jul 30 2023, 06:45
emack updated the diff for D14227: [eCash library][ecash-coinselect] Initial npm module for basic utxo selection.

Responding to feedback

Jul 30 2023, 06:45
emack added a comment to D14323: [Cashtab][Alias] Deprecate alias caching mechanism.

Double checking with Joey on any caching related edge cases previously encountered during wallet cache migrations before landing this

Jul 30 2023, 03:51
emack updated the summary of D14325: [Cashtab][Alias] Add websocket listener for 1 conf on alias registration txs.
Jul 30 2023, 03:44
emack requested review of D14325: [Cashtab][Alias] Add websocket listener for 1 conf on alias registration txs.
Jul 30 2023, 03:42

Jul 29 2023

emack requested review of D14324: [Cashtab][Alias] Add alias status check to wallet contacts.
Jul 29 2023, 15:50
emack updated the diff for D14247: [Cashtab][Alias] Switch alias registration fee lookup to api.

Removed redundant isValidAliasPricing function and its corresponding unit tests as Cashtab is now exclusively using the /alias endpoint for pricing and no longer has a need for the /pricing endpoint

Jul 29 2023, 13:50
emack updated the test plan for D14247: [Cashtab][Alias] Switch alias registration fee lookup to api.
Jul 29 2023, 13:38
emack updated the diff for D14247: [Cashtab][Alias] Switch alias registration fee lookup to api.

Refactored to align with the revised alias endpoint where unregistered aliases returns an object containing the new registrationFeeSats param.
Key changes include:

  • Removed full pricing tier retrieval at page load
  • Instead of showing updated pricing for each character entered into the registration input field, the final price will be displayed via the preview modal via one single API call. This is to avoid making an API call for every single character input.
  • The one single API call being made is at the point of retrieving alias price for the preview modal
Jul 29 2023, 13:37
emack requested review of D14323: [Cashtab][Alias] Deprecate alias caching mechanism.
Jul 29 2023, 05:57
emack requested review of D14322: [Cashtab][Alias] Deprecate getAddressFromAlias.
Jul 29 2023, 05:23
emack closed D14266: [Cashtab][Alias] Update SendToken.js to use api endpoint in place of getAddressFromAlias.
Jul 29 2023, 05:12
emack committed rABC8ba00ed0bdd9: [Cashtab][Alias] Update SendToken.js to use api endpoint in place of… (authored by emack).
[Cashtab][Alias] Update SendToken.js to use api endpoint in place of…
Jul 29 2023, 05:12
emack closed D14320: [Cashtab][Alias] Deprecate getPendingAliases.
Jul 29 2023, 05:03
emack committed rABC86d486c76d8e: [Cashtab][Alias] Deprecate getPendingAliases (authored by emack).
[Cashtab][Alias] Deprecate getPendingAliases
Jul 29 2023, 05:03
emack added a comment to D14269: [Chronik-client] - Cycle through backup instances on outage.

waiting to hear from @tobias_ruck on this one but as this is backward compatible and useful for both ecash and lotus users I don't think we'll have the same objections, @emack please proceed with this diff

Jul 29 2023, 01:57

Jul 28 2023

emack closed D14319: [Cashtab][Alias] Deprecate getAliasServerState.
Jul 28 2023, 15:50
emack committed rABC16e851dd3b08: [Cashtab][Alias] Deprecate getAliasServerState (authored by emack).
[Cashtab][Alias] Deprecate getAliasServerState
Jul 28 2023, 15:50
emack requested review of D14320: [Cashtab][Alias] Deprecate getPendingAliases.
Jul 28 2023, 15:48
emack closed D14318: [Cashtab][Alias] Deprecate isAliasRegistered.
Jul 28 2023, 15:40
emack committed rABCf53a1c6d79ef: [Cashtab][Alias] Deprecate isAliasRegistered (authored by emack).
[Cashtab][Alias] Deprecate isAliasRegistered
Jul 28 2023, 15:40
emack closed D14317: [Cashtab][Alias] Deprecate isAliasAvailable.
Jul 28 2023, 15:40
emack committed rABC297b08908a30: [Cashtab][Alias] Deprecate isAliasAvailable (authored by emack).
[Cashtab][Alias] Deprecate isAliasAvailable
Jul 28 2023, 15:40
emack requested review of D14266: [Cashtab][Alias] Update SendToken.js to use api endpoint in place of getAddressFromAlias.
Jul 28 2023, 15:34
emack requested review of D14319: [Cashtab][Alias] Deprecate getAliasServerState.
Jul 28 2023, 15:11
emack added a comment to D14266: [Cashtab][Alias] Update SendToken.js to use api endpoint in place of getAddressFromAlias.

^ @Fabien thoughts on comment above and whether we can explore this in a separate diff?

Jul 28 2023, 14:54
emack closed D14316: [Cashtab][Alias] Deprecate isAddressRegistered.
Jul 28 2023, 14:51
emack committed rABCde71c044512b: [Cashtab][Alias] Deprecate isAddressRegistered (authored by emack).
[Cashtab][Alias] Deprecate isAddressRegistered
Jul 28 2023, 14:51
emack updated the diff for D14318: [Cashtab][Alias] Deprecate isAliasRegistered.

Simplified contact address alias validation

Jul 28 2023, 14:49
emack requested review of D14318: [Cashtab][Alias] Deprecate isAliasRegistered.
Jul 28 2023, 14:40
emack requested review of D14317: [Cashtab][Alias] Deprecate isAliasAvailable.
Jul 28 2023, 14:24
emack requested review of D14316: [Cashtab][Alias] Deprecate isAddressRegistered.
Jul 28 2023, 14:20
emack planned changes to D14257: [Chronik-client] Implement new UTXO APIs.
Jul 28 2023, 12:13
emack added a comment to D14269: [Chronik-client] - Cycle through backup instances on outage.

I was referring to a similar reluctance expected on merging changes to chronik-client (in this case, moving all functions into the ChronikClient class, redesign how the script().* APIs would work as a consequence and implementing array urls) ahead of his upcoming refactor of Chronik-client to support the in-node version. If D14257 was already considered overcomplicating the API then the refactor needed to land this diff is significantly more involved.

Jul 28 2023, 12:10

Jul 27 2023

emack planned changes to D14269: [Chronik-client] - Cycle through backup instances on outage.

ping ?

Jul 27 2023, 22:08

Jul 25 2023

emack closed D14211: [Cashtab][Alias] Refactor Alias.js to use new alias-server endpoints.
Jul 25 2023, 23:00
emack committed rABC2d29ffebba7b: [Cashtab][Alias] Refactor Alias.js to use new alias-server endpoints (authored by emack).
[Cashtab][Alias] Refactor Alias.js to use new alias-server endpoints
Jul 25 2023, 23:00
emack added inline comments to D14299: [alias-server] Pricing by blockheight.
Jul 25 2023, 05:13
emack updated the diff for D14211: [Cashtab][Alias] Refactor Alias.js to use new alias-server endpoints.

Responding to feedback

Jul 25 2023, 04:09
emack added inline comments to D14211: [Cashtab][Alias] Refactor Alias.js to use new alias-server endpoints.
Jul 25 2023, 04:09

Jul 23 2023

emack added a comment to D14257: [Chronik-client] Implement new UTXO APIs.

Also verified via local npm installation of this diff on a test script
npm install ./chronik-client

Jul 23 2023, 01:56
emack updated the diff for D14257: [Chronik-client] Implement new UTXO APIs.

Rebased to D14271 and executed npm run build

Jul 23 2023, 01:49
emack added inline comments to D14269: [Chronik-client] - Cycle through backup instances on outage.
Jul 23 2023, 01:44
emack updated the diff for D14269: [Chronik-client] - Cycle through backup instances on outage.

Responding to feedback

Jul 23 2023, 01:43

Jul 22 2023

emack updated the diff for D14211: [Cashtab][Alias] Refactor Alias.js to use new alias-server endpoints.

Disabled register alias button upon server error regardless of new inputs

Jul 22 2023, 10:29
emack added a comment to D14266: [Cashtab][Alias] Update SendToken.js to use api endpoint in place of getAddressFromAlias.

That's because you are not unit testing the feature. Your input is a giant handler, if you cut it into pieces that becomes much more manageable. You don't want to test user input or the query or the UI rendering, but the logic in between: if the requested alias doesn't exist, it doesn't return an address but an error.

Jul 22 2023, 01:38

Jul 21 2023

emack added a comment to D14266: [Cashtab][Alias] Update SendToken.js to use api endpoint in place of getAddressFromAlias.

Using unit tests to simulate frontend alias input into the address field, mocking the API response then validating the subsequent frontend error is proving to be a bit of a head scratcher, even with the react testing library. Will keep chipping away at this. So far the screen and renderhook approaches have not yielded any results.

Jul 21 2023, 15:33

Jul 20 2023

emack planned changes to D14266: [Cashtab][Alias] Update SendToken.js to use api endpoint in place of getAddressFromAlias.
Jul 20 2023, 23:29

Jul 19 2023

emack added inline comments to D14269: [Chronik-client] - Cycle through backup instances on outage.
Jul 19 2023, 03:48
emack updated the diff for D14269: [Chronik-client] - Cycle through backup instances on outage.

Updated per feedback

Jul 19 2023, 03:48

Jul 18 2023

emack added a comment to D14211: [Cashtab][Alias] Refactor Alias.js to use new alias-server endpoints.

Will implement websocket in separate diff

Jul 18 2023, 23:51
emack updated the diff for D14211: [Cashtab][Alias] Refactor Alias.js to use new alias-server endpoints.
  • Removed registerAliasButton state var and updated the register alias button's disabled prop to depend on aliasServerError
  • Default value of aliasServerError changed from '' to false to simplify usage
Jul 18 2023, 23:49
emack updated the diff for D14266: [Cashtab][Alias] Update SendToken.js to use api endpoint in place of getAddressFromAlias.

React/Jest dynamically generates the ((cov_1erx5eord5(...).s[16]++) portion of the expected error message Cannot destructure property 'wallet' of ((cov_1erx5eord5(...).s[16]++) _react.default.useContext(...)) as it is undefined. at the time of test execution, hence updating the error test case to check that the error message string contains Cannot destructure property 'wallet' as that is the core aspect being validated

Jul 18 2023, 23:30
emack planned changes to D14266: [Cashtab][Alias] Update SendToken.js to use api endpoint in place of getAddressFromAlias.
Jul 18 2023, 16:02
emack updated the diff for D14266: [Cashtab][Alias] Update SendToken.js to use api endpoint in place of getAddressFromAlias.

Added error test cases

Jul 18 2023, 15:51
emack updated the summary of D14269: [Chronik-client] - Cycle through backup instances on outage.
Jul 18 2023, 14:08
emack added a comment to D14271: [chronik-client] Add prepublish command to prevent unbuilt npm deployments.

Getting cherry pick failures, probably needs rebase after D14270 landed yesterday

Jul 18 2023, 14:01
emack updated the diff for D14269: [Chronik-client] - Cycle through backup instances on outage.

Removed unrelated change to _post()

Jul 18 2023, 13:03
emack updated the diff for D14269: [Chronik-client] - Cycle through backup instances on outage.
  • Constructor updated to take in an array of chronik urls when building the client
  • _get() function updated to take in an array of chronik urls initialized by the constructor
  • If the chronik instance keels over it cycles to the next url until a successful call is made. If all urls are non-responsive the _get() call throws error
  • Diffused fork bomb and added unit test to check scenarios where all urls are invalid
Jul 18 2023, 12:56
emack added a comment to D14257: [Chronik-client] Implement new UTXO APIs.

@bytesofman - does this diff need to wait till D14271 lands, followed by running npm publish?

Jul 18 2023, 06:15
emack updated the diff for D14257: [Chronik-client] Implement new UTXO APIs.

Updated nits and typo

Jul 18 2023, 06:14
emack updated the diff for D14266: [Cashtab][Alias] Update SendToken.js to use api endpoint in place of getAddressFromAlias.

Fixed linting errors

Jul 18 2023, 05:38
emack updated the diff for D14266: [Cashtab][Alias] Update SendToken.js to use api endpoint in place of getAddressFromAlias.

Added missing unit test to verify component state at initialization

Jul 18 2023, 05:29
emack updated the diff for D14211: [Cashtab][Alias] Refactor Alias.js to use new alias-server endpoints.

Perma-disables Register Alias button upon server outage, even after new inputs

Jul 18 2023, 01:29

Jul 17 2023

emack added a comment to D14266: [Cashtab][Alias] Update SendToken.js to use api endpoint in place of getAddressFromAlias.

Why is there no test change ?

When pushing this diff the aliasEnabled flag in Ticker.js is set to false, so that landing this diff does not prematurely publish this particular alias UI function. If the flag is enabled to true, then npm test will pick up on the UI changes and result in updates to the snapshots for this component.
What I'll do is add some additional unit tests that checks the state of this component.

Jul 17 2023, 12:43

Jul 16 2023

emack accepted D14270: [chronik-client] Bump version number.
Jul 16 2023, 22:27
emack updated the test plan for D14269: [Chronik-client] - Cycle through backup instances on outage.
Jul 16 2023, 03:57
emack updated the test plan for D14269: [Chronik-client] - Cycle through backup instances on outage.
Jul 16 2023, 03:56
emack requested review of D14269: [Chronik-client] - Cycle through backup instances on outage.
Jul 16 2023, 03:54

Jul 15 2023

emack added a comment to D14267: [alias docs] Better language and implementation rule for possible price changes.

FYI this will also mean Cashtab has to make a separate API call to get the tipheight everytime it calls the pricing endpoint.

Jul 15 2023, 06:01
emack accepted D14268: [alias-server] Return price and price expiration blockheight from /alias endpoint for unregistered aliases.
Jul 15 2023, 05:56
emack accepted D14267: [alias docs] Better language and implementation rule for possible price changes.
Jul 15 2023, 05:54
emack updated the diff for D14211: [Cashtab][Alias] Refactor Alias.js to use new alias-server endpoints.

Updated error handling per feedback

Jul 15 2023, 01:26
emack added inline comments to D14267: [alias docs] Better language and implementation rule for possible price changes.
Jul 15 2023, 00:22
emack added inline comments to D14267: [alias docs] Better language and implementation rule for possible price changes.
Jul 15 2023, 00:19
emack added inline comments to D14268: [alias-server] Return price and price expiration blockheight from /alias endpoint for unregistered aliases.
Jul 15 2023, 00:11
emack added inline comments to D14268: [alias-server] Return price and price expiration blockheight from /alias endpoint for unregistered aliases.
Jul 15 2023, 00:07

Jul 14 2023

emack requested review of D14266: [Cashtab][Alias] Update SendToken.js to use api endpoint in place of getAddressFromAlias.
Jul 14 2023, 14:46
emack closed D14212: [Cashtab][Alias] Update Send.js to use api endpoint in place of getAddressFromAlias.
Jul 14 2023, 13:48
emack committed rABCe618271a66b9: [Cashtab][Alias] Update Send.js to use api endpoint in place of… (authored by emack).
[Cashtab][Alias] Update Send.js to use api endpoint in place of…
Jul 14 2023, 13:48