Skip to content

Conversation

@atharen
Copy link

@atharen atharen commented Jun 18, 2025

Adds fallback whenever proposals fail to be retrieved in batch.

migueldingli1997 and others added 30 commits December 12, 2024 13:26
* Account balance display for vesting accounts

- Introduced spendable and locked balance calculations for vesting accounts.
- Updated UI to differentiate between total, spendable, and locked balances.
- Added logic to detect vesting accounts and load corresponding spendable balances.
- Improved overall balance display for both vesting and regular accounts.

* Enhance vesting account balance display

- Refined balance calculations for vesting accounts to include liquid and locked balances.
- Updated UI to reflect new balance categories: Liquid, Vesting, Delegation, Reward, and Unbonding.
- Added theoretical vested amount calculation based on vesting schedule.
- Improved clarity of balance descriptions and tooltips for better user understanding.

* feat(account): Refactor vesting account handling

- handling multi-vesting accounts with multiple schedule
- UI to display vesting schedule information, including progress.
- Refined balance display
- Added helper functions for better management of vesting account data.

* feat(account): Improve vesting account balances

- Balance calculations to leverages spendable and vesting amounts.
- Enhanced UI labels for clarity:
- 'Locked' to 'Vesting'
- 'Liquid' to 'Balance/Spendable'.
- Simplified balance rendering for maintainability.

* feat(chain): Update fuel mainnet configuration

- Reformatted JSON structure for better readability.
- Added asset details for FUEL including coingecko_id and logo.
- Specified features supported by the fuel mainnet.
- Removed redundant asset entry and ensured consistent formatting.

* readme: changelog for vesting account changes

changes related to support for vesting accounts and spendable balances

* fixup! feat(account): Improve vesting account balances

* fixup! fixup! feat(account): Improve vesting account balances

* fixup! Account balance display for vesting accounts

* fixup! Account balance display for vesting accounts

* refactor(account): vesting calculations and UI

- helper function for vested amounts based on vesting schedules.
- theoretical vested amount and total original vesting handling undefined cases.
- Streamlined vesting calculations

* refactor(account): improve balance calculations with vesting

- particularly when vesting details are missing
- still not ideal, especially for totalValue, but mildly improved

* fixup! refactor(account): improve balance calculations with vesting

* refactor(account): enhance balance loading

- Introduced a separate function to load balances based on account type.
- Improved handling of spendable balances for vesting accounts, with fallback to regular balances on failure.
- Streamlined balance calculations in the totalValue computation.

* refactor(account): simplify primaryDenom computation
* fix typo in pricemarket chart

when clicking the volume tab of the chat, hover tip remains Price, should be Volume

* support atom one

* fixed address decode issue

* remove truncation of blockspeed to more accurately estimate

* use toFixed(2) to limit decimals to two places.

* bfhevm-testnet

* updating rest port to correctly configure api and make it available at the explorer

* update widget

* fix: class binding for reactive 'kind' variable

* add group

* fix issue

* add wasm query

* support extension txs

* improve code

* fixed issue

* chore: fixed issues with Vue 3 component setup

* apply wasm execution

* add xion chain customizations

* improve supply page

* update txs type

* add ad

* enable ad on ping.pub

* improve ad banner

* add ad size

* hide Sponsors

* update ad component

* disable ad for now

* add reference

* fix links issue

* update color

* Account balance display for vesting accounts

- Introduced spendable and locked balance calculations for vesting accounts.
- Updated UI to differentiate between total, spendable, and locked balances.
- Added logic to detect vesting accounts and load corresponding spendable balances.
- Improved overall balance display for both vesting and regular accounts.

* Enhance vesting account balance display

- Refined balance calculations for vesting accounts to include liquid and locked balances.
- Updated UI to reflect new balance categories: Liquid, Vesting, Delegation, Reward, and Unbonding.
- Added theoretical vested amount calculation based on vesting schedule.
- Improved clarity of balance descriptions and tooltips for better user understanding.

* feat(account): Refactor vesting account handling

- handling multi-vesting accounts with multiple schedule
- UI to display vesting schedule information, including progress.
- Refined balance display
- Added helper functions for better management of vesting account data.

* feat(account): Improve vesting account balances

- Balance calculations to leverages spendable and vesting amounts.
- Enhanced UI labels for clarity:
- 'Locked' to 'Vesting'
- 'Liquid' to 'Balance/Spendable'.
- Simplified balance rendering for maintainability.

* feat(chain): Update fuel mainnet configuration

- Reformatted JSON structure for better readability.
- Added asset details for FUEL including coingecko_id and logo.
- Specified features supported by the fuel mainnet.
- Removed redundant asset entry and ensured consistent formatting.

* readme: changelog for vesting account changes

changes related to support for vesting accounts and spendable balances

* fixup! feat(account): Improve vesting account balances

* fixup! fixup! feat(account): Improve vesting account balances

* fixup! Merge remote-tracking branch 'upstream/master' into feature/resync-with-upstream

* fixup! Merge remote-tracking branch 'upstream/master' into feature/resync-with-upstream

---------

Co-authored-by: cloudaiminer <[email protected]>
Co-authored-by: ping <[email protected]>
Co-authored-by: Tino Rusch <[email protected]>
Co-authored-by: JTG947 <[email protected]>
Co-authored-by: Dmitry <[email protected]>
Co-authored-by: wizard <[email protected]>
Co-authored-by: 2xburnt <[email protected]>
- Updated fetchProposals method to utilize cache and handle fallback logic for sequential proposal fetching.
- Added caching mechanism for government proposals to improve performance and reduce redundant API calls.
- Proposal fetching using Promise.all to reduce redundant API calls.
- caching moved to govCache for readability
- Introduced separate TTL constants for data and request caching.
- isExpired method to check cached request validity
- manages proposal fetching based on freshness.
- easier to distinguish with upstream
- Introduced a new TTL for non-complete proposals, allowing for a 1-minute cache duration.
- Added a method to determine TTL based on proposal status, ensuring completed proposals (status 3 or 4) never expire from the cache.
- Introduced a fallback data banner in the governance component to inform users when fallback data is being used.
- Updated internationalization files to include translations for the fallback data notice in multiple languages.
- Enhanced the fallback logic to return a flag indicating whether fallback data is in use.
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