Application
Actions
setChainConnectivityWarning: Toggles the chain connectivity warning.setOpenModal: Sets the currently open modal.addPopup: Adds a popup with optional key and auto-removal after a specified time.removePopup: Removes a popup based on the key.setInjectedAddress: Sets the injected address.
Hooks
useModalOpen: Checks if a specific modal is open.useToggleModal: Toggles a specific modal open or closed.useToggleOpenPositionModal: Toggles the open position modal.useDepositModalToggle: Toggles the deposit modal.useWithdrawModalToggle: Toggles the withdraw modal.useWithdrawBarModalToggle: Toggles the withdraw bar modal.useNetworkModalToggle: Toggles the network modal.useDashboardModalToggle: Toggles the dashboard modal.useCreateAccountModalToggle: Toggles the create account modal.useAddPopup: Returns a function to add a popup.useRemovePopup: Returns a function to remove a popup.useActivePopups: Retrieves the list of active popups.useInjectedAddress: Retrieves the injected address.useSetInjectedAddressCallback: Returns a function to set the injected address.
Reducer
Manages the application state including modals, popups, chain connectivity warnings, and injected addresses.
Updater
ApplicationUpdater: Currently does not perform any operations.
Last updated