Commit Graph

347 Commits

Author SHA1 Message Date
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
Jaco
d94c086c79
Bump polkadot-js deps (#10106)
* Bump polkadot-js deps

* Adjust (now optional) maxNominatorRewardedPerValidator usage

* Adjust usePreimage usage to align with latest Substrate

* Adjust unclaimed rewards retrieval

* Adjust StakingLedger import

* Adjust hooks for getLegacyRewards

* Adjust StakingLedger imports
2023-12-18 17:23:43 +02:00
Jaco
bb75a7b27f
Bump deps (#9815)
* Bump deps

* Adjust withTranslation usage

* Omit<T, 't'>

* Adjust translate Props

* Adjust straglers
2023-08-23 14:36:40 +03:00
Jaco
f48ac48b39
Bump deps (#9796)
* Bump deps

* Additional deps

* (some) fixes

* Additional
2023-08-19 12:14:57 +03: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
4d329a1e88
Adjust i18n types (prepare for i18next-react update) (#9688) 2023-07-13 09:54:48 +03:00
Jaco
5497195f99
Apply useBatchTx to gov2 delegation (#9606) 2023-06-19 12:37:22 +03:00
Jaco
8f9919c834
Adjust object indexing (#9564)
* Add tsconfig override

* JSON Comments

* Adjust object indexing

* Dedupe yarn.lock

* Bump deps
2023-06-12 09:11:39 +03:00
Jaco
e0e2605564
Bump dev (w/ eslint config updates) (#9472) 2023-05-21 09:04:36 +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
451d4e318f
0.129.1 (#9387)
* 0.129.1

* linting
2023-04-30 10:20:05 +03:00
Jaco
815ecd9446
Bump dev (#9359) 2023-04-21 16:17:36 +03:00
Jaco
d25665a513
Partial support for verbatimModuleSyntax (#9270) 2023-04-02 16:12:44 +03:00
Jaco
000aed06e5
Bump deps (#9221)
* Bump deps

* Adjustments for upgrades

* Bumps
2023-03-25 14:59:23 +02:00
Jaco
c069df72c0
Bump dev deps (#9199) 2023-03-18 13:04:20 +02:00
Jaco
4bfda46580
Swap TS resolution to base config (#9194)
* Swap TS resolution to base config

* Run build fixup before lint

* Adjust with specific comment on fixup
2023-03-17 12:55:10 +02:00
Jaco
2422145a24
Adjust spec with references (not able to bump ts 5 as of yet) (#9190)
* Bump to TS 5.0

* Revert TS bump (needs investigation)
2023-03-17 08:34:43 +02:00
Nisheeth Barthwal
6ee86ae57e
display discord identity in profile sidebar (#9185)
* display discord identity in profile sidebar

* use common discord key
2023-03-15 16:26:35 +02:00
Jaco
c6f0c6035a
Upgrade dropzone component (#9169)
* Upgrade dropzone component

* Revert as any removal
2023-03-14 14:27:31 +02:00
Jaco
2e5bd0931c
Filter treasury.UpdatedInactive events (#9159) 2023-03-12 19:35:15 +02:00
Jaco
0cdc49c4be
Adjust max batch size calc (w/ proofSize & older) (#8920)
* Adjust max batch size calc (w/ proofSize & older)

* Cleanups

* Adjust fill ratio

* Adjust, only check refTime

* Comments

* Clarify ratio further

* Extract getKnown

* Split size calc into function
2023-03-12 19:21:50 +02:00
Jaco
b82cae49ff
Align tsconfig to allow moduleResolution: nodenext (#9152)
* Align tsconfig to allow moduleResolution: nodenext

* Fix bounty

* Additional from tsc --noEmit check
2023-03-12 10:53:21 +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
7d24f50c38
Bump deps (incl. TS) (#8931)
* Bump deps (incl. TS)

* Adjust ESM packages for Jest

* Yet more Jest hacks

* Make horrible jest config slightly prettier

* Unbump electron

* Fix external package deps
2023-02-03 15:01:45 +02:00
Jaco
0de8a8d2ff
Add waiting list to next-gen staking (#8896)
* Add waiting list to next-gen staking

* Extract use* types

* Adjust useHeartbeat checks

* Adjust with useNextTick

* Adjust for useNextTick

* Points anim via ref

* Adjust
2023-01-31 11:56:37 +02:00
Jaco
d5454f96e6
Bump deps (#8891)
* Bump deps

* Cater for new Weight alias defaults
2023-01-30 12:43:50 +02:00
Jaco
7d1e037fdb
Add missing inline preimage conditions (#8882) 2023-01-25 13:19:59 +02:00