diff --git a/.changeset/cool-buses-exercise.md b/.changeset/cool-buses-exercise.md new file mode 100644 index 000000000..eb7c1fd4a --- /dev/null +++ b/.changeset/cool-buses-exercise.md @@ -0,0 +1,5 @@ +--- +'@siafoundation/types': minor +--- + +The library now includes v2 types. diff --git a/.changeset/fair-rats-return.md b/.changeset/fair-rats-return.md new file mode 100644 index 000000000..217f433ed --- /dev/null +++ b/.changeset/fair-rats-return.md @@ -0,0 +1,5 @@ +--- +'walletd': minor +--- + +The UI now uses the new daemon endpoints and changes. Closes https://github.com/SiaFoundation/walletd/issues/73 diff --git a/.changeset/neat-pumpkins-cheat.md b/.changeset/neat-pumpkins-cheat.md new file mode 100644 index 000000000..583a5cbad --- /dev/null +++ b/.changeset/neat-pumpkins-cheat.md @@ -0,0 +1,5 @@ +--- +'@siafoundation/react-walletd': minor +--- + +The React hooks have been updated for the daemon endpoint changes. Closes https://github.com/SiaFoundation/walletd/issues/73 diff --git a/apps/walletd/components/Node/index.tsx b/apps/walletd/components/Node/index.tsx index d59d09703..b57f2392c 100644 --- a/apps/walletd/components/Node/index.tsx +++ b/apps/walletd/components/Node/index.tsx @@ -28,7 +28,8 @@ export function Node() { const { openDialog } = useDialog() const transactionCount = txPool.data - ? txPool.data.transactions.length + txPool.data.v2Transactions.length + ? (txPool.data.transactions?.length || 0) + + (txPool.data.v2Transactions?.length || 0) : 0 return ( diff --git a/apps/walletd/components/Wallet/WalletActionsMenu.tsx b/apps/walletd/components/Wallet/WalletActionsMenu.tsx index 990e4becc..3181575b1 100644 --- a/apps/walletd/components/Wallet/WalletActionsMenu.tsx +++ b/apps/walletd/components/Wallet/WalletActionsMenu.tsx @@ -30,16 +30,16 @@ export function WalletActionsMenu() { isSynced={status.isSynced} /> - {wallet?.type !== 'watch' && ( + {wallet?.metadata.type !== 'watch' && ( ) diff --git a/apps/walletd/components/WalletAddresses/AddressesActionsMenu.tsx b/apps/walletd/components/WalletAddresses/AddressesActionsMenu.tsx index e13f5ded5..73edb4743 100644 --- a/apps/walletd/components/WalletAddresses/AddressesActionsMenu.tsx +++ b/apps/walletd/components/WalletAddresses/AddressesActionsMenu.tsx @@ -15,15 +15,15 @@ export function AddressesActionsMenu() {