SolanaWatcherCallbacks
Defined in: satellite-solana/src/utils/createSolanaConnectionsWatcher.ts:21
Store state and actions used by createSolanaConnectionsWatcher. Pass the store’s disconnect and
updateActiveConnection and its getState. Instead of getState you can pass the current activeConnection and
connectionError.
Properties
activeConnection?
optionalactiveConnection?:SolanaConnection
Defined in: satellite-solana/src/utils/createSolanaConnectionsWatcher.ts:23
The active connection. Ignored when getState is passed.
connectionError?
optionalconnectionError?:string|TuwaErrorState
Defined in: satellite-solana/src/utils/createSolanaConnectionsWatcher.ts:34
The store’s connectionError. While it is set, wallet changes are not copied to the store. Ignored when
getState is passed.
disconnect
disconnect: (
connectorType) =>void
Defined in: satellite-solana/src/utils/createSolanaConnectionsWatcher.ts:29
Disconnects a connection; the store’s disconnect.
Parameters
connectorType
ConnectorType
The connector to disconnect.
Returns
void
getState?
optionalgetState?: () =>object
Defined in: satellite-solana/src/utils/createSolanaConnectionsWatcher.ts:46
Returns the current store state, for example the store’s getState. It is called once per run.
Returns
The current activeConnection and connectionError.
activeConnection?
optionalactiveConnection?:SolanaConnection
The active connection.
connectionError?
optionalconnectionError?:string|TuwaErrorState
The connection error.
updateActiveConnection
updateActiveConnection: (
connection) =>void
Defined in: satellite-solana/src/utils/createSolanaConnectionsWatcher.ts:40
Merges fields into the active connection; the store’s updateActiveConnection.
Parameters
connection
Partial<SolanaConnection>
Fields to merge.
Returns
void