Skip to content

Commit

Permalink
Merge pull request #10 from threshold-network/staking-removal
Browse files Browse the repository at this point in the history
Remove "Staking" page

Ref: #1
This pull request removes "Staking" page and related components.
  • Loading branch information
michalsmiarowski authored Jan 11, 2024
2 parents eb15d6e + 9d8383d commit 94b3f2a
Show file tree
Hide file tree
Showing 201 changed files with 18 additions and 15,723 deletions.
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

0 comments on commit 94b3f2a

Please sign in to comment.