Skip to content

Commit

Permalink
Merge pull request #3 from RemarkableTools/dev
Browse files Browse the repository at this point in the history
README update for v2.1.3
  • Loading branch information
axenteoctavian authored Dec 28, 2023
2 parents 18b1a46 + a9cc832 commit a034037
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions src/Mx.NET.SDK.WalletConnect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,8 @@ IWalletConnect WalletConnect = new WalletConnect(metadata, PROJECT_ID, CHAIN_ID)
3. At start-up, you should check for old connection and setup the events
```csharp
await WalletConnect.ClientInit();
WalletConnect.OnSessionUpdateEvent += OnSessionUpdateEvent;
WalletConnect.OnSessionEvent += OnSessionEvent;
WalletConnect.OnSessionDeleteEvent += OnSessionDeleteEvent;
WalletConnect.OnSessionExpireEvent += OnSessionDeleteEvent;
WalletConnect.OnTopicUpdateEvent += OnTopicUpdateEvent;

try
{
Expand Down Expand Up @@ -89,28 +86,13 @@ catch (Exception ex)

7. Session Events
```csharp
private void OnSessionUpdateEvent(object? sender, GenericEvent<SessionUpdateEvent> @event)
{
//Wallet connected
}

private void OnSessionEvent(object? sender, GenericEvent<SessionEvent> @event)
{
//Session event
}

private void OnSessionDeleteEvent(object? sender, EventArgs e)
private void OnSessionDeleteEvent(object? sender, SessionEvent e)
{
//Wallet Disconnected
NetworkConfig = default!;
Account = default!;
}

private void OnTopicUpdateEvent(object? sender, GenericEvent<TopicUpdateEvent> @event)
{
//Topic Update
}
```

8. Disconnect function
Expand Down

0 comments on commit a034037

Please sign in to comment.