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

Remove "Staking" page #10

Merged
merged 44 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
e00a8b2
Remove Staking pages
kpyszkowski Nov 27, 2023
8c35def
Remove (Un)Staking related modal components
kpyszkowski Nov 27, 2023
dfd59de
Remove Staking related hooks
kpyszkowski Nov 27, 2023
792b7f2
Remove staking related entries from modal store
kpyszkowski Nov 27, 2023
ee21cc3
Remove staking store slices
kpyszkowski Nov 27, 2023
eb16a2c
Remove components, hooks, utils, store entries
kpyszkowski Nov 27, 2023
84b18ed
Remove unused hooks and utility functions
kpyszkowski Nov 28, 2023
c5d9e4b
Remove `ClaimingReward` modal components
kpyszkowski Nov 29, 2023
b386e63
Merge branch 'main' into staking-removal
kpyszkowski Dec 5, 2023
cc4166f
Merge branch 'main' into staking-removal
kpyszkowski Jan 10, 2024
a3af34a
Remove `StatHighlightCard` component
kpyszkowski Jan 10, 2024
4202ffa
Remove `useFetchPreConfigData` hook
kpyszkowski Jan 10, 2024
a2cee6c
Remove staking enums
kpyszkowski Jan 10, 2024
db3fdd7
Remove ununsed token subscription hook calls
kpyszkowski Jan 10, 2024
3d01f35
Remove `SharedLinks` component
kpyszkowski Jan 10, 2024
95c8a4f
Remove `useClaimMerkleRewardsTransaction` hook
kpyszkowski Jan 10, 2024
40984bd
Remove `BundledRewardsAlert` component
kpyszkowski Jan 10, 2024
e7c582a
Remove `ThresholdCircleBrand` component
kpyszkowski Jan 10, 2024
8f37e00
Remove `TokenAmountForm` component
kpyszkowski Jan 10, 2024
0cc5b1f
Remove `calculatePercenteage` utility function
kpyszkowski Jan 10, 2024
0d566c6
Remove unused icons
kpyszkowski Jan 10, 2024
d548f3e
Remove unused images
kpyszkowski Jan 10, 2024
11cfa07
Remove unused external hrefs
kpyszkowski Jan 10, 2024
8e0d858
Remove staking provider logos
kpyszkowski Jan 10, 2024
b003893
Remove `TransactionInfoTable` component
kpyszkowski Jan 10, 2024
3812357
Remove unused external hrefs
kpyszkowski Jan 10, 2024
25d517e
Remove staking applications type
kpyszkowski Jan 10, 2024
dc49bdc
Remove `calculateStakingBonusReward` utility func
kpyszkowski Jan 10, 2024
ac30c46
Remove `formatDate` utility function
kpyszkowski Jan 10, 2024
4febec2
Remove unused images
kpyszkowski Jan 10, 2024
e9ae8f7
Remove unused href
kpyszkowski Jan 10, 2024
de2aeff
Remove `useNextRewardsDropDate` hook
kpyszkowski Jan 10, 2024
b13490a
Remove `NotificationPiil` component
kpyszkowski Jan 10, 2024
5819e8a
Remove `Tree` component
kpyszkowski Jan 10, 2024
d9fd98a
Remove unused icon
kpyszkowski Jan 10, 2024
010cb6d
Remove store ignored paths
kpyszkowski Jan 10, 2024
bbfc388
Remove unused interface entry
kpyszkowski Jan 10, 2024
46cb1fd
Remove test suite for `getStakingAppLabel`
kpyszkowski Jan 10, 2024
8ff116f
Remove staking types definition
kpyszkowski Jan 10, 2024
3a81196
Restore env changfes
kpyszkowski Jan 10, 2024
15766f8
Remove comment
kpyszkowski Jan 11, 2024
501d843
Remove unused import
kpyszkowski Jan 11, 2024
1b1e362
Revert `TokenBalanceCardTemplate` icon prop
kpyszkowski Jan 11, 2024
9d8383d
Remove unused enums
kpyszkowski Jan 11, 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
29 changes: 0 additions & 29 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,9 @@ import { PageComponent } from "./types"
import { Token } from "./enums"
import getLibrary from "./web3/library"
import { useSubscribeToERC20TransferEvent } from "./web3/hooks/useSubscribeToERC20TransferEvent"
import { useSubscribeToStakedEvent } from "./hooks/useSubscribeToStakedEvent"
import { useSubscribeToUnstakedEvent } from "./hooks/useSubscribeToUnstakedEvent"
import { useSubscribeToToppedUpEvent } from "./hooks/useSubscribeToToppedUpEvent"
import { pages } from "./pages"
import { useCheckBonusEligibility } from "./hooks/useCheckBonusEligibility"
import { useFetchStakingRewards } from "./hooks/useFetchStakingRewards"
import { isSameETHAddress } from "./web3/utils"
import { ThresholdProvider } from "./contexts/ThresholdContext"
import {
useSubscribeToAuthorizationIncreasedEvent,
useSubscribeToAuthorizationDecreaseApprovedEvent,
useSubscribeToAuthorizationDecreaseRequestedEvent,
useSubscribeToOperatorRegisteredEvent,
useSubscribeToOperatorStatusUpdatedEvent,
} from "./hooks/staking-applications"
import { useSaveConnectedAddressToStore } from "./hooks/useSaveConnectedAddressToStore"
import { usePosthog } from "./hooks/posthog"
import { useSubscribeToDepositRevealedEvent } from "./hooks/tbtc/useSubsribeToDepositRevealedEvent"
Expand All @@ -53,22 +41,7 @@ import {
import { useSentry } from "./hooks/sentry"

const Web3EventHandlerComponent = () => {
useSubscribeToERC20TransferEvent(Token.Keep)
useSubscribeToERC20TransferEvent(Token.Nu)
useSubscribeToERC20TransferEvent(Token.T)
useSubscribeToERC20TransferEvent(Token.TBTCV2)
useSubscribeToStakedEvent()
useSubscribeToUnstakedEvent()
useSubscribeToToppedUpEvent()
useSubscribeToAuthorizationIncreasedEvent()
useSubscribeToAuthorizationDecreaseApprovedEvent("tbtc")
useSubscribeToAuthorizationDecreaseApprovedEvent("randomBeacon")
useSubscribeToAuthorizationDecreaseRequestedEvent("tbtc")
useSubscribeToAuthorizationDecreaseRequestedEvent("randomBeacon")
useSubscribeToOperatorRegisteredEvent("tbtc")
useSubscribeToOperatorRegisteredEvent("randomBeacon")
useSubscribeToOperatorStatusUpdatedEvent("randomBeacon")
useSubscribeToOperatorStatusUpdatedEvent("tbtc")
useSubscribeToDepositRevealedEvent()
useSubscribeToOptimisticMintingFinalizedEvent()
useSubscribeToOptimisticMintingRequestedEvent()
Expand Down Expand Up @@ -122,8 +95,6 @@ const AppBody = () => {
}, [dispatch])

usePosthog()
useCheckBonusEligibility()
useFetchStakingRewards()
useSaveConnectedAddressToStore()
useSentry()

Expand Down
25 changes: 0 additions & 25 deletions src/components/BundledRewardsAlert/index.tsx

This file was deleted.

118 changes: 0 additions & 118 deletions src/components/Forms/TokenAmountForm.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/components/Forms/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from "./TokenAmountForm"
export * from "./Form"
export * from "./FormikInput"
export * from "./FormikTokenBalanceInput"
30 changes: 0 additions & 30 deletions src/components/Link/SharedLinks.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions src/components/Link/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,4 @@ const Link: FC<LinkProps> = forwardRef(
}
)

export * from "./SharedLinks"

export default Link
48 changes: 0 additions & 48 deletions src/components/Modal/ClaimingRewards/SuccessModal.tsx

This file was deleted.

Loading