Commit Graph

27 Commits

Author SHA1 Message Date
Arjun Porwal
68c45b91b6
Fix: Staking summary and Schedular remaining time (#11903)
* feat: enhance staking overview by combining data from multiple sources and add SummarySession component

* feat: integrate staking async APIs into Scheduled and Scheduler components

* fix: build

* feat: integrate staking async APIs into StakingUnbonding component

* feat: enhance SummarySession component with era progress calculation and improved API integration

* fix: chart timeline

* chore: comment
2025-10-13 22:00:06 +05:30
Arjun Porwal
5630635d4c
Refactor: Move Relay and Asset Hub API Connections to Context (#11891)
* feat: add StakingAsync context and hooks for improved staking API integration

* refactor: rename isStakingAsyncPage to isStakingAsync for consistency across components

* feat: introduce useBestNumberRelay hook for enhanced best number retrieval based on staking async state

* feat: add 'Kusama Asset Hub' link to Polkassembly and Subsquare configurations
2025-10-09 09:47:24 +05:30
Arjun Porwal
9c1c4ee96f
Improve block time handling for chains with elastic scaling (#11876)
* fix: last block timer

* refactor: update BlockHeader and BlockHeaders to use AugmentedBlockHeader type and add blockTime calculation

* refactor: remove isLast prop from BlockHeader and update BlockHeaders mapping
fix: update label in Summary component from 'target' to 'slot'
fix: improve block time calculation in BlockAuthors context

* refactor: update BlockHeader to accept multiple headers and group by timestamp in BlockHeaders

* refactor: update BlockHeader time formatting and adjust display value units

* refactor: simplify BlockAuthorsCtxRoot by removing blockTime calculation and parent timestamp retrieval

* feat: enhance calcDelay function to handle elastic scaling and distribute delays across blocks
2025-10-06 09:55:47 +05:30
Arjun Porwal
6dd6be5751
Upgraded polkadot dependencies (#11597)
* chore: upgraded polkadot deps

* fix: build error

* chore: update resolutions
2025-06-02 17:14:31 +05:30
Arjun Porwal
ecf134bd41
refactor: remove unused useEffect and clean up fee asset handling (#11397) 2025-03-19 22:01:52 +05:30
Arjun Porwal
d1ac40d226
fix: asset conversion checks and update default selected asset value (#11341) 2025-02-28 06:27:45 -05:00
Arjun Porwal
a36d3ab0e9
Enhancement: Fee Payment with Sufficient Assets (#11336)
* refactor: remove choosing fee asset from transfer and it's types

* feat: choose fee asset in authorize tx modal

* fix: asset id formatting
2025-02-26 18:36:14 +05:30
Arjun Porwal
046ea0c504
Fix Asset Id Parsing (#11334)
* fix: correct asset supply check in PayWithAssetProvider

* refactor: improve asset display and validation in Balances and Asset components
2025-02-25 16:33:11 -05:00
Arjun Porwal
bdfcedae72
AssetHub: Fee payment with any sufficient asset (#11229)
* feat: created useAssetIds and useAssetInfo hook

* feat: created pay with asset component

* feat: add paywith asset component with Transfer modal

* fix: signer options as prop

* fix: payment info

* feat: created PayWithAsset provider and integrated with transfer form

* chore: rename variable

* fix: PayWithAsset provider wrapping

* feat: integrate PayWithAsset context and enhance asset info fetching

* fix: some build errors

* refactor: update imports and simplify getFeeAssetLocation function

* refactor: simplify component structure and update PayWithAsset import paths

* fix: all build errors

* fix: avoid redundant type

* feat: added translation

* feat: enhance fee payment info & fee asset handling

* fix: translations ordering

* fix: remove redundant types and hooks

* chore: added statemine chain

* refactor: generalize fee acceptance check for non-native assets

* fix: remove constants and generalize palletIndex
2025-02-06 21:20:08 +05:30
Tarik Gul
384049fb6b
2025 (#11172)
* 2025

* update ci scripts to add access to scripts
2025-01-03 03:59:53 +02:00
Daria
4df5c9a8d5
Relay Chain - Coretime Overview UI Tab (#11016)
* exposing coretime wss endpoint to use on relay chain, adjusted hooks to accept api endpoint as a parameter

* adjusting hook calls to new parameters

* added Tag for coretime types, renamed occupancyType to coretimeType

* added cycle progress and cycle end date to summary, fixed the estimation dates

* coretime page draft, added hook for gathering all the coretime information in order to show it on relay chain

* lint

* bumped version

* updated coretime chain summary

* updated summary, added timeslice for the first sale start,

* hook updates to make sure the coretime data is displayed even if workloads are empty, fallback on coreAssignments

* removed unused files

* lint

* tsc

* merging parachainIds with renewalIds

* if there is no record in potential renewals, then the chain has renewed already

* added config for page-coretime

* removed hardcoded regionLength value

* improved function to find out type

* lint

* tsc

* Fix versioning

* fix comments

---------

Co-authored-by: tarikgul <tariksnow37@gmail.com>
2024-10-22 09:38:00 -04:00
Tarik Gul
478cd03e7e
Use apiSystemPeople for identities on {relay | system} chains, and keep compat for parachains (#10598)
* Use apiSystemPeople for identities on relay chains

* Add apiIdentity support

* add config

* Fix nits

* Get working condition for all chains!

* add enableIdentity for correct support

* Add comments to EndpointOption type

* Add some inline comments
2024-05-21 21:28:03 +03:00
Qiwei Yang
453b94f381
feat: local fork allow fake accounts (#10342)
* fix: upgrade chopsticks

* feat: expose fork in context

* fix lock

* fix: add account to chopsticks

* feat: sign fake

* fix: lint
2024-04-10 22:12:57 -04:00
Tarik Gul
d088dfe32a
Bump @polkadot/* deps (#10355)
* Bump @polkadot/* deps

* fix updates based on api

* Fix bytes to EventRecord type

* nit
2024-03-14 17:25:27 +02:00
Qiwei Yang
9d994f505f
feat: make local fork non persistent across sessions (#10315) 2024-03-02 09:11:52 -05:00
Jaco
0649261a5d
2024 (#10152) 2024-01-08 15:06:30 +02:00
Jaco
e23c8cf152
Bump pjs deps (#9794)
* Bump pjs deps

* Some cleanups

* Additional fixes

* Additional fixes

* kilt

* Additional fixes

* Headers

* Additional headers

* Additional

* Additional

* Additional

* Additional

* It seems to lint... locally.

* It seems to build... locally.

* Review adjustments
2023-08-19 09:38:42 +03:00
Jaco
26bcc6073d
Switch on tsconfig composite (#9465)
* Switch on tsconfig composite

* Rebuild locales

* Fix CallExpander import
2023-05-19 15:11:59 +03:00
Jaco
1e7ebdee40
Break (some) circular dependencies (#9464)
* Break (some) circular dependencies

* Rebuild translations
2023-05-19 10:26:23 +03:00
Jaco
815ecd9446
Bump dev (#9359) 2023-04-21 16:17:36 +03:00
Jaco
2e5bd0931c
Filter treasury.UpdatedInactive events (#9159) 2023-03-12 19:35:15 +02:00
Jaco
eacf028ba6
Use .js imports in src (#9132)
* Use .js imports in src

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Add WP extension aliases

* Bump dev

* Additional

* Additional

* Adjust extensionAlias order
2023-03-09 12:11:03 +02:00
Jaco
d76587c976
Adjust address conversion (32 can convert to H160) (#8991) 2023-02-09 15:38:40 +02:00
Jaco
3fc3b1edbf
Defer keyring init until chain type is available (#8980)
* Defer keyring init until chain type is available

* Ensure optionsSubject operation

* Attempt to fix mocked hook

* Adjust bounties spec context order

* Fix is* flags on mock
2023-02-08 18:36:04 +02:00
Jaco
7b685cec66
Add useTimer hook (& use in ApiStatsCtx) (#8857)
* Add useTimer hook (& use in ApiStatsCtx)

* Adjust useBounce (w/ timerId var)

* Adjust getStats & mergeStats
2023-01-21 11:28:42 +02:00
Jaco
43d4ba2a05
Fix API stats graph (#8856) 2023-01-21 10:26:37 +02:00
Jaco
37f44367b4
Rework context usage (& move most to react-hooks) (#8731)
* Rework context usage (& move most to react-hooks)

* Move use{Accounts, Addresses} to use contexts

* Cleanups

* Global alignment renames

* Combine keyring subjects into KeyringCtx

* Cleanups to contexts

* Small adjustment to window size usage

* Popup test via data-testid

* Fix Bounties tests

* Move getStats to correct location

* Adjust ApiStats

* Do add unsubs (although unneeded)
2023-01-09 12:56:38 +02:00