diff --git a/src/Mx.NET.SDK.WalletConnect/README.md b/src/Mx.NET.SDK.WalletConnect/README.md index c132850..7cb4ca6 100644 --- a/src/Mx.NET.SDK.WalletConnect/README.md +++ b/src/Mx.NET.SDK.WalletConnect/README.md @@ -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 { @@ -89,28 +86,13 @@ catch (Exception ex) 7. Session Events ```csharp -private void OnSessionUpdateEvent(object? sender, GenericEvent @event) -{ - //Wallet connected -} - -private void OnSessionEvent(object? sender, GenericEvent @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 @event) -{ - //Topic Update -} ``` 8. Disconnect function