Commit Graph

371 Commits

Author SHA1 Message Date
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
Jaco
9502e3f3b4
Adjust useMemoValue (straight ref compares) (#8858) 2023-01-21 14:19:52 +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
d12280cb1b
Make usePreimage deal with inline calls (#8843)
* Make usePreimage deal with inline calls

* Ongoing adjustment for hash extraction
2023-01-21 09:18:52 +02:00
Jaco
86eba636a5
Adjust/optimize table column rendering (#8839)
* Adjust/optimize table column rendering

* Split helper

* Adjust

* Remove ddebug helper logs

* Don't render children on empty array

* Pass isEmpty to Body

* Account hooks ordering
2023-01-19 16:38:34 +02:00
Jaco
652015cbdb
De-magic useWindowColumns (#8838) 2023-01-17 21:14:58 +02:00
Jaco
6ecccdc031
Additional alignment of staking UI layout (#8828)
* Additional alignment of staking UI layout

* Allow for validator tagging & sorting

* Adjust flag injection (re-create object)

* currentEra for staking queries

* Pass SessionInfo structure

* Display badges

* Adjust flags

* Adjust status media

* Badge background adjustments

* Don't do additional table split

* Adjust table split
2023-01-17 11:30:34 +02:00
Jaco
a4c9706c29
Return nay flag from votes (#8805)
* Return nay flag from votes

* Add comments around calcs
2023-01-14 22:42:43 +02:00
Jaco
8edbedd5a5
Move usePreimage to react-hooks (#8796)
* Move usePreimage to react-hooks

* Adjust import

* Additional
2023-01-14 12:45:47 +02:00
Jaco
32a25009f5
Cleanup file headers (some mis-named locations) (#8789)
* Cleanup file headers (some mis-named locations)

* Update packages/page-council/src/Motions/Motion.tsx
2023-01-14 08:43:40 +02:00
Jaco
b2e8b6444a
Params support for non-native AccountId{20, 32} (#8752) 2023-01-10 19:54:52 +02:00
Jaco
ba86c6a111
Pull in useMemoValue (& basic use) (#8750) 2023-01-10 14:09:16 +02:00
Jaco
14fb35975f
Adjust for shared default show/check address (#8747) 2023-01-10 12:56:41 +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
Jaco
8fbcbf8ded
Adjust Popup theme imports (#8668)
* Adjust Popup theme imports

* Add useTheme to dedupe

* Table head opacity

* Adjust header opacity

* Mock for useTheme

* hail-mary adjustment

* Remove esm pkg dupes

* Popup theme provider

* Remove accounts type sorting

* Remove type sorting tests

* Adjust Accounts header inputs

* Balance summary media

* Rebuild i18n

* Adjust styles
2023-01-01 16:25:30 +02:00
Jaco
4929b1c6fd
Update headers for 2023 (#8665)
* Update headers for 2023

* Adjust env-config
2023-01-01 10:32:05 +02:00
Jaco
6bb0eae625
Display time delays in referenda tooltip headers (#8575)
* Display time delays in referenda tooltip headers

* Adjust with estimated actual time
2022-12-19 09:54:02 +02:00
Jaco
24a136b320
Bump deps (w/ deprecations) (#8532) 2022-12-14 10:07:49 +02:00
Jaco
6c98feeb74
Add missing 1 offset to slash retrieval (#8507) 2022-12-09 08:01:29 +02:00
Jaco
e98c91c990
Adjust events & maps, removing unexpected firing (#8489) 2022-12-06 09:22:02 +02:00
Jaco
7cd2b81583
Display individual ranked votes (#8480)
* Display individual ranked votes

* Adjust
2022-12-05 14:13:12 +02:00
Jaco
d155cbaabd
User tx.hasPaymentInfo as appropriate (#8345) 2022-11-16 18:52:40 +02:00
Jaco
98ffd30c77
Ensure staking slashes checks (#8350) 2022-11-15 13:45:36 +02:00
Jaco
8482820469
Don't rely on earliestUnappliedSlash availability (#8209)
* Don't rely on earliestUnappliedSlash availability

* Update packages/react-hooks/src/useAvailableSlashes.ts

* Update packages/react-hooks/src/useAvailableSlashes.ts

* Format with correct offsets

* text
2022-11-15 11:30:14 +02:00
Jaco
38e228083e
Adjust extrinsics using v2/v1 weights (#8193)
* Adjust for v2 weights

* readability

* Remove unused param

* Renaming system events

* useWeight adjustment

* Remove (now) misplaced comment

* Adjust tests
2022-10-04 13:14:56 +03:00
Jaco
53faefd1a8
Adjust useWeights results (prepare for conv.) (#8192) 2022-10-03 10:46:54 +03:00
Jaco
26d698db91
Adjust hooks for V2 weight usage (#8191)
* Adjust for V2 weight usage

* contracts weight conversion

* Explorer with weight conversion

* Adjust
2022-10-03 09:44:50 +03:00
Jaco
f2e65785df
Link inflation calculations source (#8182)
* Link inflation calculations

* Update packages/react-hooks/src/useInflation.ts
2022-09-29 14:17:14 +03:00
Jaco
e036c199c0
Replace setTimeout(..., 0) with nextTick (#7997)
* Replace setTimeout(..., 0) with nextTick

* Additional
2022-08-19 13:03:06 +03:00
Jaco
08ea57ee24
Check for api.call.transactionPaymentApi for fees (#7996) 2022-08-19 12:40:45 +03:00
Jaco
7659cadc64
Bump API (#7965) 2022-08-06 16:42:53 +03:00
Jaco
ed5d253e04
Remove typesChain overrides (#7956) 2022-08-03 11:38:15 +03:00
Jaco
5b14f26452
Add summaries for new pages (#7949)
* Add summaries for new pages

* Detect voting type

* Add member summaries

* linting

* Rebuild i18n
2022-08-01 10:52:23 +03:00
Jaco
5108a7590d
Preimage availability (#7941)
* Preimage availability

* Primage submission

* Display decoded proposal

* Renames

* yarn.lock
2022-07-30 16:37:23 +03:00
Jaco
2c69be6ebc
Introduce alliance motions (#7925)
* Introduce alliance motions

* Quick-and-dirty motion import

* Adjust motion submission with filtering

* Adjust hooks

* Thresholds

* Align tech comm threshold

* Adjust threshold calcs

* Display announcements

* Adjust incomplete

* url calc

* Display encoded ipfsCid

* useIpfsLink with rule link

* Adjust tags

* Cleanups

* Adjust for prime type
2022-07-29 12:08:00 +03:00
Jaco
008f821d5a
Retrieve prime as part of collective members (#7926)
* Retrieve prime as part of collective members

* Adjust
2022-07-28 14:44:53 +03:00
Jaco
ce63011ee4
Introduce alliance motions (#7924) 2022-07-28 11:44:08 +03:00
Jaco
c55a15dc53
Extract Latency/API stats reusable chart (#7679)
* Extract Latency/API stats reusable chart

* Adjust
2022-06-02 11:54:47 +03:00
Jaco
471e62fc3f
Expose API stats tab (#7678) 2022-06-02 08:29:11 +03:00
Jaco
7bf9cc5ad4
Bump deps (#7668) 2022-06-01 11:25:50 +03:00
Jaco
19f94a7b4c
Bump API (#7666) 2022-06-01 07:34:01 +03:00
Jaco
3a08d2d98a
Split apiSystem connection (#7662)
* Split apiSystem connection

* Test init

* Remove unused

* typo
2022-05-31 09:43:02 +03:00
Jaco
a67d98836b
Remove unused useWeightFee (#7581) 2022-05-15 12:56:36 +03:00
Jaco
47913892cd
Expansion to pools logic (#7384)
* Expansion to pools logic

* Add filtering

* Pass through own pools

* Allow pool nominate tx

* Start with account actions

* Asho pool nominees

* Nomination operational

* Adjust table rows

* BondExtra for pools

* use availableBalance in calcs (w/ existential)

* Re-use isAmountError check

* Pass through actual pool info

* s/id/poolId/

* Display payout stashes

* Display points balance

* OCD cleanups

* claimPayout

* Calculate pool claimable

* Unbond

* Fix Unbond max

* Display remaining witldrawal eras

* Stashed/Pooled selection

* Withdraw unbonded

* StakingRedeemable display

* Renames as per metadata

* Additional

* s/pool/pools/

* PoolInfo display hints

* Adjust usePoolInfo hook

* Ordering adjustments

* Additional dedupes

* Combine queries

* Combinations & renames

* Flatten transform

* Non-existent reward

* bnMax sub

* lint fixes

* Bump API
2022-04-26 18:21:38 +03:00
Jaco
0ba53ad55e
Adjust error tracking for useCall/useCallMulti (#7368) 2022-04-13 19:22:57 +03:00
Jaco
a983a07261
Make active/waiting click "snappy" (#7361) 2022-04-12 11:09:53 +03:00
Jaco
0e54bb3643
Adjust options for useTxBatch (#7311) 2022-04-06 08:21:07 +03:00
Jaco
7f0a05ca67
Bump dev (#7212)
* Bump dev

* linting

* s/function//
2022-03-23 08:03:11 +02:00
Jaco
2e0632777f
Perform paraApi disconnect on provider (#7175)
* Perform paraApi disconnect on provider

* Adjust
2022-03-17 11:43:17 +02:00
Jaco
832ae3a5ff
Align unique id trigger to assets (#7174) 2022-03-17 08:34:29 +02:00
Jaco
dec2af80f0
useEventChanges for AssetId updates (#7131)
* useEventChanges for AssetId updates

* Update packages/react-hooks/src/useEventChanges.ts
2022-03-15 17:30:22 +02:00
Jegor Sidorenko
14c0cb6f7a
NFTs page (#7144)
* NFTs page

* Chore

* Fix no items condition

* Extract ipfs data fetching logic into a separate hook

* Update deps

* @polkadot/app-assets -> @polkadot/app-nfts in headers

* Update packages/page-nfts/src/AccountItems/Item.tsx

Co-authored-by: Jaco <jacogr@gmail.com>

* Update packages/page-nfts/src/translate.ts

Co-authored-by: Jaco <jacogr@gmail.com>

* Remove redundant component

* Add TextEncoder/TextDecoder shims

* Update version

Co-authored-by: Jaco <jacogr@gmail.com>
2022-03-15 15:41:08 +02:00
Jaco
9e5fa6a353
Add blockInterval hook (#7165) 2022-03-15 11:30:41 +02:00
Jaco
a6d46a05ce
Show settings for Ledger (disabled) on non-Chromium (#7156) 2022-03-14 09:09:14 +02:00
Jaco
47767ea424
Align entry retrieval with key retrieval (#7096) 2022-03-03 10:19:33 +02:00
Jaco
01d78c33af
Adjust useMapKeys trigger params (#7091) 2022-03-02 20:04:32 +02:00
Jaco
6fe5f8996b
Don't connect to unreachable/disabled para endpoints (#6977)
* Don't connect to unreachable/disabled para endpoints

* Only check on API creation

* Address TODO
2022-02-13 15:56:53 +02:00
Jaco
4cc31fc856
Ensure InputAddress is de-deuped prior to display (#6934) 2022-02-07 15:27:36 +02:00
Jaco
c41139403e
Adjust treasury summary (only isApproved bounties) (#6898)
* Adjust tresury summary (only isApproved bounties)

* Update deps

* Adjust Ledger imports

* Adjust...
2022-01-29 12:08:31 +02:00
Jaco
1334a2de24
Ignore bounty isProposed in treasury calcs (#6885) 2022-01-26 13:05:59 +02:00
Jaco
8027568a3f
Extend treasury display (w/ bounties/approved) (#6882)
* Extend treasury display (w/ bounties/approved)

* Adjust
2022-01-26 11:24:49 +02:00
Jaco
0d74428624
Relay accounts on common-good & system paras (#6740)
* Relay accounts on common-good & system paras

* Revert useEndpoint

* Add relay values to current

* Ordering
2022-01-18 12:15:19 +02:00
Jaco
5174f5ffbe
Bump API & common (#6797)
* Bump API & common

* BN imports

* Root imports

* Bump
2022-01-07 17:37:36 +02:00
Jaco
b1a04a5d46
Bump dev (w/ header fixes) (#6772) 2022-01-03 17:37:55 +02:00
Jaco
51835328db
2022 (#6764) 2022-01-01 09:30:15 +02:00
Jaco
a16d60076d
Use relay identity for common-good & system chains (#6758)
* Use relay identity for common-good & system chains

* Adjust

* Align useCallMulti
2021-12-30 17:38:26 +02:00
Jaco
05cee230bf
Expose apiEndpoint details on Api context (#6757)
* Expose apiEndpoint details on Api context

* No need to pass through apiEndpoint (yet)

* Lint
2021-12-30 16:45:59 +02:00
Jaco
a7a48c1140
Extract derive.accounts.* into own hooks (#6755)
* Extract derive.accounts.* into own hooks

* useAccountApi as applicable

* Rename step 1

* useSystemApi
2021-12-30 10:02:41 +02:00
1devNdogs
b7baf1b47f
Add Subspace expected block time (#6665)
* extract expectedBlockTime for non babe chains

* Apply suggested changes on block time
2021-12-11 12:11:05 +02:00
Jaco
a1523209d9
No derivation on Ethereum (not implemented) (#6591) 2021-11-22 11:22:31 +02:00
Jaco
0a26f52103
Bump @polkadot deps (#6514)
* Bump @polkadot deps

* Bumps
2021-11-07 12:09:50 +02:00
Jaco
b957353d22
Hooks (most, no generic) via createNamedHook (#6451) 2021-10-30 17:30:43 +03:00
Jaco
68a423748b
Adjust createNamedHook (#6449)
* Adjust createNamedHook

* All (most) in react-hooks now named

* Add useValidators hook

* linting?
2021-10-30 13:36:05 +03:00
Jaco
094a94449f
Adjust error stack formatting (#6448)
* Adjust error stack formatting

* linting
2021-10-30 11:30:11 +03:00
Jaco
60a5334ff2
Add error stakcs to useCall & ErrorBoundary (#6447) 2021-10-30 10:41:24 +03:00
Jaco
f512c1a539
Bump de & api (w/ __Unused on enum) (#6326)
* Bump de & api (w/ __Unused on enum)

* Linting fixes

* tsc adjustments

* Api bump
2021-10-17 16:37:57 +03:00