Commit Graph

376 Commits

Author SHA1 Message Date
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
bf0cc2fcfb
Improved Validator DX for set_keys in staking POST AHM (#11863)
* feat: improved validator set keys ux

* feat: refactor InjectKeys and useStakingAsyncApis for improved API readiness checks
2025-10-01 22:10:42 +05:30
Arjun Porwal
f18c75ad27
fix: assets loading screen (#11854) 2025-10-01 17:36:51 +05:30
Arjun Porwal
95e7f3b5a9
Filter events by user accounts (#11728)
* feat: created toggle component for events

* chore: added translation

* feat: integrated event filtering logic with ui

* chore: increased cache size

* feat: add toggle for user-specific events in Extrinsics component

* style: wrap EventsToggle in a styled div for improved styling
2025-08-25 09:05:00 +05:30
Arjun Porwal
b99783953d
Prioritize Selected Chain RPC Provider for System Chains (#11764)
* fix: select system chains url based on selected chain's provider

* refactor: rename variable for clarity
2025-08-19 09:00:07 +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
Daria
468a3d5107
Feedback/#11253 (#11304)
* countdown component

* filtering by parachain id in workplan and workload

* lint

* rename chainName to relayName, fixed subscan block link

* always showing price even if the cores are sold out

* moved some calculations to the coretime context

* added broker context for page-broker, fix for wrong dates

* showing time with the estimated date in places

* removed extra code when calculating renewal status

* tsc for page-broker

* page-coretime tsc

* fix showing correct dates for fixed price phase in sale history

* minified workinforow as all rows show the same information now

* default values for fn input

* showing start price of the sale on the sale tab

* replaced custom Countdown element with existing implementation

* adjusted estimateTime function for broker

* adjusted estimateTime function for coretime page

* lint

* added Renewal link for RegionX
2025-04-04 12:01:20 +13:00
drgora
04b9e9c726
Add zkVerify Volta inflation parameters (#11448)
* Add inflation parameters for the zkVerify Volta testnet

* Fix division by 0

Fix division by 0 if ideal stake is set to 0 (i.e. not accounted for when computing the inflation).
2025-04-03 12:01:35 +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
d42d26e803
refactor: Enhance useOwnEraRewards with staker rewards fetching and event handling (#11376) 2025-03-10 18:50:04 +05:30
Arjun Porwal
331fc4b9a2
Enhance Preimages Page with Improved Usability (#11342)
* enhance: Add user preimages component and update preimage handling

* refactor: user preimages handling and improve UI components

* style: enhance table row styling in Preimage component

* feat: unnote multiple preimages at once

* chore: check if id is not undefined
2025-03-05 22:52:59 +05:30
Daria
2b9e019c28
fix for showing expires even though chain renewed (#11353) 2025-03-05 11:15:41 +13:00
Tarik Gul
fc2b1c3657
Ensure safety check on isEmpty (#11358) 2025-03-04 17:51:18 +02:00
Arjun Porwal
b46bc1d54a
fix: replace isEmpty checks with utility function in account info hooks (#11355) 2025-03-04 09:29:09 -05:00
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
11024f141a
Refactor Assets Page <> Improve Non-Native Asset Balance Display (#11290)
* feat: shown assets in table format

* feat: refactor Account and Asset components for improved rendering and styling

* feat: add search functionality to asset balances display

* feat: remove emptySpinner prop from Balances table
2025-02-12 08:17:07 -05:00
Daria
c24c90ec8c
Adding Filters for the Coretime - Overview Tab according to feedback (#11217)
* added Expires soon warning on everything that is not Reservation and expires within 7 days

* added subscan links to the table, link for the project and for the block

* filter by parachain id

* filter by parachain name

* filter by type

* sorting filters by lastBlock

* filters working together

* filtering update

* lint

* refactor

* unused var

* flipped arrows for ASC and DESC

* lint

* lint

* lint
2025-02-10 21:20:50 +13: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
Daria
e5b2b487fd
fix: showing what core the chain is renewed on (#11256)
* fix: showing what core the chain is renewed on

* removed the code that is part of another pr

* better wording
2025-02-05 06:36:10 -05:00
Arjun Porwal
ce336a6916
fix: handle potential undefined weight in convertWeight function and improve proofSize handling (#11225) 2025-01-22 07:37:37 -05:00
Tarik Gul
384049fb6b
2025 (#11172)
* 2025

* update ci scripts to add access to scripts
2025-01-03 03:59:53 +02:00
Daria
5e80322362
Relay Chain - Coretime Sale UI (#11091)
* added sales tab

* draft for the progress bar

* draft for calculating values for the coretime progress timeline

* lint

* added historical data on sales, button to see transactions on subscan

* breaking down utils file logically

* improving calculations of phase configuration, sale details, etc

* lint

* correctly calculated sale start/end blocks, dates and ts

* added core price calculation

* chainName type, adjustments for westend and paseo

* ts fixes

* used helper funcitons for getting relay blocks

* moved functionality to a new helper

* moved constants from types file in react-hooks, page-broker, page-coretime

* added dynamic coretime constants, wrapped page coretime in a context for dynamic functions

* moved coretime constants to a separate hook for reusability

* removed coretime consts and added useCoretimeConsts in page-broker

* passing a correct block number for coretime price calculation
2024-12-29 13:38:57 +13:00
Tarik Gul
56b21cf072
Fix payout UI for staking (#11035) 2024-11-04 22:51:58 +02:00
Tarik Gul
f403bd4cc3
Update all PJS deps (#11051)
* Update all PJS deps

* Fix type issue with candidate

* Fix compatibility with new CJS and ESM targettting
2024-11-04 17:45:55 +02:00
Daria
069b032213
Relay Chain Coretime UI bugs (#11043)
* showing multiple core rows for parachains, changed end dates for non extended chains, correct renew status

* mobile table

* only showing renewals eligibility during the interlude

* removed extra tag

* styled component $property
2024-10-29 07:12:17 -04: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
Daria
859ba4800e
Coretime Broker on Coretime Chain - Update after Coretime Polkadot release (#10947)
* showing all cores, not relying on the core information in workload to show the cores

* swapped idles and pools to reflect correct values

* added start and end for bulk coretime, taking into account timeslice from the workplan

* checked and updated the time estimation function

* added cores offerred vs sold in summary

* filters turned back on

* lint

* reversed a change in a file from .github folder

* removed some extra checks

* minor refactor
2024-09-26 17:25:22 +08:00
Daria
6740d28864
Fix: UI Coretime type fix (#10933)
* added Option type as return type from api requests for brokerConfig and brokerSalesInfo

* extra check for value
2024-09-19 21:58:55 +08:00
Daria
f98eb76597
Fix: updated parsing for brokerConfig and brokerSalesInfo (#10926)
* updated parsing for brokerConfig and brokerSalesInfo

* renamed file

* updated parsing for brokerConfig and brokerSalesInfo

* better type conversion for BN

* BN type change

* lint
2024-09-18 21:40:20 +08:00
Daria
12d9b3a53e
updated broker pallets calls to be more general, added the estimated bulk price value for overtime ui tab (#10923) 2024-09-17 20:30:01 +08:00
Daria
519127d567
Fix: Error on Coretime on Polkadot due to no data coming from Coretime API (#10910)
* added placeholders for when no data is available

* linter warning
2024-09-11 08:49:37 -04:00
Daria
7c9f388698
Coretime Chain - Overview UI Tab (#10898)
* added overview page

* sanitized task

* added workplan table

* staged missing files

* updated filters

* fixed some types

* updated mask graph

* copyright

* linting

* install

* added relay overview

* linting

* refactoring hooks

* translations

* updated coretime deps

* updated tsconfig

* fixed build

* root tsconfig

* fix tsconfig

* app-coretime and app-broker

* filter bug fix

* prettied mask bar

* updated deps

* updated deps broker

* removed TS filter and added graph

* linting

* fixed headers

* fixed filter

* updated coretime summary

* updated relay tables

* fixed bulk price display

* updated regions

* styling

* fixed pallet version mismaatch info

* fixed expand button

* fixed alignment issues

* yarn install

* integrated some suggestions

* linting

* updated version

* Fix Header on table

* Small nit around naming

* Usage bar console err fix: NaN

* rearranged the layout for page broker on Coretime chain, changed UsageBar element to be more generic

* filtering parachains by id

* moved a type to a seprate type file

* skip build and npm

* generated locales

* added default ui colours to test chains and kusama

* abstracted logic from the rendering

* default ui highlight fallback

* table responsive - hiding timeslice info from the rows on mobile

* version updates for react-components and react-query

* exporting defaultHighlight

* responsive summary

* small fix for workplan filtering

* separated coretime chain page

* removed unused references

* added useBrokerReservations call and marked reserved chains

* useBrokerLease, added Legacy Lease type

* showing last block for legacy leases

* added processing at data retrieval

* fix: missing icon

* linting

* organized files, minor refactor

* moved filters out of the Overview componennt

* minor refactor

* version update

* regenerated yarn lock

* renamed column

* linter :)

* ts fixes :)

---------

Co-authored-by: bee344 <alberto.penayo@parity.io>
Co-authored-by: Alberto Nicolas Penayo <74352651+bee344@users.noreply.github.com>
Co-authored-by: tarikgul <tariksnow37@gmail.com>
2024-09-10 08:30:41 -04:00
José Molina Colmenero
29633d7f37
Add proof size summary (#10639) 2024-09-05 11:09:14 -04:00
Tarik Gul
dbb85b4975
Enable "Chain Specific App" for Ledger (#10826)
* Bump ui to 3.9.1

* Enable "Chain Specific App" support for Ledger

* Add Ledger query for accounts and modals
2024-08-14 09:38:04 -04:00
Tarik Gul
003ae66680
Add support for migration ledger app (#10777)
* Add ledgerApp

* New settings for ledger in apps

* Add ledger migration and legacy support via ui

* Update useLedger

* Fix and get migration working

* Add ledger notices about which app is currently set in the settings

* dedupe
2024-07-24 12:59:00 -04:00
Tarik Gul
afa3efb43f
Ledger support for PolkadotGenericApp (#10744)
* Ledger support

* Some changes

* Test

* get it working. Code is very ugly and messy

* test changes :)

* using PAPI merkeleized

* Update polkadot-.js deps

* Cleanup LedgerSigner

* Add addressOffset

* Fix ledger call

* fix showLedgerAddress

* Fix signPayload for addressIndex

* Cleanup

* set polkadot as default slip44

* fix nit

* Fix nit

---------

Co-authored-by: bee344 <alberto.penayo@parity.io>
2024-07-16 08:52:18 +03:00
Przemek Rzad
576cfa3bfb
Try decoding a preimage as a transaction (#10755)
* registry does not make sense in this result type

* use api instead

* refactor - return early to reduce nesting, try api.tx first

* Add warning

* refactor return

* lint
2024-07-16 00:11:35 -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
Tarik Gul
b5588ebea7
Fix staking rewards, and update polkadot deps (#10552)
* Bump pjs deps

* reactive withClaimedRewardsEras

* remove comments
2024-05-08 23:28:35 +03:00
Tarik Gul
7a897eab81
Fix Staking with latest breaking changes! (#10498)
* Update pjs deps

* Rework useSortedTargets with breaking changes

* lint

* Fix kickNominees

* Fix ChartStake

* Lots of remaining fixes!!!!!

* app-routing

* Remove withClaimedRewardsEras

* Fix useSortedTargets

* Fix small nits

* More nits
2024-04-24 21:48:08 +03:00
José Molina Colmenero
e680e6af70
use runtime APIs to query block time (#10457)
* use runtime APIs to query block time

* rename api object

* restore calcInterval function

* fix: import

* improve types
2024-04-15 17:22:04 -04: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
José Molina Colmenero
f54314337b
query slot duration for block interval (#10456) 2024-04-10 08:59:36 -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
Tarik Gul
44691fb9a0
Support requestStatusFor for usePreimage (#10310)
* support requestStatusFor for usePreimage

* remove console

* Add comment
2024-02-29 23:33:21 +02:00
Jegor Sidorenko
585662dbd4
Support ipfs://ipfs/ links (#9772)
* Support ipfs://ipfs/ links

* A more universal approach

* use toPrimitive() instead of toString()

* Chore
2024-02-28 07:37:42 -05:00
Jaco
0649261a5d
2024 (#10152) 2024-01-08 15:06:30 +02:00