-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ad3f2f
commit 2cf55b9
Showing
41 changed files
with
861 additions
and
340 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@siafoundation/design-system': minor | ||
--- | ||
|
||
The TransactionDetailsDialog now supports an Event type instead of txType. |
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,7 @@ | ||
--- | ||
'@siafoundation/hostd-js': minor | ||
'@siafoundation/hostd-react': minor | ||
'@siafoundation/hostd-types': minor | ||
--- | ||
|
||
Updated with v2 endpoints and data types. Closes https://github.com/SiaFoundation/hostd/issues/440 |
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,9 @@ | ||
--- | ||
'@siafoundation/hostd-js': minor | ||
'@siafoundation/hostd-react': minor | ||
'@siafoundation/hostd-types': minor | ||
'@siafoundation/types': minor | ||
'@siafoundation/walletd-types': minor | ||
--- | ||
|
||
Core Event types have been moved to the core types library. Closes https://github.com/SiaFoundation/hostd/issues/440 |
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,5 @@ | ||
--- | ||
'hostd': minor | ||
--- | ||
|
||
The app has been updated to use the new v2 endpoints and data types. Closes https://github.com/SiaFoundation/hostd/issues/440 |
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,6 @@ | ||
--- | ||
'walletd': minor | ||
'@siafoundation/units': minor | ||
--- | ||
|
||
Event and transaction utility methods have been moved to the units library. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
import { TestnetWarningBanner } from '@siafoundation/design-system' | ||
import { useStateHost } from '@siafoundation/hostd-react' | ||
import { useConsensusNetwork } from '@siafoundation/hostd-react' | ||
|
||
export function HostdTestnetWarningBanner() { | ||
const host = useStateHost({ | ||
const host = useConsensusNetwork({ | ||
config: { | ||
swr: { | ||
revalidateOnFocus: false, | ||
}, | ||
}, | ||
}) | ||
|
||
if (!host.data || host.data.network === 'Mainnet') { | ||
if (!host.data || host.data.name === 'mainnet') { | ||
return null | ||
} | ||
|
||
return <TestnetWarningBanner testnetName={host.data.network} /> | ||
return <TestnetWarningBanner testnetName={host.data.name} /> | ||
} |
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,15 @@ | ||
import { Text } from '@siafoundation/design-system' | ||
import { MisuseOutline32 } from '@siafoundation/react-icons' | ||
|
||
export function StateError() { | ||
return ( | ||
<div className="flex flex-col gap-10 justify-center items-center h-[400px]"> | ||
<Text> | ||
<MisuseOutline32 className="scale-[200%]" /> | ||
</Text> | ||
<Text color="subtle" className="text-center max-w-[500px]"> | ||
Error fetching transactions. | ||
</Text> | ||
</div> | ||
) | ||
} |
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,15 @@ | ||
import { Text } from '@siafoundation/design-system' | ||
import { Filter32 } from '@siafoundation/react-icons' | ||
|
||
export function StateNoneMatching() { | ||
return ( | ||
<div className="flex flex-col gap-10 justify-center items-center h-[400px]"> | ||
<Text> | ||
<Filter32 className="scale-[200%]" /> | ||
</Text> | ||
<Text color="subtle" className="text-center max-w-[500px]"> | ||
No transactions matching filters. | ||
</Text> | ||
</div> | ||
) | ||
} |
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,15 @@ | ||
import { Text } from '@siafoundation/design-system' | ||
import { Money32 } from '@siafoundation/react-icons' | ||
|
||
export function StateNoneYet() { | ||
return ( | ||
<div className="flex flex-col gap-10 justify-center items-center h-[400px]"> | ||
<Text> | ||
<Money32 className="scale-[200%]" /> | ||
</Text> | ||
<Text color="subtle" className="text-center max-w-[500px]"> | ||
The wallet has no transactions yet. | ||
</Text> | ||
</div> | ||
) | ||
} |
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
Oops, something went wrong.