@tuwaio/satellite-connect-monorepo
EVMWatcherCallbacks
Defined in: packages/satellite-evm/src/utils/createEVMConnectionsWatcher.ts:10
Callback functions interface for the EVM connections watcher. These callbacks are used to interact with the global state store.
Properties
activeConnection
activeConnection:
EVMConnection|undefined
Defined in: packages/satellite-evm/src/utils/createEVMConnectionsWatcher.ts:12
The currently active EVM connection from the global store
connectionError
connectionError:
string|undefined
Defined in: packages/satellite-evm/src/utils/createEVMConnectionsWatcher.ts:16
Current connection error state, if any
disconnect()
disconnect: (
connectorType) =>void
Defined in: packages/satellite-evm/src/utils/createEVMConnectionsWatcher.ts:14
Function to disconnect a specific connector type
Parameters
connectorType
`evm:${string}` | `solana:${string}` | `starknet:${string}`
Returns
void
updateActiveConnection()
updateActiveConnection: (
connection) =>void
Defined in: packages/satellite-evm/src/utils/createEVMConnectionsWatcher.ts:18
Function to update the active connection’s properties
Parameters
connection
Partial<EVMConnection>
Returns
void