-
Notifications
You must be signed in to change notification settings - Fork 47
add staking to hub #811
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
Open
nonuwa-oss
wants to merge
48
commits into
status-im:main
Choose a base branch
from
nonuwa-oss:feat/add-staking-to-hub
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
add staking to hub #811
Changes from 18 commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
3e5ea7c
chore: add wagmi configuration and providers for Status Hub
iamonuwa 10aa6ae
feat: add new icons, promo modal for staking page, integrate connectk…
iamonuwa e0bb149
feat: implement progress dialog and state management for vault operat…
iamonuwa 3243473
chore: rename progress dialog to action status component and where it…
iamonuwa fcefb4e
feat: integrate SIWE for wallet authentication and enhance vault stat…
iamonuwa c8b482b
feat: update vault management with new table and modal components, in…
iamonuwa 9ddf2a5
feat: integrate @tanstack/react-query for improved data fetching and …
iamonuwa 4e9e17e
feat: enhance vault management with new compound modal and lock confi…
iamonuwa 7d47c4b
refactor: introduce withdraw modal and enhance lock configuration mod…
iamonuwa a2109bd
feat: enhance vault management with new hooks for account vaults and …
iamonuwa 26016b3
feat: enhance vault management with new hooks for token approval, wit…
iamonuwa eca9537
feat: integrate emergency mode functionality and enhance slider confi…
iamonuwa cab94d0
feat: enhance vault selection UI with lock status indicators and impr…
iamonuwa 7b28420
refactor: simplify vault table action handlers by removing unnecessar…
iamonuwa 2c2f7fa
feat: enhance vault management by adding new hooks for staking, multi…
iamonuwa b14c3e2
chore: add changeset
iamonuwa 3d96b2b
Merge branch 'main' into feat/add-staking-to-hub
nonuwa-oss 3f80bdb
chore: remove unused eslint-disable comments from vault-related compo…
iamonuwa ad55b5f
feat: add staking constants and improve hooks for vault management;
iamonuwa 1fab999
chore: update vault-related UI components for consistency and improve…
iamonuwa 408bef7
chore: add wagmi configuration and providers for Status Hub
iamonuwa cbd0b71
feat: add new icons, promo modal for staking page, integrate connectk…
iamonuwa 73af84e
feat: implement progress dialog and state management for vault operat…
iamonuwa 6a86d88
chore: rename progress dialog to action status component and where it…
iamonuwa fd31644
feat: integrate SIWE for wallet authentication and enhance vault stat…
iamonuwa eb35735
feat: update vault management with new table and modal components, in…
iamonuwa da74d75
feat: integrate @tanstack/react-query for improved data fetching and …
iamonuwa 91bf389
feat: enhance vault management with new compound modal and lock confi…
iamonuwa d107230
refactor: introduce withdraw modal and enhance lock configuration mod…
iamonuwa 92413b1
feat: enhance vault management with new hooks for account vaults and …
iamonuwa 063c418
feat: enhance vault management with new hooks for token approval, wit…
iamonuwa 8eb6720
feat: integrate emergency mode functionality and enhance slider confi…
iamonuwa d63073a
feat: enhance vault selection UI with lock status indicators and impr…
iamonuwa 7dc1743
refactor: simplify vault table action handlers by removing unnecessar…
iamonuwa fac2d65
feat: enhance vault management by adding new hooks for staking, multi…
iamonuwa a18820c
chore: add changeset
iamonuwa d608499
chore: remove unused eslint-disable comments from vault-related compo…
iamonuwa 8042775
feat: add staking constants and improve hooks for vault management;
iamonuwa 660ea3a
chore: update vault-related UI components for consistency and improve…
iamonuwa 095515e
Merge branch 'feat/add-staking-to-hub' of github.com-ift:nnachionuwa/…
iamonuwa 3ea1632
chore: apply commit changes
iamonuwa df63859
fix: remove chain id definition in hooks
iamonuwa 7a8eaa7
chore: add button size 24
iamonuwa 9e35c83
Merge branch 'main' into feat/add-staking-to-hub
nonuwa-oss aeb2337
chore: fix box-border style
iamonuwa 84c4271
Merge branch 'feat/add-staking-to-hub' of github.com-ift:nnachionuwa/…
iamonuwa af4c14f
remove border-box sizing
iamonuwa 418ff5f
chore: update images
iamonuwa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| --- | ||
| '@status-im/components': patch | ||
| 'hub': major | ||
| --- | ||
|
|
||
| ### Staking & Vault Management System | ||
|
|
||
| - **New Hooks:** | ||
|
|
||
| - Staking functionality with multiplier points tracking | ||
| - Vault locking mechanisms | ||
| - Token approval and withdrawal flows | ||
| - Account vaults management | ||
| - Faucet integration for testing | ||
| - Emergency mode functionality | ||
|
|
||
| - **User Experience:** | ||
| - Lock status indicators in vault selection UI | ||
| - Improved table overflow handling | ||
| - Enhanced slider configuration for vault lockup periods | ||
|
|
||
| ### UI Components | ||
|
|
||
| - **New Modals:** | ||
|
|
||
| - Withdraw modal for vault withdrawals | ||
| - Lock configuration modal for vault locking | ||
| - Compound modal for compounding rewards | ||
| - Promo modal for staking page | ||
| - Action status component (formerly progress dialog) | ||
|
|
||
| - **UI Improvements:** | ||
| - New icons added | ||
| - Enhanced vault table components | ||
| - Better modal state management | ||
|
|
||
| ### Authentication & Web3 Integration | ||
|
|
||
| - **SIWE Integration:** | ||
| - Sign-In With Ethereum (SIWE) for wallet authentication | ||
| - ConnectKit integration for wallet connection | ||
| - Wagmi configuration and providers setup | ||
|
|
||
| ### State Management & Data Fetching | ||
|
|
||
| - **Dependencies Added:** | ||
| - `@tanstack/react-query` for server state management | ||
| - `react-table` for table data management | ||
| - Improved overall state management patterns | ||
|
|
||
| ### Emergency Features | ||
|
|
||
| - Emergency mode functionality for vault operations | ||
| - Enhanced safety controls for vault lockup periods | ||
|
|
||
| ## Refactoring & Maintenance | ||
|
|
||
| ### Code Quality Improvements | ||
|
|
||
| - Simplified vault table action handlers | ||
| - Removed unnecessary onClick logic for modal state management | ||
| - Renamed progress dialog to action status component for clarity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| import type { SVGProps } from 'react' | ||
|
|
||
| const CloseIcon = (props: SVGProps<SVGSVGElement>) => ( | ||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| width={50} | ||
| height={50} | ||
| fill="none" | ||
| {...props} | ||
| > | ||
| <path | ||
| stroke="#E95460" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| strokeWidth={4} | ||
| d="m10.269 10.27 29.46 29.462M25 45.833c11.506 0 20.834-9.328 20.834-20.834S36.506 4.166 25 4.166 4.167 13.493 4.167 24.999c0 11.506 9.327 20.834 20.833 20.834Z" | ||
| /> | ||
| </svg> | ||
| ) | ||
| export default CloseIcon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,52 +1,27 @@ | ||
| export default function LaunchIcon({ | ||
| className = '', | ||
| ...props | ||
| }: React.SVGProps<SVGSVGElement>) { | ||
| return ( | ||
| <svg | ||
| width="20" | ||
| height="20" | ||
| viewBox="0 0 20 20" | ||
| fill="none" | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| className={className} | ||
| {...props} | ||
| > | ||
| <g clipPath="url(#clip0_2815_575)"> | ||
| <path | ||
| d="M3.75004 13.7498C2.50004 14.7998 2.08337 17.9164 2.08337 17.9164C2.08337 17.9164 5.20004 17.4998 6.25004 16.2498C6.84171 15.5498 6.83337 14.4748 6.17504 13.8248C5.85113 13.5156 5.42445 13.337 4.9769 13.3231C4.52934 13.3093 4.09244 13.4612 3.75004 13.7498Z" | ||
| stroke="currentColor" | ||
| strokeWidth="1.5" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| /> | ||
| <path | ||
| d="M10 12.4996L7.5 9.99956C7.94345 8.84908 8.50184 7.74627 9.16667 6.70789C10.1377 5.15538 11.4897 3.8771 13.0942 2.99463C14.6986 2.11217 16.5022 1.65486 18.3333 1.66622C18.3333 3.93289 17.6833 7.91622 13.3333 10.8329C12.2807 11.4985 11.164 12.0568 10 12.4996Z" | ||
| stroke="currentColor" | ||
| strokeWidth="1.5" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| /> | ||
| <path | ||
| d="M7.50004 10.0009H3.33337C3.33337 10.0009 3.79171 7.47591 5.00004 6.66758C6.35004 5.76758 9.16671 6.66758 9.16671 6.66758" | ||
| stroke="currentColor" | ||
| strokeWidth="1.5" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| /> | ||
| <path | ||
| d="M10 12.5007V16.6673C10 16.6673 12.525 16.209 13.3333 15.0007C14.2333 13.6507 13.3333 10.834 13.3333 10.834" | ||
| stroke="currentColor" | ||
| strokeWidth="1.5" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| /> | ||
| </g> | ||
| <defs> | ||
| <clipPath id="clip0_2815_575"> | ||
| <rect width="20" height="20" fill="white" /> | ||
| </clipPath> | ||
| </defs> | ||
| </svg> | ||
| ) | ||
| } | ||
| import type { SVGProps } from 'react' | ||
|
|
||
| const LaunchIcon = (props: SVGProps<SVGSVGElement>) => ( | ||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| width={32} | ||
| height={32} | ||
| fill="none" | ||
| {...props} | ||
| > | ||
| <path | ||
| stroke="#7140FD" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| strokeWidth={2} | ||
| d="M6 22c-2 1.68-2.666 6.667-2.666 6.667S8.321 28 10.001 26c.946-1.12.933-2.84-.12-3.88A2.907 2.907 0 0 0 6 22ZM16 20.002l-4-4a29.328 29.328 0 0 1 2.667-5.267 17.172 17.172 0 0 1 14.666-8.067c0 3.627-1.04 10-8 14.667A29.798 29.798 0 0 1 16 20.002Z" | ||
| /> | ||
| <path | ||
| stroke="#7140FD" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| strokeWidth={2} | ||
| d="M12 16H5.335s.733-4.04 2.667-5.333c2.16-1.44 6.666 0 6.666 0M16 19.999v6.666s4.04-.733 5.333-2.666c1.44-2.16 0-6.667 0-6.667" | ||
| /> | ||
| </svg> | ||
| ) | ||
| export default LaunchIcon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| import type { SVGProps } from 'react' | ||
|
|
||
| const ProcessingIcon = ({ ...props }: SVGProps<SVGSVGElement>) => ( | ||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| width={50} | ||
| height={50} | ||
| fill="none" | ||
| {...props} | ||
| > | ||
| <path | ||
| stroke="#7140FD" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| strokeWidth={4} | ||
| d="M43.75 25A18.75 18.75 0 0 0 25 6.25a20.313 20.313 0 0 0-14.042 5.708L6.25 16.667" | ||
| /> | ||
| <path | ||
| stroke="#7140FD" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| strokeWidth={4} | ||
| d="M6.25 6.25v10.417h10.417M6.25 25A18.75 18.75 0 0 0 25 43.75a20.312 20.312 0 0 0 14.042-5.708l4.708-4.709" | ||
| /> | ||
| <path | ||
| stroke="#7140FD" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| strokeWidth={4} | ||
| d="M33.334 33.336h10.417v10.417" | ||
| /> | ||
| </svg> | ||
| ) | ||
| export default ProcessingIcon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| import type { SVGProps } from 'react' | ||
|
|
||
| const RejectIcon = (props: SVGProps<SVGSVGElement>) => ( | ||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| width={50} | ||
| height={50} | ||
| fill="none" | ||
| {...props} | ||
| > | ||
| <g | ||
| stroke="#E95460" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| strokeWidth={4} | ||
| clipPath="url(#a)" | ||
| > | ||
| <path d="m10.269 10.27 29.46 29.462M25 45.833c11.506 0 20.834-9.328 20.834-20.834S36.506 4.166 25 4.166 4.167 13.493 4.167 24.999c0 11.506 9.327 20.834 20.833 20.834Z" /> | ||
| </g> | ||
| <defs> | ||
| <clipPath id="a"> | ||
| <path fill="#fff" d="M0 0h50v50H0z" /> | ||
| </clipPath> | ||
| </defs> | ||
| </svg> | ||
| ) | ||
| export default RejectIcon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import Image from 'next/image' | ||
|
|
||
| export default function SNTIcon() { | ||
| return ( | ||
| <div className="relative size-8"> | ||
| <Image | ||
| src="/vaults/snt.png" | ||
| alt="SNT" | ||
| width="64" | ||
| height="64" | ||
| quality="100" | ||
| /> | ||
| <Image | ||
| src="/tokens/karma.png" | ||
| width="24" | ||
| height="24" | ||
| alt="Karma" | ||
| className="absolute -bottom-0.5 -right-1 size-[14px] rounded-full border-2 border-white-100" | ||
| /> | ||
| </div> | ||
| ) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| import type { SVGProps } from 'react' | ||
|
|
||
| export default function VaultIcon({ | ||
| className, | ||
| ...props | ||
| }: SVGProps<SVGSVGElement>) { | ||
| return ( | ||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| width={50} | ||
| height={50} | ||
| fill="none" | ||
| className={className} | ||
| {...props} | ||
| > | ||
| <path | ||
| stroke="#7140FD" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| strokeWidth={4} | ||
| d="M39.583 6.25H10.417a4.167 4.167 0 0 0-4.167 4.167v29.166a4.167 4.167 0 0 0 4.167 4.167h29.166a4.167 4.167 0 0 0 4.167-4.167V10.417a4.167 4.167 0 0 0-4.167-4.167Z" | ||
| /> | ||
| <path | ||
| stroke="#7140FD" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| strokeWidth={4} | ||
| d="M15.732 16.826a1.042 1.042 0 1 0 0-2.084 1.042 1.042 0 0 0 0 2.084ZM16.458 16.459l5.543 5.553M34.27 16.826a1.042 1.042 0 1 0 0-2.084 1.042 1.042 0 0 0 0 2.084ZM28.018 22.012l5.523-5.553M15.744 35.277a1.042 1.042 0 1 0 0-2.084 1.042 1.042 0 0 0 0 2.084ZM16.459 33.542l5.494-5.554M34.21 35.349a1.042 1.042 0 1 0 0-2.083 1.042 1.042 0 0 0 0 2.083ZM28.008 28.047l5.533 5.495M25 29.167a4.167 4.167 0 1 0 0-8.333 4.167 4.167 0 0 0 0 8.333Z" | ||
| /> | ||
| </svg> | ||
| ) | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.