Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge upstream and add networks #4

Closed
wants to merge 394 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
394 commits
Select commit Hold shift + click to select a range
a372487
feat(refactor): Move balance syncing to static class, `activeBalances…
Jan 15, 2024
78332c8
chore: fix assets
Jan 15, 2024
c23b2dd
chore(deps-dev): bump @typescript-eslint/parser from 6.18.1 to 6.19.0…
dependabot[bot] Jan 15, 2024
759b0c1
chore(deps): bump usehooks-ts from 2.9.1 to 2.9.4 (#1861)
dependabot[bot] Jan 15, 2024
1bf7f80
chore(deps-dev): bump @types/react from 18.2.47 to 18.2.48 (#1864)
dependabot[bot] Jan 15, 2024
2b029b3
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.18.1 to…
dependabot[bot] Jan 15, 2024
ecde486
chore(deps-dev): bump prettier from 3.2.1 to 3.2.2 (#1863)
dependabot[bot] Jan 15, 2024
7e7134e
feat(ci): add markdown-link-check (#1865)
Jan 16, 2024
9fa7a64
chore: add check-modified-files-only
Jan 16, 2024
d378d95
chore: ws
Jan 16, 2024
70226f8
chore(deps-dev): bump vite-tsconfig-paths from 4.2.3 to 4.3.1 (#1866)
dependabot[bot] Jan 16, 2024
6f5888d
chore(deps): bump @dotlottie/player-component from 2.7.5 to 2.7.6 (#1…
dependabot[bot] Jan 17, 2024
db7f2a6
chore(deps-dev): bump vitest from 1.2.0 to 1.2.1 (#1868)
dependabot[bot] Jan 17, 2024
e8d28bd
chore(deps-dev): bump prettier from 3.2.2 to 3.2.4 (#1869)
dependabot[bot] Jan 17, 2024
ed89a1a
chore(deps): bump @substrate/connect from 0.8.4 to 0.8.5 (#1870)
dependabot[bot] Jan 18, 2024
9b6d78c
chore(deps): bump usehooks-ts from 2.9.4 to 2.9.5 (#1871)
dependabot[bot] Jan 18, 2024
2bb55b6
chore(deps-dev): bump sass from 1.69.7 to 1.70.0 (#1872)
dependabot[bot] Jan 18, 2024
4fb9b77
chore(deps): bump react-router-dom from 6.21.2 to 6.21.3 (#1873)
dependabot[bot] Jan 18, 2024
415fe12
chore(deps-dev): bump vite from 5.0.11 to 5.0.12 (#1875)
dependabot[bot] Jan 19, 2024
4ef3abc
chore(deps): bump @dotlottie/player-component from 2.7.6 to 2.7.8 (#1…
dependabot[bot] Jan 19, 2024
7108e55
feat(refactor): remove unneeded bonded getters
Jan 20, 2024
4194150
feat(refactor): rm `ExtrinsicsProvider`, nonces to `TxMeta`
Jan 20, 2024
04d44b9
chore: rename `stash` to `address`
Jan 20, 2024
cb44906
chore: few typo fix (#1874)
Pan-chao Jan 20, 2024
0f572cc
chore: rename folder
Jan 21, 2024
910d86c
chore(deps-dev): bump @typescript-eslint/parser from 6.19.0 to 6.19.1…
dependabot[bot] Jan 22, 2024
af4de8f
chore(deps): bump i18next from 23.7.16 to 23.7.18 (#1880)
dependabot[bot] Jan 22, 2024
37c6dbc
chore(deps): bump @polkadot-cloud/core from 1.2.1 to 1.2.2 (#1882)
dependabot[bot] Jan 22, 2024
9a15fc0
chore(deps): bump date-fns from 3.2.0 to 3.3.1 (#1881)
dependabot[bot] Jan 22, 2024
5d04734
chore(deps): bump react-i18next from 14.0.0 to 14.0.1 (#1884)
dependabot[bot] Jan 22, 2024
ea4d0a3
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.19.0 to…
dependabot[bot] Jan 22, 2024
a8cb07f
chore(deps): bump @polkadot-cloud/react from 0.3.5 to 0.3.6 (#1885)
dependabot[bot] Jan 22, 2024
afe9b1c
fix: unlock Chunk unit type
Jan 23, 2024
4e28969
Merge branch 'main' of https://github.com/paritytech/polkadot-staking…
Jan 23, 2024
57e2a1b
feat(refactor): Subscan refactor, remove fetching from Providers (#1878)
Jan 23, 2024
99253cb
chore: yarn
Jan 23, 2024
9938620
feat(fix): account for staking rate in average reward rate (#1886)
Jan 23, 2024
e3271ee
chore(deps): bump @ledgerhq/hw-transport-webhid from 6.28.1 to 6.28.2…
dependabot[bot] Jan 23, 2024
5316283
fix: balances no accounts sync (#1889)
Jan 24, 2024
56817f5
chore: not compounding text
Jan 24, 2024
6827b06
chore: fix file type
Jan 24, 2024
d7b88bd
feat(refactor): Move Polkawatch to inline instantiation (#1890)
Jan 24, 2024
f4a0525
chore(deps): bump @polkadot-cloud/core from 1.2.2 to 1.2.4 (#1892)
dependabot[bot] Jan 24, 2024
ad10452
chore(deps): bump @polkadot-cloud/utils from 0.2.1 to 0.2.3 (#1894)
dependabot[bot] Jan 24, 2024
91b4c20
chore(deps): bump @polkadot-cloud/assets from 0.3.2 to 0.3.4 (#1895)
dependabot[bot] Jan 24, 2024
feff575
chore(deps): bump @polkadot-cloud/react from 0.3.6 to 0.3.8 (#1893)
dependabot[bot] Jan 24, 2024
2ab11af
chore: add dep
Jan 25, 2024
79c1a47
Merge branch 'main' of https://github.com/paritytech/polkadot-staking…
Jan 25, 2024
ce4f1b6
chore(deps): bump i18next from 23.7.18 to 23.7.19 (#1897)
dependabot[bot] Jan 25, 2024
23785a6
chore(deps): bump usehooks-ts from 2.9.5 to 2.10.0 (#1898)
dependabot[bot] Jan 25, 2024
08a813c
feat(refactor): network metrics to static, bootstrap all state before…
Jan 26, 2024
33b5671
fix: roll back Substrate Connect (#1899)
Jan 26, 2024
8f51a86
feat(refacor): Pool config to bootstrap app state (#1900)
Jan 26, 2024
eb97a13
chore(deps-dev): bump vitest from 1.2.1 to 1.2.2 (#1901)
dependabot[bot] Jan 26, 2024
6497eb2
chore(deps): bump i18next from 23.7.19 to 23.7.20 (#1903)
dependabot[bot] Jan 26, 2024
7b692e0
feat(refactor): Move staking metrics `payee` to active balances (#1904)
Jan 27, 2024
40ad095
chore: bump framer-motion
Jan 27, 2024
41e2ab1
Merge branch 'main' of https://github.com/paritytech/polkadot-staking…
Jan 27, 2024
f6c0b93
feat(refactor): Staking metrics to bootstrap and API (#1905)
Jan 27, 2024
7c0212f
fix: Render safe guards, pool useEffect fixes (#1906)
Jan 27, 2024
e83b706
chore: comment
Jan 28, 2024
efdbb47
chore(main): release 1.1.4 (#1859)
github-actions[bot] Jan 29, 2024
633abe5
chore(deps): bump i18next from 23.7.20 to 23.8.1 (#1907)
dependabot[bot] Jan 29, 2024
04d3f73
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.19.1 to…
dependabot[bot] Jan 29, 2024
9010e28
chore(deps-dev): bump @typescript-eslint/parser from 6.19.1 to 6.20.0…
dependabot[bot] Jan 29, 2024
5256591
chore(deps-dev): bump vite-bundle-visualizer from 1.0.0 to 1.0.1 (#1910)
dependabot[bot] Jan 30, 2024
c453dd1
fix: stricter member count fetching (#1911)
Jan 31, 2024
42c0638
feat(refactor): create pool accounts to hooks (#1913)
Jan 31, 2024
4e46904
feat(refactor): Hooks to own folder (#1914)
Jan 31, 2024
764a880
feat(refactor): Pool memberships to active balances (#1915)
Jan 31, 2024
f55f70f
feat(refactor): Use identities hook (#1916)
Jan 31, 2024
ca23775
chore(deps): bump @ledgerhq/hw-transport-webhid from 6.28.2 to 6.28.3…
dependabot[bot] Jan 31, 2024
e4d1a30
chore(deps-dev): bump @vitejs/plugin-react-swc from 3.5.0 to 3.6.0 (#…
dependabot[bot] Jan 31, 2024
457b95a
chore(deps): bump i18next from 23.8.1 to 23.8.2 (#1919)
dependabot[bot] Jan 31, 2024
9324073
chore(deps-dev): bump vite-plugin-checker from 0.6.2 to 0.6.3 (#1920)
dependabot[bot] Jan 31, 2024
02104f4
chore(deps): bump usehooks-ts from 2.10.0 to 2.11.0 (#1921)
dependabot[bot] Jan 31, 2024
ba15327
chore: add peer dep
Feb 1, 2024
58b5856
chore: remove unused hook
Feb 1, 2024
654352f
chore(deps): bump usehooks-ts from 2.11.0 to 2.12.1 (#1922)
dependabot[bot] Feb 1, 2024
e7684eb
chore(deps): bump react-router-dom from 6.21.3 to 6.22.0 (#1923)
dependabot[bot] Feb 1, 2024
8530103
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.20.0 to…
dependabot[bot] Feb 5, 2024
bcd1053
chore(deps): bump react-i18next from 14.0.1 to 14.0.3 (#1925)
dependabot[bot] Feb 5, 2024
1a3b873
chore(deps-dev): bump prettier from 3.2.4 to 3.2.5 (#1926)
dependabot[bot] Feb 5, 2024
bfb8ae1
chore(deps-dev): bump @typescript-eslint/parser from 6.20.0 to 6.21.0…
dependabot[bot] Feb 5, 2024
f4ddbe4
chore(deps-dev): bump @types/react from 18.2.51 to 18.2.54 (#1927)
dependabot[bot] Feb 5, 2024
d2446e1
feat(refactor): Active pools and syncing state redesign (#1929)
Feb 6, 2024
9145cb8
chore(deps): bump react-i18next from 14.0.3 to 14.0.5 (#1930)
dependabot[bot] Feb 6, 2024
75384eb
chore(deps): bump usehooks-ts from 2.12.1 to 2.13.0 (#1931)
dependabot[bot] Feb 6, 2024
3ee2589
chore(deps-dev): bump @types/react from 18.2.54 to 18.2.55 (#1932)
dependabot[bot] Feb 6, 2024
c905258
feat(refactor): Misc project tidy ups (#1933)
Feb 7, 2024
bb17e88
chore: fix onClick
Feb 7, 2024
070dca4
chore: amend tsconfig
Feb 7, 2024
3bbde20
chore(deps-dev): bump @types/react-dom from 18.2.18 to 18.2.19 (#1934)
dependabot[bot] Feb 7, 2024
61645b1
feat(refactor): Syncing improvements (#1935)
Feb 8, 2024
1910616
chore: add Provider type
Feb 8, 2024
6745186
chore: comment
Feb 8, 2024
00b5d6c
chore(deps-dev): bump vite from 5.0.12 to 5.1.0 (#1936)
dependabot[bot] Feb 8, 2024
05923ab
chore(deps-dev): bump @types/chroma-js from 2.4.3 to 2.4.4 (#1937)
dependabot[bot] Feb 8, 2024
af53aff
chore(deps-dev): bump vite from 5.1.0 to 5.1.1 (#1939)
dependabot[bot] Feb 9, 2024
b8ed792
chore(deps): bump usehooks-ts from 2.13.0 to 2.14.0 (#1940)
dependabot[bot] Feb 9, 2024
37d2377
chore: rm deprecated StakingProvider values
Feb 10, 2024
c6a293a
Merge branch 'main' of https://github.com/paritytech/polkadot-staking…
Feb 10, 2024
9c49bf5
chore: remove unused SetupProvider value
Feb 10, 2024
850c0d9
feat(ux): View & copy pool addresses (#1941)
Feb 11, 2024
d40c148
chore: sync tidy up
Feb 11, 2024
78c8300
feat(refactor): nominatons to BalancesController
Feb 11, 2024
b6312e6
feat(refactor): persist Subscan results to class (#1942)
Feb 11, 2024
607ec6d
chore: fix unlock values
Feb 11, 2024
b168bdd
chore: remove unsub code
Feb 11, 2024
bf856d0
feat(refactor): Menu refresh with mouse-based position (#1945)
Feb 13, 2024
9b0de22
chore: bumps
Feb 13, 2024
f697388
chore(deps): bump framer-motion from 11.0.3 to 11.0.5 (#1946)
dependabot[bot] Feb 13, 2024
a0ed269
chore(deps): bump @dotlottie/player-component from 2.7.8 to 2.7.9 (#1…
dependabot[bot] Feb 13, 2024
28530a4
chore(deps-dev): bump eslint-plugin-unused-imports from 3.0.0 to 3.1.…
dependabot[bot] Feb 13, 2024
f0b5719
chore: fix changelog
Feb 14, 2024
ca93eda
Merge branch 'main' of https://github.com/paritytech/polkadot-staking…
Feb 14, 2024
22c7315
chore(main): release 1.1.5 (#1912)
github-actions[bot] Feb 14, 2024
0c9f214
chore: update changelog
Feb 14, 2024
5d8d19a
chore: update changelog
Feb 14, 2024
fd436a7
chore(deps-dev): bump vite from 5.1.1 to 5.1.2 (#1949)
dependabot[bot] Feb 14, 2024
e09176b
fix: fix manage nominations refresh (#1950)
Feb 15, 2024
f454dbf
fix: stringify nomination comparison (#1952)
Feb 15, 2024
cd96dd2
chore(main): release 1.1.6 (#1951)
github-actions[bot] Feb 15, 2024
03e9f71
feat(refactor): use local themes (#1953)
Feb 15, 2024
b0e5bb0
chore: format
Feb 15, 2024
178ab82
chore(deps-dev): bump vite from 5.1.2 to 5.1.3 (#1955)
dependabot[bot] Feb 15, 2024
a13a000
chore(deps): bump @dotlottie/player-component from 2.7.9 to 2.7.10 (#…
dependabot[bot] Feb 16, 2024
ca56833
chore(deps): bump react-router-dom from 6.22.0 to 6.22.1 (#1957)
dependabot[bot] Feb 16, 2024
9ad0343
chore(deps-dev): bump vitest from 1.2.2 to 1.3.0 (#1959)
dependabot[bot] Feb 16, 2024
4e32fb5
chore(deps-dev): bump sass from 1.70.0 to 1.71.0 (#1958)
dependabot[bot] Feb 16, 2024
24d365c
feat(refactor): buttons to project (#1960)
Feb 18, 2024
74700c1
chore: license fixes (#1961)
Feb 18, 2024
6d72db6
chore: check license
Feb 18, 2024
c89fdf5
chore: fix license
Feb 18, 2024
c8c0929
chore: fix license take 2
Feb 18, 2024
3041f72
chore: fix license
Feb 18, 2024
d7cc23b
refactor: Entry styling, buttons to kits (#1962)
Feb 18, 2024
49c6e94
chore: use local hardware components
Feb 18, 2024
b58c33f
mv kits to src
Feb 18, 2024
472f319
chore: fix import
Feb 18, 2024
81f58f6
chore: page title to kit
Feb 18, 2024
7d699b1
chore: fix license
Feb 18, 2024
420c3f1
chore: bump core, fixes
Feb 18, 2024
5a56d7c
chore: bumps and fixes
Feb 18, 2024
3b4a58b
chore: amend imports
Feb 18, 2024
fba2bab
chore: fix license
Feb 18, 2024
5443614
patch
Feb 18, 2024
68cddbc
chore: button variables to theme index
Feb 18, 2024
749dec2
local cars, bump cloud deps
Feb 18, 2024
c7c9a89
chore: project polish
Feb 19, 2024
47fe351
chore: misc project tidy up
Feb 19, 2024
e6b181b
feat(refactor): Add Structure kit (#1963)
Feb 19, 2024
59f75ec
chore: rm unused component
Feb 19, 2024
b6d2964
chore: bump deps
Feb 19, 2024
3b6bc98
chore: fix null payees
Feb 19, 2024
5f4829d
chore(deps-dev): bump @typescript-eslint/parser from 7.0.1 to 7.0.2 (…
dependabot[bot] Feb 19, 2024
6c1c42e
chore(deps): bump i18next from 23.8.2 to 23.9.0 (#1965)
dependabot[bot] Feb 19, 2024
d7770dd
chore(deps): bump @ledgerhq/hw-transport-webhid from 6.28.3 to 6.28.4…
dependabot[bot] Feb 19, 2024
80080e5
chore(deps): bump @polkawatch/ddp-client from 2.0.10 to 2.0.11 (#1967)
dependabot[bot] Feb 19, 2024
54b9e0b
chore(deps-dev): bump @types/react from 18.2.55 to 18.2.56 (#1969)
dependabot[bot] Feb 19, 2024
1b0aa1e
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.0.1 to …
dependabot[bot] Feb 19, 2024
54de0e4
chore(deps): bump @polkadot-cloud/react from 0.5.3 to 0.5.4 (#1970)
dependabot[bot] Feb 20, 2024
b2db38a
chore(deps-dev): bump @types/react from 18.2.56 to 18.2.57 (#1971)
dependabot[bot] Feb 20, 2024
43a6596
chore(deps-dev): bump vitest from 1.3.0 to 1.3.1 (#1972)
dependabot[bot] Feb 20, 2024
545a154
chore(deps-dev): bump sass from 1.71.0 to 1.71.1 (#1975)
dependabot[bot] Feb 21, 2024
61669d3
chore(deps-dev): bump vite from 5.1.3 to 5.1.4 (#1974)
dependabot[bot] Feb 21, 2024
51c31c3
chore(deps): bump usehooks-ts from 2.14.0 to 2.15.0 (#1976)
dependabot[bot] Feb 21, 2024
7065af6
chore: use inline function
Feb 22, 2024
daa66e0
chore(deps): bump i18next from 23.9.0 to 23.10.0 (#1977)
dependabot[bot] Feb 22, 2024
cb42788
chore: remove export
Feb 23, 2024
d006da6
Merge branch 'main' of https://github.com/paritytech/polkadot-staking…
Feb 23, 2024
0e7ff50
chore(deps): bump usehooks-ts from 2.15.0 to 2.15.1 (#1978)
dependabot[bot] Feb 23, 2024
01797c6
chore(deps): bump framer-motion from 11.0.5 to 11.0.6 (#1979)
dependabot[bot] Feb 23, 2024
9716789
chore(deps-dev): bump @types/react from 18.2.57 to 18.2.58 (#1982)
dependabot[bot] Feb 23, 2024
3cb03e0
chore(deps-dev): bump eslint from 8.56.0 to 8.57.0 (#1980)
dependabot[bot] Feb 23, 2024
3700fad
feat(ux): Check SubWallet Mobile and filter Subwallet extension (#1983)
Feb 24, 2024
38315c7
chore(main): release 1.1.7 (#1954)
github-actions[bot] Feb 24, 2024
d1325a0
feat(ux): Update detect SubWallet in SubWallet in-app browser (#1983)…
saltict Feb 24, 2024
8e60da9
chore: fix comments
Feb 24, 2024
058cb24
feat(refactor): stricter validator operator svgs (#1986)
Feb 26, 2024
c3c8e89
Update README.md
Feb 26, 2024
f0b5eaa
feat(refactor): use @w3ux/extension-assets and @w3ux/validator-assets…
Feb 26, 2024
8dc916d
chore: use operator icons
Feb 26, 2024
2a4f7e6
chore: use x handler
Feb 26, 2024
43d98b7
chore: amend README
Feb 26, 2024
70b02ff
feat(refactor): use @w3ux/utils (#1988)
Feb 26, 2024
247f03d
chore(deps-dev): bump @typescript-eslint/parser from 7.0.2 to 7.1.0 (…
dependabot[bot] Feb 26, 2024
95356e4
chore(deps-dev): bump eslint-plugin-prefer-arrow-functions from 3.2.4…
dependabot[bot] Feb 26, 2024
2d0dcb5
chore(deps-dev): bump @types/react from 18.2.58 to 18.2.59 (#1991)
dependabot[bot] Feb 26, 2024
52aba55
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.0.2 to …
dependabot[bot] Feb 26, 2024
07bcbef
feat(ux): add `txVersionNotSupported`, check major version instead of…
Feb 27, 2024
e1cd02f
feat(refactor): Overlay to kit (#1994)
Feb 27, 2024
d83c3ff
chore: patch
Feb 27, 2024
d2d928d
feat(refactor): Use w3ux components (#1995)
Feb 27, 2024
ba989fc
chore: amend type imports
Feb 27, 2024
b202039
feat(refactor): remove react (#1996)
Feb 27, 2024
bf6d704
chore: use local accents
Feb 27, 2024
1b6c85d
chore(deps-dev): bump @types/react from 18.2.59 to 18.2.60 (#1998)
dependabot[bot] Feb 27, 2024
c0cead2
chore(deps-dev): bump eslint-plugin-prefer-arrow-functions from 3.3.1…
dependabot[bot] Feb 27, 2024
68f701b
fix: fast unstake, proxy fixes on account & network switch (#2001)
Feb 28, 2024
8edfc0c
fix: simplify fast unstake subscription (#2002)
Feb 28, 2024
63cdf53
chore: bump deps
Feb 28, 2024
b118f9c
fix: always show reserve (#2003)
Feb 28, 2024
1f2b9e9
chore(deps): bump chart.js from 4.4.1 to 4.4.2 (#2004)
dependabot[bot] Feb 28, 2024
d8e79da
chore(deps): bump react-router-dom from 6.22.1 to 6.22.2 (#2005)
dependabot[bot] Feb 28, 2024
85152d6
chore: monthly dependabot
Feb 29, 2024
f522d3a
Merge branch 'main' of https://github.com/paritytech/polkadot-staking…
Feb 29, 2024
fe4a347
chore(deps): bump framer-motion from 11.0.6 to 11.0.7 (#2006)
dependabot[bot] Feb 29, 2024
2639454
fix: accounts modal height (#2007)
Feb 29, 2024
b680c3e
chore: update changelog
Feb 29, 2024
4e938cb
chore(deps): bump react-error-boundary from 4.0.12 to 4.0.13 (#2008)
dependabot[bot] Mar 1, 2024
805e6d6
chore(deps-dev): bump @types/react from 18.2.60 to 18.2.61 (#2009)
dependabot[bot] Mar 1, 2024
703ba68
chore(deps): bump framer-motion from 11.0.7 to 11.0.8 (#2010)
dependabot[bot] Mar 1, 2024
e2d4b1c
feat(ux): Add dedicated withdraw prompt for active unlock chunks (#2011)
Mar 2, 2024
7189e1b
chore: rm uneeded valid check
Mar 4, 2024
9788710
fix: add CSS license check (#2012)
Mar 4, 2024
b86da69
chore: tweak
Mar 4, 2024
5ddb614
feat(refactor): Softer offline events (#2013)
Mar 4, 2024
a922d42
chore: bump @w3ux/extension-assets
Mar 4, 2024
1d5aacf
chore(main): release 1.2.0 (#1985)
github-actions[bot] Mar 4, 2024
511cda6
chore: format
Mar 4, 2024
da7c0bc
Remove Parity's Polkadot & Kusama RPC endpoints (#2014)
PierreBesson Mar 5, 2024
50ec51e
chore: amend ci
Mar 8, 2024
3603f6d
Merge branch 'main' of https://github.com/paritytech/polkadot-staking…
Mar 8, 2024
9f30562
chore: rm comment
Mar 8, 2024
13d0ebd
fix: check BalancesController unsub before calling (#2016)
Mar 9, 2024
9a62dcf
chore: check unsub
Mar 9, 2024
c8e3c4e
feat: Deprecate Canny.io in favour of Polkadot Support (#2018)
Mar 9, 2024
54ecbbe
feat: Remove Parity RPC endpoint from westend (#2019)
Mar 9, 2024
d85d5ff
chore: amend translation
Mar 9, 2024
26e1793
fix: Ensure signer fallback on corrupt source (#2021)
Mar 10, 2024
574ab62
feat(refactor): Instantiatable Apis (#2023)
Mar 11, 2024
7d87537
chore: hash for private memberes
Mar 11, 2024
67fe9f0
chore:bump @w3ux/extension-assets
Mar 12, 2024
621ff1b
fix: updated typo in modals file (#2022)
sdalmeida Mar 12, 2024
5fca5a2
chore: Update README.md
Mar 12, 2024
44a19c1
fix: fast unstake eligibility based on bonding, not nominating (#2025)
Mar 12, 2024
4081c0a
fix: Misc Subscan payout fixes (#2027)
Mar 13, 2024
7a4f172
fix: Fix errornous unclaimed payouts from Subscan (#2028)
Mar 13, 2024
76f964b
feat(ux): Remove controller deprecation prompt (#2026)
Mar 13, 2024
c8227d3
chore: rename component
Mar 14, 2024
85c94b5
chore(main): release 1.2.1 (#2017)
github-actions[bot] Mar 18, 2024
ea22462
chore: increase stale time
Mar 19, 2024
16170be
Merge branch 'main' of https://github.com/paritytech/polkadot-staking…
Mar 19, 2024
0018687
chore: bump, set yarn version
Mar 20, 2024
d1ffc6c
chroe: yarn
Mar 20, 2024
956864a
bump react-connect-kit
Mar 20, 2024
df7aca3
bump deps
Mar 20, 2024
ad5892b
chore: dep bumps
Mar 21, 2024
20f362b
chore: fix changelog
Mar 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Misc Subscan payout fixes (polkadot-cloud#2027)
  • Loading branch information
Ross Bulat committed Mar 13, 2024
commit 4081c0a938aee6ffdadd5683789fb010051fb533
13 changes: 11 additions & 2 deletions src/controllers/SubscanController/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,14 @@ export class SubscanController {
if (!result?.list) {
return { payouts: [], unclaimedPayouts: [] };
}

const payouts = result.list.filter(
(l: SubscanPayout) => l.block_timestamp !== 0
(l: SubscanPayout) => l.block_timestamp !== 0 && l.account !== ''
);
const unclaimedPayouts = result.list.filter(
(l: SubscanPayout) => l.block_timestamp === 0
(l: SubscanPayout) => l.block_timestamp === 0 && l.account !== ''
);

return { payouts, unclaimedPayouts };
};

Expand Down Expand Up @@ -299,6 +301,9 @@ export class SubscanController {
return undefined;
}
const filtered = this.removeNonZeroAmountAndSort(payouts || []);
if (!filtered.length) {
return undefined;
}
return format(
fromUnixTime(filtered[filtered.length - 1].block_timestamp),
'do MMM',
Expand All @@ -314,6 +319,10 @@ export class SubscanController {
return undefined;
}
const filtered = this.removeNonZeroAmountAndSort(payouts || []);
if (!filtered.length) {
return undefined;
}

return format(fromUnixTime(filtered[0].block_timestamp), 'do MMM', {
locale,
});
Expand Down