You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The purpose of this task is to analyse and implement the integration needed to cover the following events. The wallet should implement the meaningful handlers for these events and also emit the events on meaningful flows.
session_event Emitted when an event like accountsChanged happens.
This event can signal the following events:
connect
The Provider emits connect when it:
first connects to a chain after being initialized.
first connects to a chain, after the disconnect event was emitted.
interface ProviderConnectInfo {
readonly chainId: string;
}
The event emits an object with a hexadecimal string chainId per the eth_chainId Ethereum RPC method, and other properties as determined by the Provider.
disconnect
The Provider emits disconnect when it becomes disconnected from all chains.
This event emits a ProviderRpcError. The error code follows the table of CloseEvent status codes.
chainChanged
The Provider emits chainChanged when connecting to a new chain.
The event emits a hexadecimal string chainId per the eth_chainId Ethereum RPC method.
accountsChanged
The Provider emits accountsChanged if the accounts returned from the Provider (eth_accounts) change.
The event emits with accounts, an array of account addresses, per the eth_accounts Ethereum RPC method.
message
The Provider emits message to communicate arbitrary messages to the consumer. Messages may include JSON-RPC notifications, GraphQL subscriptions, and/or any other event as defined by the Provider.
session_expire Emitted when a session has expired.
session_extend Emitted when extending a session.
proposal_expire Emitted when a session proposal has expired.
Acceptance criteria:
The integration layer is extended to receive and send these events to QML
The integration layer is automatically handling or sending events that do not require user interaction (connect, disconnect, session_expire, session_extended, proposal_expire)
QML tests are added
Events that do not require implementation are documented in this task
The text was updated successfully, but these errors were encountered:
Description
The purpose of this task is to analyse and implement the integration needed to cover the following events. The wallet should implement the meaningful handlers for these events and also emit the events on meaningful flows.
Acceptance criteria:
The text was updated successfully, but these errors were encountered: