Commit Graph

51 Commits

Author SHA1 Message Date
Jaco
d91bdcd191
Warn on staking min bond (#5674)
* Warn on staking min bond

* Warn on min validator amount
2021-06-24 13:46:09 +02:00
Jaco
b5a3de5730
0.92 (#5475) 2021-06-07 11:40:04 +02:00
Jaco
ece5999bea
Inflation adjustment (based on auctions) (#5326)
* Inflation adjustment (based on auctions)

* Adjust

* Adjust

* Apply adjustment after inflation

* Update packages/react-hooks/src/useInflation.ts
2021-05-22 09:34:33 +02:00
WoeOm
07af3f6279
Adapt Darwinia, Crab Network types (#5218) 2021-05-07 06:47:45 +02:00
Jaco
cf6c682333
Optional balances & timestamp (#5188) 2021-05-02 16:00:48 +02:00
Jaco Greeff
ba4d14a836
Filter targets by blocking status (#4800) 2021-03-10 09:47:31 +01:00
Jaco Greeff
adbf73eabb
Adjust calcs 2021-02-13 19:58:50 +01:00
Jaco Greeff
1a5f8fa4e1
Protect against overflows in target calcs (#4633) 2021-02-09 10:44:17 +01:00
Jaco Greeff
fd0ceaff0d
Use BN_{BILLION, MILLION} constants (#4577)
* Use BN_{BILLIN, MILLION} constants

* BN_ONE

* Update packages/page-treasury/src/Overview/ProposalCreate.tsx

* Update packages/page-staking/src/Payouts/useStakerPayouts.ts

* Additional

* Update packages/page-democracy/src/Overview/Summary.tsx

* Additional

* Additional

* Re-apply

* Cleanups

* Apply suggestions from code review
2021-02-03 10:59:37 +01:00
WoeOm
1af085e642
Overrides types for Crab, Darwinia (#4543) 2021-01-30 08:41:22 +01:00
Jaco Greeff
2747c7a6ad
Staking warn inactive (#4511) 2021-01-27 14:19:57 +01:00
Jaco Greeff
6dbb188a1a
2021 (#4310) 2021-01-03 11:33:39 +01:00
Jaco Greeff
e6eaaec27d
Remove stray log (#4270)
* Remove stray log

* Display numbers as available
2020-12-24 10:57:09 +01:00
Jaco Greeff
1b88b75fa6
Optimize staking overview (#4267)
* Optimize staking overview

* Unused isCommission

* Cleanup log
2020-12-24 09:31:41 +01:00
Jaco Greeff
7d071d147d
Remove global registry imports (only use on api) (#4218)
* Remove global registry imports (only use on api)

* Additional

* QR only displayed when valid

* ApiSigner
2020-12-17 11:18:34 +01:00
Ewa Kowalska
541213f233
Ek extract type only imports into separate group (#4168)
* Plug new beta of eslint plugin simple import sort

* Apply new configuration to existing imports
2020-12-07 16:04:05 +01:00
Jaco Greeff
f86cc1a689
Small target opts (incl. non-selected sorting) (#4159)
* Small target opts (incl. non-selected sorting)

* Remove last dangling validatorPayment
2020-12-04 16:21:50 +01:00
Jaco Greeff
4f3f98f97b
Don't double-up on stashId retrievals (#4157)
* Don't double-up on stashId retrievals

* Remove (onw-unused) useStashIds hook
2020-12-04 14:24:28 +01:00
Jaco Greeff
6c61f7e0ea
Calc median comm, num payouts, activity period (don't yet use) (#4150) 2020-12-03 15:31:20 +01:00
Ewa Kowalska
87505b1c59
Eslint imports (#4037)
* Add eslint configuration

* Patch eslint plugin for sorting imports

* Apply eslint rules for imports
2020-12-01 14:40:42 +01:00
Jaco Greeff
78b3680f3c
Rework with useNominations (incl. loading indicators) (#4128) 2020-12-01 13:13:47 +01:00
Jaco Greeff
e1848edd95
Adjust for >75% capacity (#4109)
* Adjust for >75% capacity

* operator wording
2020-11-30 11:32:51 +01:00
Jaco Greeff
118cc51dc3
Human-readable payout (target) descriptions (#4107) 2020-11-30 00:47:24 +01:00
Jaco Greeff
4e926a2d33
Move chain params to apps-config (#4102) 2020-11-29 18:45:44 +01:00
Jaco Greeff
066e5eca04
Display last target payout (#4101)
* Ensure identity filter applies to all targets

* Name filter removes flags

* Revert

* Apply query filters to override toggles

* Display last target payout
2020-11-29 18:34:19 +01:00
Jaco Greeff
f0bf8efcf4
Ensure identity filter applies to all targets (#4100)
* Ensure identity filter applies to all targets

* Name filter removes flags

* Revert

* Apply query filters to override toggles
2020-11-29 16:54:35 +01:00
Jaco Greeff
e940117fac
Show nominator return % per target (#4091)
* Show nominator return % per target

* 2 decimals

* Remove commented
2020-11-28 16:32:53 +01:00
Jaco Greeff
f8dc3d3641
Introduce useInflation hook (#4084)
* Introduce useInflation hook

* linting
2020-11-26 15:51:59 +01:00
Jaco Greeff
91625e4080
Staking targets includes to be dropped at end of session (#4072) 2020-11-25 17:30:07 +01:00
Jaco Greeff
a0b82d88a4
Use import type { ... } (#4052)
* Use import type { ... }

* value imports

* TypeDefInfo

* Apply suggestions from code review

* fixes... am going blind.
2020-11-19 16:20:14 +01:00
Jaco Greeff
cdb7a255d7
Limit operator exposure by default (#4036) 2020-11-17 12:45:21 +01:00
Jaco Greeff
beccc911d5
Protect against empty exposure (#3804) 2020-10-01 17:44:32 +02:00
Jaco Greeff
158ab2ee19
Update Darwinia Crab IndividualExposure types (#3719)
* Update Darwininia Crab IndividualExposure types

* own comment

* Charts
2020-09-19 09:56:25 +02:00
Jaco Greeff
7ba7339d96
SPDX (#3705) 2020-09-17 16:46:46 +02:00
Jaco Greeff
6308e359d7
Bump API (small staking opts) (#3626) 2020-09-06 19:29:41 +02:00
Jaco Greeff
ca4b0b9cca
Staking details query optimizations (#3618)
* Staking details query optimizations

* Map lookups

* Extras
2020-09-06 09:40:17 +02:00
Jaco Greeff
6a8d26f411
Cleanup average calcs for targets (#3604) 2020-09-03 23:22:58 +02:00
Jaco Greeff
2448b7f883
Hooks with useMemo (no extra re-renders) (#3567)
* Hooks with useMemo (no extra re-renders)

* Extract defaults

* sorted targets

* Linting
2020-08-29 13:16:27 +02:00
Jaco Greeff
b16f54d8bc
Small sorting optimizations (#3529) 2020-08-26 19:39:44 +02:00
Jaco Greeff
ebad8635f7
Adjust useCall options (#3430)
* Adjust useCall options

* Extract useCall options

* typo

* Apply suggestions from code review

* Adjust param creation in calls
2020-08-17 12:24:51 +02:00
Jaco Greeff
8cb2933860
Show lowest stake on targets (#3423)
* Show lowest stake on targets

* Non-zero total for usage
2020-08-15 16:23:13 +02:00
Jaco Greeff
811352d8fd
Dispaly staked average (#3416)
* Disaply staked average

* Rework avg
2020-08-14 13:43:01 +02:00
Jaco Greeff
ce49da0029
Remove auto validator defaults (#3306)
* Remove auto validator defaults

* Adjust

* Additional cleanups

* Disable nominate on no target validators

* Remove unused next from targets
2020-08-01 12:34:40 +02:00
Jaco Greeff
6a95966b88
Apply favorites consistently (#3105) 2020-07-01 17:32:03 +02:00
Jaco Greeff
3e6a3ae23f
Add missing elected badge on staking waiting (#3006) 2020-06-20 20:52:31 +02:00
Jaco Greeff
9b07c14ae0
Display waiting in targets (#3000)
* Display waiting in targets

* Bondtotal filter re-add

* Bump API
2020-06-20 15:53:54 +02:00
Jaco Greeff
d30b88b7f4
Adjust staking targets/overview sorting displays (#2999)
* Adjust staking targets/overview sorting displays

* Removce whack eslint bug comment
2020-06-20 14:02:42 +02:00
Jaco Greeff
a393d2eae8
Fix targets with zero input (#2989)
* Fix targets with zero input

* Simpler or check
2020-06-19 14:53:06 +02:00
Keith Ingram
2081464de8
Rewrite & update to page-contracts (#2873)
* first commit

* finish

* InputMegaGas, use BN consts'

* update util'

* tags issue

* manifest

* import bn_zero

* rm

* restore contract tags

* fix tags onClose

* sec to ms

* ms -> sec

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-06-09 14:56:10 +02:00
Jaco Greeff
57d8bfc80e
Cleanup InputNumber, simplify (#2648) 2020-04-28 13:46:49 +02:00