-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #194 from WalletConnect/feat/rejection-tags
feat: rejection tags
- Loading branch information
Showing
6 changed files
with
72 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
WalletConnectSharp.Sign/Models/Engine/Methods/SessionProposeResponseAutoReject.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using Newtonsoft.Json; | ||
using WalletConnectSharp.Common.Utils; | ||
using WalletConnectSharp.Core.Models.Relay; | ||
using WalletConnectSharp.Network.Models; | ||
|
||
namespace WalletConnectSharp.Sign.Models.Engine.Methods; | ||
|
||
/// <summary> | ||
/// A class that represents the response to wc_sessionPropose. Used to approve a session proposal | ||
/// </summary> | ||
[RpcResponseOptions(Clock.FIVE_MINUTES, 1121)] | ||
public class SessionProposeResponseAutoReject | ||
{ | ||
/// <summary> | ||
/// The protocol options that should be used in this session | ||
/// </summary> | ||
[JsonProperty("relay")] | ||
public ProtocolOptions Relay; | ||
|
||
/// <summary> | ||
/// The public key of the responder to this session proposal | ||
/// </summary> | ||
[JsonProperty("responderPublicKey")] | ||
public string ResponderPublicKey; | ||
} |
25 changes: 25 additions & 0 deletions
25
WalletConnectSharp.Sign/Models/Engine/Methods/SessionProposeResponseReject.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using Newtonsoft.Json; | ||
using WalletConnectSharp.Common.Utils; | ||
using WalletConnectSharp.Core.Models.Relay; | ||
using WalletConnectSharp.Network.Models; | ||
|
||
namespace WalletConnectSharp.Sign.Models.Engine.Methods; | ||
|
||
/// <summary> | ||
/// A class that represents the response to wc_sessionPropose. Used to reject a session proposal. | ||
/// </summary> | ||
[RpcResponseOptions(Clock.FIVE_MINUTES, 1120)] | ||
public class SessionProposeResponseReject | ||
{ | ||
/// <summary> | ||
/// The protocol options that should be used in this session | ||
/// </summary> | ||
[JsonProperty("relay")] | ||
public ProtocolOptions Relay; | ||
|
||
/// <summary> | ||
/// The public key of the responder to this session proposal | ||
/// </summary> | ||
[JsonProperty("responderPublicKey")] | ||
public string ResponderPublicKey; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters