Skip to content

Commit 9b78bb8

Browse files
feat: create a simple Sign API example on top of the WS client
This client implements pairing and session flows: https://specs.walletconnect.com/2.0/specs/clients/core/pairing https://specs.walletconnect.com/2.0/specs/clients/sign/session-proposal Supported actions: - pairing - session establishment - session delete - ping This example could be expanded to handle multiple sessions. Caution: The purpose of this example is demonstration of core Sign API functionality. However, it shouldn't be used in production, as might exhibit some race conditions such as with session deletion, etc...
1 parent c2c344f commit 9b78bb8

File tree

2 files changed

+525
-0
lines changed

2 files changed

+525
-0
lines changed

sign_api/Cargo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,12 @@ url = "2.4"
3030
serde_json = { version = "1.0", features = ["preserve_order"] }
3131

3232
anyhow = "1"
33+
clap = { version = "4.4", features = ["derive"] }
34+
chrono = "0.4"
35+
dashmap = "5.5"
36+
relay_client = { path = "../relay_client" }
37+
relay_rpc = { path = "../relay_rpc" }
38+
tokio = { version = "1.22", features = ["full"] }
39+
40+
[[example]]
41+
name = "session"

0 commit comments

Comments
 (0)