Skip to content

Commit 04b51d5

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 cbd8a9a commit 04b51d5

File tree

2 files changed

+524
-0
lines changed

2 files changed

+524
-0
lines changed

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,18 @@ sign_api = { path = "./sign_api", optional = true }
2828
[dev-dependencies]
2929
anyhow = "1"
3030
structopt = { version = "0.3", default-features = false }
31+
clap = { version = "4.4", features = ["derive"] }
32+
chrono = "0.4"
3133
tokio = { version = "1.22", features = ["full"] }
3234
url = "2.3"
3335
warp = { version = "0.3", default-features = false }
3436
serde_json = "1.0"
37+
hex = "0.4"
38+
dashmap = "5.5"
39+
40+
[[example]]
41+
name = "session"
42+
required-features = ["client","rpc"]
3543

3644
[[example]]
3745
name = "websocket_client"

0 commit comments

Comments
 (0)