Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finance - use updated app API with caching and init #854

Merged
merged 6 commits into from
May 29, 2019

Conversation

2color
Copy link
Contributor

@2color 2color commented May 16, 2019

What

  • Replace the INITIALIZATION_TRIGGER with an init function (part of the new API)
  • Pass the external vault contract and its initializationBlock to the api to leverage caching
  • Loading/Syncing indicator

Dependency PR

@2color 2color mentioned this pull request May 16, 2019
8 tasks
@coveralls
Copy link

coveralls commented May 16, 2019

Coverage Status

Coverage increased (+0.7%) to 97.732% when pulling 73c0e6c on finance-use-init-api into 102b85e on master.

@2color 2color force-pushed the finance-use-init-api branch from 723f3bb to 8389410 Compare May 24, 2019 03:44
@luisivan luisivan mentioned this pull request May 27, 2019
25 tasks
Copy link
Contributor

@sohkai sohkai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just a note on updating the token balances of the Vault on initialization.

2color added 4 commits May 29, 2019 14:41
* Use cached state in init and use sync events

* Render syncing state

* Use exported events object from the api

From e027fb419fa62a220034a248bc7c1d1271731519

* Finance: use the SyncIndicator component (#874)

* Finance: use the SyncIndicator component

* Finance: update @aragon/api dependencies

* bump @aragon/api 2.0.0-beta.2

* Upgrade rxjs
@2color 2color merged commit 8e0f1cc into master May 29, 2019
@2color 2color deleted the finance-use-init-api branch May 29, 2019 13:29
break
case events.SYNC_STATUS_SYNCED:
nextState.isSyncing = false
break
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small thing, could we lift these events out of the address check and do something similar to the Voting app?

ramilexe pushed a commit to ConsiderItDone/aragon-apps that referenced this pull request Dec 9, 2021
* finance: use updated api to leverage caching

* Add todo about a performance improvement

originates from discssion in aragon/aragon.js#297 (comment)

* Remove old TODO

* Load all token balances on init

* fixup! Load all token balances on init

* Finance - app loading state (aragon#867)

* Use cached state in init and use sync events

* Render syncing state

* Use exported events object from the api

From e027fb419fa62a220034a248bc7c1d1271731519

* Finance: use the SyncIndicator component (aragon#874)

* Finance: use the SyncIndicator component

* Finance: update @aragon/api dependencies

* bump @aragon/api 2.0.0-beta.2

* Upgrade rxjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants