diff --git a/packages/api-react/src/hooks/useServices.ts b/packages/api-react/src/hooks/useServices.ts index 158d48b9da..c1246be87c 100644 --- a/packages/api-react/src/hooks/useServices.ts +++ b/packages/api-react/src/hooks/useServices.ts @@ -82,6 +82,11 @@ export default function useMonitorServices( getServiceOptions(ServiceName.INTRODUCER, services, options), ); + const datalayerState = useService( + ServiceName.DATALAYER, + getServiceOptions(ServiceName.DATALAYER, services, options), + ); + const states = [ walletState, fullNodeState, @@ -91,6 +96,7 @@ export default function useMonitorServices( plotterState, timelordState, introducerState, + datalayerState, ]; const isLoading = !!states.find((state) => state.isLoading); diff --git a/packages/api/src/constants/ServiceConnectionName.ts b/packages/api/src/constants/ServiceConnectionName.ts index ab36d7de0e..c50012473c 100644 --- a/packages/api/src/constants/ServiceConnectionName.ts +++ b/packages/api/src/constants/ServiceConnectionName.ts @@ -9,4 +9,5 @@ export default { 5: ServiceHumanName[ServiceName.INTRODUCER], 6: ServiceHumanName[ServiceName.WALLET], 7: ServiceHumanName[ServiceName.PLOTTER], + 8: ServiceHumanName[ServiceName.DATALAYER], }; diff --git a/packages/api/src/constants/ServiceHumanName.ts b/packages/api/src/constants/ServiceHumanName.ts index b1c80fc05b..1208cc8d39 100644 --- a/packages/api/src/constants/ServiceHumanName.ts +++ b/packages/api/src/constants/ServiceHumanName.ts @@ -11,4 +11,5 @@ export default { [ServiceName.TIMELORD]: 'Timelord', [ServiceName.INTRODUCER]: 'Introducer', [ServiceName.EVENTS]: 'Events', + [ServiceName.DATALAYER]: 'Datalayer', }; diff --git a/packages/api/src/constants/ServiceName.ts b/packages/api/src/constants/ServiceName.ts index e4ee5d781e..9797f52fd6 100644 --- a/packages/api/src/constants/ServiceName.ts +++ b/packages/api/src/constants/ServiceName.ts @@ -9,6 +9,7 @@ enum ServiceName { TIMELORD = 'chia_timelord', INTRODUCER = 'chia_introducer', EVENTS = 'wallet_ui', + DATALAYER = "chia_data_layer", }; export default ServiceName; diff --git a/packages/api/src/constants/WalletType.ts b/packages/api/src/constants/WalletType.ts index bd9604aa1f..0fbd6cf1e5 100644 --- a/packages/api/src/constants/WalletType.ts +++ b/packages/api/src/constants/WalletType.ts @@ -11,6 +11,8 @@ enum WalletType { DECENTRALIZED_ID = 8, POOLING_WALLET = 9, NFT = 10, + DATA_LAYER = 11, + DATA_LAYER_OFFER = 12, } export default WalletType; diff --git a/packages/gui/src/components/app/AppState.tsx b/packages/gui/src/components/app/AppState.tsx index 35a5e9cafa..c3d6aeaacf 100644 --- a/packages/gui/src/components/app/AppState.tsx +++ b/packages/gui/src/components/app/AppState.tsx @@ -32,6 +32,7 @@ const ALL_SERVICES = [ ServiceName.FARMER, ServiceName.HARVESTER, ServiceName.SIMULATOR, + ServiceName.DATALAYER, ]; type Props = { diff --git a/packages/gui/src/constants/ModeServices.ts b/packages/gui/src/constants/ModeServices.ts index 7fc1560c2a..6d48edac51 100644 --- a/packages/gui/src/constants/ModeServices.ts +++ b/packages/gui/src/constants/ModeServices.ts @@ -10,6 +10,7 @@ export default { ServiceName.FULL_NODE, ServiceName.FARMER, ServiceName.HARVESTER, + ServiceName.DATALAYER, ], }; diff --git a/packages/wallets/src/components/WalletsDropdown.tsx b/packages/wallets/src/components/WalletsDropdown.tsx index 0f8a9081de..880d52a21d 100644 --- a/packages/wallets/src/components/WalletsDropdown.tsx +++ b/packages/wallets/src/components/WalletsDropdown.tsx @@ -31,7 +31,7 @@ export default function WalletsDropdown(props: Props) { } return wallets - .filter(wallet => ![WalletType.POOLING_WALLET].includes(wallet.type)) + .filter(wallet => ![WalletType.POOLING_WALLET, WalletType.DATA_LAYER].includes(wallet.type)) .map((wallet) => { const primaryTitle = getPrimaryTitle(wallet); const secondaryTitle = trans(WalletName[wallet.type]); diff --git a/packages/wallets/src/constants/WalletName.ts b/packages/wallets/src/constants/WalletName.ts index f59475177a..f88bc2716b 100644 --- a/packages/wallets/src/constants/WalletName.ts +++ b/packages/wallets/src/constants/WalletName.ts @@ -35,6 +35,9 @@ const WalletName = { [WalletType.NFT]: defineMessage({ message: 'NFT Wallet', }), + [WalletType.DATA_LAYER]: defineMessage({ + message: 'Datalayer Wallet', + }), } export default WalletName;