-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #956 from haqq-network/dev
release
- Loading branch information
Showing
89 changed files
with
7,592 additions
and
6,459 deletions.
There are no files selected for viewing
This file contains 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 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 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,3 @@ | ||
{ | ||
"hello-world": "مرحبا بالعالم!" | ||
} |
This file contains 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,3 @@ | ||
{ | ||
"hello-world": "Hello, World!" | ||
} |
This file contains 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,3 @@ | ||
{ | ||
"hello-world": "Halo Dunia!" | ||
} |
This file contains 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,3 @@ | ||
{ | ||
"hello-world": "Merhaba Dünya!" | ||
} |
This file contains 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 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
File renamed without changes.
This file contains 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 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 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 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
File renamed without changes.
File renamed without changes.
This file contains 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
File renamed without changes.
File renamed without changes.
36 changes: 36 additions & 0 deletions
36
apps/shell/src/app/[locale]/staking/liquid-staking/@modals/liquid-staking-delegate/page.tsx
This file contains 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,36 @@ | ||
'use client'; | ||
import { useEffect, useState } from 'react'; | ||
import { useRouter } from 'next/navigation'; | ||
import { useAddress, useIndexerBalanceQuery } from '@haqq/shell-shared'; | ||
import { | ||
LiquidStakingDelegateModalHooked, | ||
useStideStakingInfo, | ||
} from '@haqq/shell-staking'; | ||
|
||
export default function LiquidStakingModalSegment() { | ||
const { haqqAddress } = useAddress(); | ||
const { push } = useRouter(); | ||
const { data: balances } = useIndexerBalanceQuery(haqqAddress); | ||
const [balance, setBalance] = useState(0); | ||
|
||
useEffect(() => { | ||
if (balances) { | ||
const { availableForStake } = balances; | ||
setBalance(availableForStake); | ||
} | ||
}, [balances]); | ||
|
||
const { data: { unbonding_period } = {} } = useStideStakingInfo(); | ||
|
||
return ( | ||
<LiquidStakingDelegateModalHooked | ||
isOpen | ||
onClose={() => { | ||
push(`/staking`); | ||
}} | ||
balance={balance} | ||
unboundingTime={unbonding_period} | ||
symbol="ISLM" | ||
/> | ||
); | ||
} |
39 changes: 39 additions & 0 deletions
39
.../shell/src/app/[locale]/staking/liquid-staking/@modals/liquid-staking-undelegate/page.tsx
This file contains 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,39 @@ | ||
'use client'; | ||
import { useEffect, useState } from 'react'; | ||
import { useRouter } from 'next/navigation'; | ||
import { useAddress, useIndexerBalanceQuery } from '@haqq/shell-shared'; | ||
import { | ||
LiquidStakingUndelegateModalHooked, | ||
useStislmBalance, | ||
useStideStakingInfo, | ||
} from '@haqq/shell-staking'; | ||
|
||
export default function LiquidStakingUndelegateModalSegment() { | ||
const { haqqAddress } = useAddress(); | ||
const { push } = useRouter(); | ||
const { data: balances } = useIndexerBalanceQuery(haqqAddress); | ||
const [balance, setBalance] = useState(0); | ||
|
||
useEffect(() => { | ||
if (balances) { | ||
const { availableForStake } = balances; | ||
setBalance(availableForStake); | ||
} | ||
}, [balances]); | ||
|
||
const { data: { unbonding_period } = {} } = useStideStakingInfo(); | ||
const { stIslmBalance } = useStislmBalance(); | ||
|
||
return ( | ||
<LiquidStakingUndelegateModalHooked | ||
isOpen | ||
onClose={() => { | ||
push(`/staking`); | ||
}} | ||
delegation={stIslmBalance} | ||
balance={balance} | ||
unboundingTime={unbonding_period} | ||
symbol="stISLM" | ||
/> | ||
); | ||
} |
3 changes: 3 additions & 0 deletions
3
apps/shell/src/app/[locale]/staking/liquid-staking/[...catchAll]/page.tsx
This file contains 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,3 @@ | ||
import ValidatorsListPage from '../../page'; | ||
|
||
export default ValidatorsListPage; |
File renamed without changes.
This file contains 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,3 @@ | ||
import ValidatorsListPage from '../../page'; | ||
|
||
export default ValidatorsListPage; |
This file contains 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
3 changes: 3 additions & 0 deletions
3
apps/shell/src/app/[locale]/staking/validator/[address]/@modals/[...catchAll]/page.tsx
This file contains 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,3 @@ | ||
export default function CatchAll() { | ||
return null; | ||
} |
3 changes: 3 additions & 0 deletions
3
apps/shell/src/app/[locale]/staking/validator/[address]/@modals/default.tsx
This file contains 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,3 @@ | ||
export default function Default() { | ||
return null; | ||
} |
File renamed without changes.
This file contains 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
File renamed without changes.
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
apps/shell/src/app/[locale]/staking/validator/[address]/layout.tsx
This file contains 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,19 @@ | ||
import { ReactNode } from 'react'; | ||
|
||
export const dynamic = 'force-dynamic'; | ||
export const fetchCache = 'force-no-store'; | ||
|
||
export default function Layout({ | ||
modals, | ||
children, | ||
}: { | ||
modals: ReactNode; | ||
children: ReactNode; | ||
}) { | ||
return ( | ||
<> | ||
{children} | ||
{modals} | ||
</> | ||
); | ||
} |
This file contains 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 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
File renamed without changes.
This file contains 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
Oops, something went wrong.