From 11d6f07d767f66465fc86874220921521cdd1c91 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Wed, 30 Oct 2024 09:50:23 -0400 Subject: [PATCH 1/5] fix: update smart sessions address --- src/handlers/wallet/prepare_calls.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handlers/wallet/prepare_calls.rs b/src/handlers/wallet/prepare_calls.rs index 3f4073c1..04f48a83 100644 --- a/src/handlers/wallet/prepare_calls.rs +++ b/src/handlers/wallet/prepare_calls.rs @@ -390,8 +390,8 @@ const MODE_USE: u8 = 0x00; const MODE_ENABLE: u8 = 0x01; const MODE_UNSAFE_ENABLE: u8 = 0x02; -// https://github.com/rhinestonewtf/module-sdk/blob/18ef7ca998c0d0a596572f18575e1b4967d9227b/src/module/smart-sessions/constants.ts#L2 -const SMART_SESSIONS_ADDRESS: Address = address!("82e5e20582d976f5db5e36c5a72c70d5711cef8b"); +// https://github.com/rhinestonewtf/module-sdk/blob/main/src/module/smart-sessions/constants.ts#L3 +const SMART_SESSIONS_ADDRESS: Address = address!("DDFF43A42726df11E34123f747bDce0f755F784d"); // https://github.com/rhinestonewtf/module-sdk/blob/18ef7ca998c0d0a596572f18575e1b4967d9227b/src/module/smart-sessions/usage.ts#L209 pub fn decode_smart_session_signature( From 73c5f60bed8540ba6373c3ace31af41ee2067dc2 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Wed, 30 Oct 2024 10:12:22 -0400 Subject: [PATCH 2/5] fix: smart session signature encode/decode --- src/handlers/wallet/prepare_calls.rs | 44 +++++++++++++++++----------- 1 file changed, 27 insertions(+), 17 deletions(-) diff --git a/src/handlers/wallet/prepare_calls.rs b/src/handlers/wallet/prepare_calls.rs index 04f48a83..c4933626 100644 --- a/src/handlers/wallet/prepare_calls.rs +++ b/src/handlers/wallet/prepare_calls.rs @@ -7,7 +7,7 @@ use crate::handlers::wallet::types::SignatureRequestType; use crate::{handlers::HANDLER_TASK_METRICS, state::AppState}; use alloy::network::{Ethereum, Network}; use alloy::primitives::aliases::U192; -use alloy::primitives::{address, bytes, Address, Bytes, FixedBytes, U256, U64}; +use alloy::primitives::{address, bytes, keccak256, Address, Bytes, FixedBytes, B256, U256, U64}; use alloy::providers::{Provider, ReqwestProvider}; use alloy::sol_types::SolCall; use alloy::sol_types::SolValue; @@ -401,25 +401,28 @@ pub fn decode_smart_session_signature( let mode = signature .first() .ok_or(PrepareCallsError::PermissionContextNotLongEnough)?; - let permission_id = signature - .get(1..33) - .ok_or(PrepareCallsError::PermissionContextNotLongEnough)? - .try_into() // this error shouldn't happen - .map_err(|_| PrepareCallsError::PermissionContextNotLongEnough)?; - let compressed_data = signature - .get(33..) - .ok_or(PrepareCallsError::PermissionContextNotLongEnough)?; - - let data = fastlz_rs::decompress_to_vec(compressed_data, None) - .map_err(PrepareCallsError::PermissionContextSignatureDecompression)?; match *mode { MODE_USE => { + let _permission_id: B256 = signature + .get(1..33) + .ok_or(PrepareCallsError::PermissionContextNotLongEnough)? + .try_into() // this error shouldn't happen + .map_err(|_| PrepareCallsError::PermissionContextNotLongEnough)?; + // TODO compressed data next + // https://github.com/rhinestonewtf/module-sdk/blob/18ef7ca998c0d0a596572f18575e1b4967d9227b/src/module/smart-sessions/usage.ts#L221 // We aren't implementing this currently because it doesn't return the needed value (enableSessionData) Err(PrepareCallsError::PermissionContextUnsupportedModeUse) } MODE_ENABLE | MODE_UNSAFE_ENABLE => { + let compressed_data = signature + .get(33..) + .ok_or(PrepareCallsError::PermissionContextNotLongEnough)?; + + let data = fastlz_rs::decompress_to_vec(compressed_data, None) + .map_err(PrepareCallsError::PermissionContextSignatureDecompression)?; + let enableSessionSigCall { session: enable_session, signature: _, @@ -439,6 +442,15 @@ pub fn decode_smart_session_signature( let validator = Address::from_slice(validator); let permission_enable_sig = permission_enable_sig.to_vec().into(); + let permission_id = keccak256( + ( + &enable_session.sessionToEnable.sessionValidator, + &enable_session.sessionToEnable.sessionValidatorInitData, + &enable_session.sessionToEnable.salt, + ) + .abi_encode_params(), + ); + Ok(DecodedSmartSessionSignature { permission_id, enable_session_data: EnableSessionData { @@ -484,7 +496,7 @@ where let signature = if session_enabled { encode_use_signature(permission_id, signature)? } else { - encode_enable_signature(permission_id, account_type, signature, enable_session_data)? + encode_enable_signature(account_type, signature, enable_session_data)? }; Ok(signature) @@ -543,7 +555,6 @@ fn encode_enable_signature_before_compress( } fn encode_enable_signature( - permission_id: FixedBytes<32>, account_type: AccountType, signature: Vec, enable_session_data: EnableSessionData, @@ -561,7 +572,7 @@ fn encode_enable_signature( )) })?, ); - Ok((FixedBytes::from(MODE_ENABLE), permission_id, compressed) + Ok((FixedBytes::from(MODE_ENABLE), compressed) .abi_encode_packed() .into()) } @@ -717,7 +728,6 @@ mod tests { fn test_encode_enable_signature() { assert_eq!( encode_enable_signature( - fixed_bytes!("2ec3eb29f3b075c8fed3fb0585947b5f1ae50c2fbe2f8274918bed889f69e342"), AccountType::Safe, bytes!("00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000041e8b94748580ca0b4993c9a1b86b5be851bfc076ff5ce3a1ff65bf16392acfcb800f9b4f1aef1555c7fce5599fffb17e7c635502154a0333ba21f3ae491839af51c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041e8b94748580ca0b4993c9a1b86b5be851bfc076ff5ce3a1ff65bf16392acfcb800f9b4f1aef1555c7fce5599fffb17e7c635502154a0333ba21f3ae491839af51c00000000000000000000000000000000000000000000000000000000000000").to_vec(), EnableSessionData { @@ -754,7 +764,7 @@ mod tests { validator: address!("9388056f9cecfa536e70649154db93485a1f3448"), } ).unwrap(), - bytes!("012ec3eb29f3b075c8fed3fb0585947b5f1ae50c2fbe2f8274918bed889f69e3420000e015000040e0151e0104c0e0151fe018000080e0162100e0e0151f0004e0151e020000012003e011001f014a3464b2d184c4b8517d7f2f59bab7e6269b6aa524e268fcd1eec34a9c8e2702d7389fe0033c12207b90941d9cff79a750c1e5c05ddaa17ea01be0041fe00a0001c031e00a14e02100010120e0152b0001e1169f0001e1179f1f2b02001b60aa8eb31e11c41279f6a102026edeeb848ec600bae0435ac2bccb870bc2ef2db5e215fac4dec876f4e0158ae02d00e016bf0100602003e05300e2151f21f203efef39a12007e01c00132e65bafa07238666c3b239e94f32dad3cdd6498de01638e017dfe0189fe0035f139a6c4974dce237e01ff35c602ca9555a3c0fa5efe0031fe00a00e1177fe0045f0366f864d5e00a43e013001f559388056f9cecfa536e70649154db93485a1f3448f0c9cba469e26f15ae4c091f8ff1b474b48673bb75d32e7e360391cb6e6db11c931dcc81986a86b380fcd48015464b5f504fd5fa527fd9437e46ea75098adce216c81fe01371e004000001e4175fe004dfe00a000002e00a13e00300e1173fe3177f1f41e8b94748580ca0b4993c9a1b86b5be851bfc076ff5ce3a1ff65bf16392acfc1fb800f9b4f1aef1555c7fce5599fffb17e7c635502154a0333ba21f3ae491839a01f51ce0038de02900e0587f"), + bytes!("010000e015000040e0151e0104c0e0151fe018000080e0162100e0e0151f0004e0151e020000012003e011001f014a3464b2d184c4b8517d7f2f59bab7e6269b6aa524e268fcd1eec34a9c8e2702d7389fe0033c12207b90941d9cff79a750c1e5c05ddaa17ea01be0041fe00a0001c031e00a14e02100010120e0152b0001e1169f0001e1179f1f2b02001b60aa8eb31e11c41279f6a102026edeeb848ec600bae0435ac2bccb870bc2ef2db5e215fac4dec876f4e0158ae02d00e016bf0100602003e05300e2151f21f203efef39a12007e01c00132e65bafa07238666c3b239e94f32dad3cdd6498de01638e017dfe0189fe0035f139a6c4974dce237e01ff35c602ca9555a3c0fa5efe0031fe00a00e1177fe0045f0366f864d5e00a43e013001f559388056f9cecfa536e70649154db93485a1f3448f0c9cba469e26f15ae4c091f8ff1b474b48673bb75d32e7e360391cb6e6db11c931dcc81986a86b380fcd48015464b5f504fd5fa527fd9437e46ea75098adce216c81fe01371e004000001e4175fe004dfe00a000002e00a13e00300e1173fe3177f1f41e8b94748580ca0b4993c9a1b86b5be851bfc076ff5ce3a1ff65bf16392acfc1fb800f9b4f1aef1555c7fce5599fffb17e7c635502154a0333ba21f3ae491839a01f51ce0038de02900e0587f"), ); } } From 914377c956a50d372d19ed2c2616b6c4a7b0699e Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Wed, 30 Oct 2024 10:42:57 -0400 Subject: [PATCH 3/5] fix: range offset --- src/handlers/wallet/prepare_calls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/wallet/prepare_calls.rs b/src/handlers/wallet/prepare_calls.rs index c4933626..b05dae71 100644 --- a/src/handlers/wallet/prepare_calls.rs +++ b/src/handlers/wallet/prepare_calls.rs @@ -417,7 +417,7 @@ pub fn decode_smart_session_signature( } MODE_ENABLE | MODE_UNSAFE_ENABLE => { let compressed_data = signature - .get(33..) + .get(1..) .ok_or(PrepareCallsError::PermissionContextNotLongEnough)?; let data = fastlz_rs::decompress_to_vec(compressed_data, None) From e7828f4fd70e858369d859e446bf43e89d38f719 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Wed, 30 Oct 2024 12:02:32 -0400 Subject: [PATCH 4/5] chore: bump yttrium --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7c748cbc..2f785995 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9738,7 +9738,7 @@ dependencies = [ [[package]] name = "yttrium" version = "0.1.0" -source = "git+https://github.com/reown-com/yttrium.git#983d5b98b74cf2ee89dc18f4a022b480c6da7059" +source = "git+https://github.com/reown-com/yttrium.git?branch=fix/smart-session-function-name#5b77515d9b8b10e2b7400608db69328067b3df17" dependencies = [ "alloy", "alloy-provider", diff --git a/Cargo.toml b/Cargo.toml index 2844fee6..9053e3c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ build = "build.rs" [dependencies] wc = { git = "https://github.com/WalletConnect/utils-rs.git", tag = "v0.9.0", features = ["alloc", "analytics", "future", "http", "metrics", "geoip", "geoblock", "rate_limit"] } relay_rpc = { git = "https://github.com/WalletConnect/WalletConnectRust.git", tag = "v0.32.0", features = ["cacao"] } -yttrium = { git = "https://github.com/reown-com/yttrium.git" } +yttrium = { git = "https://github.com/reown-com/yttrium.git", branch = "fix/smart-session-function-name" } # Async async-trait = "0.1.82" From 3506a7f25e2fe1bbf5607fc7886880ef6b523f20 Mon Sep 17 00:00:00 2001 From: Max Kalashnikoff Date: Thu, 31 Oct 2024 10:23:07 +0100 Subject: [PATCH 5/5] fix: removing yttrium branch and fixing clippy --- Cargo.lock | 482 ++++++++++++++------------- Cargo.toml | 2 +- src/handlers/wallet/prepare_calls.rs | 6 +- 3 files changed, 248 insertions(+), 242 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2f785995..b3776044 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -137,9 +137,9 @@ dependencies = [ [[package]] name = "alloy-chains" -version = "0.1.40" +version = "0.1.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4932d790c723181807738cf1ac68198ab581cd699545b155601332541ee47bd" +checksum = "c660915971620592abe2c292c859957eb60e73a60c0eba34a6793eea60512cff" dependencies = [ "alloy-primitives", "num_enum", @@ -182,9 +182,9 @@ dependencies = [ [[package]] name = "alloy-core" -version = "0.8.8" +version = "0.8.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a54c7158ea4a394bef220d82d8fdd412fb9b1ca2d6024db539070b7bc01b6401" +checksum = "b72bf30967a232bec83809bea1623031f6285a013096229330c68c406192a4ca" dependencies = [ "alloy-dyn-abi", "alloy-json-abi", @@ -195,9 +195,9 @@ dependencies = [ [[package]] name = "alloy-dyn-abi" -version = "0.8.8" +version = "0.8.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6228abfc751a29cde117b0879b805a3e0b3b641358f063272c83ca459a56886" +checksum = "f5228b189b18b85761340dc9eaac0141148a8503657b36f9bc3a869413d987ca" dependencies = [ "alloy-json-abi", "alloy-primitives", @@ -264,9 +264,9 @@ dependencies = [ [[package]] name = "alloy-json-abi" -version = "0.8.8" +version = "0.8.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d46eb5871592c216d39192499c95a99f7175cb94104f88c307e6dc960676d9f1" +checksum = "31a0f0d51db8a1a30a4d98a9f90e090a94c8f44cb4d9eafc7e03aa6d00aae984" dependencies = [ "alloy-primitives", "alloy-sol-type-parser", @@ -340,9 +340,9 @@ dependencies = [ [[package]] name = "alloy-primitives" -version = "0.8.8" +version = "0.8.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38f35429a652765189c1c5092870d8360ee7b7769b09b06d89ebaefd34676446" +checksum = "8edae627382349b56cd6a7a2106f4fd69b243a9233e560c55c2e03cabb7e1d3c" dependencies = [ "alloy-rlp", "bytes", @@ -394,8 +394,8 @@ dependencies = [ "futures", "futures-utils-wasm", "lru", - "pin-project 1.1.6", - "reqwest 0.12.8", + "pin-project 1.1.7", + "reqwest 0.12.9", "serde", "serde_json", "thiserror", @@ -406,9 +406,9 @@ dependencies = [ [[package]] name = "alloy-rlp" -version = "0.3.8" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26154390b1d205a4a7ac7352aa2eb4f81f391399d4e2f546fb81a2f8bb383f62" +checksum = "da0822426598f95e45dd1ea32a738dac057529a709ee645fcc516ffa4cbde08f" dependencies = [ "alloy-rlp-derive", "arrayvec", @@ -417,13 +417,13 @@ dependencies = [ [[package]] name = "alloy-rlp-derive" -version = "0.3.8" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d0f2d905ebd295e7effec65e5f6868d153936130ae718352771de3e7d03c75c" +checksum = "2b09cae092c27b6f1bde952653a22708691802e57bfef4a2973b80bea21efd3f" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -436,8 +436,8 @@ dependencies = [ "alloy-transport", "alloy-transport-http", "futures", - "pin-project 1.1.6", - "reqwest 0.12.8", + "pin-project 1.1.7", + "reqwest 0.12.9", "serde", "serde_json", "tokio", @@ -608,23 +608,23 @@ dependencies = [ [[package]] name = "alloy-sol-macro" -version = "0.8.8" +version = "0.8.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b2395336745358cc47207442127c47c63801a7065ecc0aa928da844f8bb5576" +checksum = "841eabaa4710f719fddbc24c95d386eae313f07e6da4babc25830ee37945be0c" dependencies = [ "alloy-sol-macro-expander", "alloy-sol-macro-input", "proc-macro-error2", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] name = "alloy-sol-macro-expander" -version = "0.8.8" +version = "0.8.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ed5047c9a241df94327879c2b0729155b58b941eae7805a7ada2e19436e6b39" +checksum = "6672337f19d837b9f7073c45853aeb528ed9f7dd6a4154ce683e9e5cb7794014" dependencies = [ "alloy-json-abi", "alloy-sol-macro-input", @@ -632,35 +632,35 @@ dependencies = [ "heck 0.5.0", "indexmap 2.6.0", "proc-macro-error2", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", "syn-solidity", "tiny-keccak", ] [[package]] name = "alloy-sol-macro-input" -version = "0.8.8" +version = "0.8.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dee02a81f529c415082235129f0df8b8e60aa1601b9c9298ffe54d75f57210b" +checksum = "0dff37dd20bfb118b777c96eda83b2067f4226d2644c5cfa00187b3bc01770ba" dependencies = [ "alloy-json-abi", "const-hex", "dunce", "heck 0.5.0", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "serde_json", - "syn 2.0.82", + "syn 2.0.85", "syn-solidity", ] [[package]] name = "alloy-sol-type-parser" -version = "0.8.8" +version = "0.8.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f631f0bd9a9d79619b27c91b6b1ab2c4ef4e606a65192369a1ee05d40dcf81cc" +checksum = "5b853d42292dbb159671a3edae3b2750277ff130f32b726fe07dc2b17aa6f2b5" dependencies = [ "serde", "winnow", @@ -668,9 +668,9 @@ dependencies = [ [[package]] name = "alloy-sol-types" -version = "0.8.8" +version = "0.8.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2841af22d99e2c0f82a78fe107b6481be3dd20b89bfb067290092794734343a" +checksum = "aa828bb1b9a6dc52208fbb18084fb9ce2c30facc2bfda6a5d922349b4990354f" dependencies = [ "alloy-json-abi", "alloy-primitives", @@ -706,7 +706,7 @@ checksum = "a944f5310c690b62bbb3e7e5ce34527cbd36b2d18532a797af123271ce595a49" dependencies = [ "alloy-json-rpc", "alloy-transport", - "reqwest 0.12.8", + "reqwest 0.12.9", "serde_json", "tower 0.5.1", "tracing", @@ -749,9 +749,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.90" +version = "1.0.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37bf3594c4c988a53154954629820791dde498571819ae4ca50ca811e060cc95" +checksum = "c042108f3ed77fd83760a5fd79b53be043192bb3b9dba91d8c574c0ada7850c8" [[package]] name = "arc-swap" @@ -837,7 +837,7 @@ checksum = "7abe79b0e4288889c4574159ab790824d0033b9fdcb2a112a3182fac2e514565" dependencies = [ "num-bigint", "num-traits", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "syn 1.0.109", ] @@ -942,7 +942,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "726535892e8eae7e70657b4c8ea93d26b8553afb1ce617caee529ef96d7dee6c" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "syn 1.0.109", "synstructure 0.12.6", @@ -954,9 +954,9 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "965c2d33e53cb6b267e148a4cb0760bc01f4904c1cd4bb4002a085bb016d1490" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", "synstructure 0.13.1", ] @@ -966,7 +966,7 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2777730b2039ac0f95f093556e61b6d26cebed5393ca6f152717777cec3a42ed" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "syn 1.0.109", ] @@ -977,9 +977,9 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7b18050c2cd6fe86c3a76584ef5e0baf286d038cda203eb6223df2cc413565f7" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -1043,9 +1043,9 @@ version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -1054,9 +1054,9 @@ version = "0.1.83" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "721cae7de5c34fbb2acd27e21e6d2cf7b886dce0c27388d46c4e6c47ea4318dd" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -1131,9 +1131,9 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c87f3f15e7794432337fc718554eaa4dc8f04c9677a950ffe366f20a162ae42" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -1144,9 +1144,9 @@ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" [[package]] name = "aws-config" -version = "1.5.8" +version = "1.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7198e6f03240fdceba36656d8be440297b6b82270325908c7381f37d826a74f6" +checksum = "2d6448cfb224dd6a9b9ac734f58622dd0d4751f3589f3b777345745f46b2eb14" dependencies = [ "aws-credential-types", "aws-runtime", @@ -1212,9 +1212,9 @@ dependencies = [ [[package]] name = "aws-sdk-kms" -version = "1.47.0" +version = "1.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "564a597a3c71a957d60a2e4c62c93d78ee5a0d636531e15b760acad983a5c18e" +checksum = "2afbd208dabc6785946d4ef2444eb1f54fe0aaf0f62f2a4f9a9e9c303aeff0be" dependencies = [ "aws-credential-types", "aws-runtime", @@ -1234,11 +1234,10 @@ dependencies = [ [[package]] name = "aws-sdk-s3" -version = "1.57.0" +version = "1.58.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8888c238bf93c77c5df8274b3999fd7fc1bb3fb658616f40dfde9e4fcd9efd94" +checksum = "0656a79cf5e6ab0d4bb2465cd750a7a2fd7ea26c062183ed94225f5782e22365" dependencies = [ - "ahash", "aws-credential-types", "aws-runtime", "aws-sigv4", @@ -1269,9 +1268,9 @@ dependencies = [ [[package]] name = "aws-sdk-sso" -version = "1.46.0" +version = "1.47.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0dc2faec3205d496c7e57eff685dd944203df7ce16a4116d0281c44021788a7b" +checksum = "a8776850becacbd3a82a4737a9375ddb5c6832a51379f24443a98e61513f852c" dependencies = [ "aws-credential-types", "aws-runtime", @@ -1291,9 +1290,9 @@ dependencies = [ [[package]] name = "aws-sdk-ssooidc" -version = "1.47.0" +version = "1.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c93c241f52bc5e0476e259c953234dab7e2a35ee207ee202e86c0095ec4951dc" +checksum = "0007b5b8004547133319b6c4e87193eee2a0bcb3e4c18c75d09febe9dab7b383" dependencies = [ "aws-credential-types", "aws-runtime", @@ -1313,9 +1312,9 @@ dependencies = [ [[package]] name = "aws-sdk-sts" -version = "1.46.0" +version = "1.47.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b259429be94a3459fa1b00c5684faee118d74f9577cc50aebadc36e507c63b5f" +checksum = "9fffaa356e7f1c725908b75136d53207fa714e348f365671df14e95a60530ad3" dependencies = [ "aws-credential-types", "aws-runtime", @@ -1336,9 +1335,9 @@ dependencies = [ [[package]] name = "aws-sigv4" -version = "1.2.4" +version = "1.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc8db6904450bafe7473c6ca9123f88cc11089e41a025408f992db4e22d3be68" +checksum = "5619742a0d8f253be760bfbb8e8e8368c69e3587e4637af5754e488a611499b1" dependencies = [ "aws-credential-types", "aws-smithy-eventstream", @@ -1376,9 +1375,9 @@ dependencies = [ [[package]] name = "aws-smithy-checksums" -version = "0.60.12" +version = "0.60.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "598b1689d001c4d4dc3cb386adb07d37786783aee3ac4b324bcadac116bf3d23" +checksum = "ba1a71073fca26775c8b5189175ea8863afb1c9ea2cceb02a5de5ad9dfbaa795" dependencies = [ "aws-smithy-http", "aws-smithy-types", @@ -1448,9 +1447,9 @@ dependencies = [ [[package]] name = "aws-smithy-runtime" -version = "1.7.2" +version = "1.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a065c0fe6fdbdf9f11817eb68582b2ab4aff9e9c39e986ae48f7ec576c6322db" +checksum = "be28bd063fa91fd871d131fc8b68d7cd4c5fa0869bea68daca50dcb1cbd76be2" dependencies = [ "aws-smithy-async", "aws-smithy-http", @@ -1492,9 +1491,9 @@ dependencies = [ [[package]] name = "aws-smithy-types" -version = "1.2.7" +version = "1.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "147100a7bea70fa20ef224a6bad700358305f5dc0f84649c53769761395b355b" +checksum = "07c9cdc179e6afbf5d391ab08c85eac817b51c87e1892a5edb5f7bbdc64314b4" dependencies = [ "base64-simd", "bytes", @@ -1881,9 +1880,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.7.2" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "428d9aa8fbc0670b7b8d6030a7fadd0f86151cae55e4dbbece15f3780a3dfaf3" +checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da" dependencies = [ "serde", ] @@ -1998,6 +1997,12 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "cfg_aliases" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + [[package]] name = "chrono" version = "0.4.38" @@ -2409,9 +2414,9 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -2562,7 +2567,7 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "syn 1.0.109", ] @@ -2573,9 +2578,9 @@ version = "0.99.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5f33878137e4dafd7fa914ad4e259e18a4e8e532b9617a2d0150262bf53abfce" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -2593,9 +2598,9 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb7330aeadfbe296029522e6c40f315320aba36fc43a5b3632f3795348f3bd22" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", "unicode-xid 0.2.6", ] @@ -2668,9 +2673,9 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -2820,9 +2825,9 @@ dependencies = [ [[package]] name = "encoding_rs" -version = "0.8.34" +version = "0.8.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b45de904aa0b010bce2ab45264d0631681847fa7b6f2eaa7dab7619943bc4f59" +checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" dependencies = [ "cfg-if", ] @@ -2852,9 +2857,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1e6a265c649f3f5979b601d26f1d05ada116434c87741c9493cb56218f76cbc" dependencies = [ "heck 0.5.0", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -2872,7 +2877,7 @@ version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8958699f9359f0b04e691a13850d48b7de329138023876d07cbd024c2c820598" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "syn 1.0.109", ] @@ -2892,9 +2897,9 @@ version = "4.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0d28318a75d4aead5c4db25382e8ef717932d0346600cacae6357eb5941bc5ff" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -3041,7 +3046,7 @@ dependencies = [ "ethers-providers", "futures-util", "once_cell", - "pin-project 1.1.6", + "pin-project 1.1.7", "serde", "serde_json", "thiserror", @@ -3059,13 +3064,13 @@ dependencies = [ "ethers-etherscan", "eyre", "prettyplease", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "regex", "reqwest 0.11.27", "serde", "serde_json", - "syn 2.0.82", + "syn 2.0.85", "toml", "walkdir", ] @@ -3079,10 +3084,10 @@ dependencies = [ "const-hex", "ethers-contract-abigen", "ethers-core", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "serde_json", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -3107,7 +3112,7 @@ dependencies = [ "serde", "serde_json", "strum", - "syn 2.0.82", + "syn 2.0.85", "tempfile", "thiserror", "tiny-keccak", @@ -3175,7 +3180,7 @@ dependencies = [ "instant", "jsonwebtoken 8.3.0", "once_cell", - "pin-project 1.1.6", + "pin-project 1.1.7", "reqwest 0.11.27", "serde", "serde_json", @@ -3432,7 +3437,7 @@ name = "future" version = "0.1.0" source = "git+https://github.com/WalletConnect/utils-rs.git?tag=v0.14.1#bf8f50a711180afbf79b8c334c65b57886173d4b" dependencies = [ - "pin-project 1.1.6", + "pin-project 1.1.7", "thiserror", "tokio", "tokio-util", @@ -3444,7 +3449,7 @@ version = "0.1.0" source = "git+https://github.com/WalletConnect/utils-rs.git?tag=v0.9.0#e2bc55dd0e06f30471d39bfbaedc71362136b677" dependencies = [ "metrics 0.1.0", - "pin-project 1.1.6", + "pin-project 1.1.7", "thiserror", "tokio", "tokio-util", @@ -3522,9 +3527,9 @@ checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" [[package]] name = "futures-lite" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52527eb5074e35e9339c6b4e8d12600c7128b68fb25dcb9fa9dec18f7c25f3a5" +checksum = "3f1fa2f9765705486b33fd2acf1577f8ec449c2ba1f318ae5447697b7c08d210" dependencies = [ "futures-core", "pin-project-lite", @@ -3546,9 +3551,9 @@ version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -3568,7 +3573,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a8f2f12607f92c69b12ed746fabf9ca4f5c482cba46679c1a75b874ed7c26adb" dependencies = [ "futures-io", - "rustls 0.23.15", + "rustls 0.23.16", "rustls-pki-types", ] @@ -3653,7 +3658,7 @@ dependencies = [ "once_cell", "prost", "prost-types", - "reqwest 0.12.8", + "reqwest 0.12.9", "secret-vault-value", "serde", "serde_json", @@ -3716,9 +3721,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f636605b743120a8d32ed92fc27b6cde1a769f8f936c065151eb66f88ded513c" dependencies = [ "proc-macro-error2", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -4165,7 +4170,7 @@ dependencies = [ "http 1.1.0", "hyper 1.5.0", "hyper-util", - "rustls 0.23.15", + "rustls 0.23.16", "rustls-native-certs 0.8.0", "rustls-pki-types", "tokio", @@ -4217,9 +4222,9 @@ dependencies = [ [[package]] name = "hyper-util" -version = "0.1.9" +version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41296eb09f183ac68eec06e03cdbea2e759633d4067b2f6552fc2e009bcad08b" +checksum = "df2dcfbe0677734ab2f3ffa7fa7bfd4706bfdc1ef393f2ee30184aed67e631b4" dependencies = [ "bytes", "futures-channel", @@ -4364,7 +4369,7 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "11d7a9f6330b71fea57921c9b61c47ee6e84f72d394754eff6163ae67e7395eb" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "syn 1.0.109", ] @@ -4494,7 +4499,7 @@ dependencies = [ "libp2p", "libp2p-tls 0.3.0", "metrics 0.23.0", - "pin-project 1.1.6", + "pin-project 1.1.7", "quinn 0.10.2", "quinn-proto 0.10.6", "rand", @@ -4695,9 +4700,9 @@ dependencies = [ [[package]] name = "libm" -version = "0.2.8" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058" +checksum = "8355be11b20d696c8f18f6cc018c4e372165b1fa8126cef092399c9951984ffa" [[package]] name = "libp2p" @@ -4724,7 +4729,7 @@ dependencies = [ "libp2p-tcp", "libp2p-upnp", "multiaddr", - "pin-project 1.1.6", + "pin-project 1.1.7", "rw-stream-sink", "thiserror", ] @@ -4769,7 +4774,7 @@ dependencies = [ "multistream-select", "once_cell", "parking_lot", - "pin-project 1.1.6", + "pin-project 1.1.7", "quick-protobuf", "rand", "rw-stream-sink", @@ -4917,7 +4922,7 @@ dependencies = [ "quinn 0.11.5", "rand", "ring 0.17.8", - "rustls 0.23.15", + "rustls 0.23.16", "socket2", "thiserror", "tokio", @@ -4995,7 +5000,7 @@ dependencies = [ "libp2p-identity", "rcgen", "ring 0.17.8", - "rustls 0.23.15", + "rustls 0.23.16", "rustls-webpki 0.101.7", "thiserror", "x509-parser 0.16.0", @@ -5175,7 +5180,7 @@ dependencies = [ "once_cell", "opentelemetry", "opentelemetry-prometheus", - "pin-project 1.1.6", + "pin-project 1.1.7", "prometheus", "smallvec", ] @@ -5289,13 +5294,13 @@ dependencies = [ [[package]] name = "multihash" -version = "0.19.1" +version = "0.19.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "076d548d76a0e2a0d4ab471d0b1c36c577786dfc4471242035d97a12a735c492" +checksum = "cc41f430805af9d1cf4adae4ed2149c759b877b01d909a1f40256188d09345d2" dependencies = [ "core2", "serde", - "unsigned-varint 0.7.2", + "unsigned-varint 0.8.0", ] [[package]] @@ -5307,7 +5312,7 @@ dependencies = [ "bytes", "futures", "log", - "pin-project 1.1.6", + "pin-project 1.1.7", "smallvec", "unsigned-varint 0.7.2", ] @@ -5587,9 +5592,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af1844ef2428cc3e1cb900be36181049ef3d3193c63e43026cfe202983b27a56" dependencies = [ "proc-macro-crate", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -5645,7 +5650,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "003b2be5c6c53c1cfeb0a238b8a1c3915cd410feb684457a36c10038f764bb1c" dependencies = [ "bytes", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "syn 1.0.109", ] @@ -5671,9 +5676,9 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -5812,7 +5817,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d830939c76d294956402033aee57a6da7b438f2294eb94864c37b0569053a42c" dependencies = [ "proc-macro-crate", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "syn 1.0.109", ] @@ -5870,9 +5875,9 @@ version = "42.0.0" source = "git+https://github.com/WalletConnect/arrow-rs.git?rev=99a1cc3#99a1cc36bce8d55e411dd441f2219d0689a82bee" dependencies = [ "parquet", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -6013,9 +6018,9 @@ checksum = "3444646e286606587e49f3bcf1679b8cef1dc2c5ecc29ddacaffc305180d464b" dependencies = [ "phf_generator", "phf_shared 0.11.2", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -6047,11 +6052,11 @@ dependencies = [ [[package]] name = "pin-project" -version = "1.1.6" +version = "1.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf123a161dde1e524adf36f90bc5d8d3462824a9c43553ad07a8183161189ec" +checksum = "be57f64e946e500c8ee36ef6331845d40a93055567ec57e8fae13efd33759b95" dependencies = [ - "pin-project-internal 1.1.6", + "pin-project-internal 1.1.7", ] [[package]] @@ -6060,27 +6065,27 @@ version = "0.4.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "851c8d0ce9bebe43790dedfc86614c23494ac9f423dd618d3a61fc693eafe61e" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "syn 1.0.109", ] [[package]] name = "pin-project-internal" -version = "1.1.6" +version = "1.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4502d8515ca9f32f1fb543d987f63d95a14934883db45bdb48060b6b69257f8" +checksum = "3c0f5fad0874fc7abcd4d750e76917eaebbecaa2c20bde22e1dbeeba8beb758c" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] name = "pin-project-lite" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" +checksum = "915a1e146535de9163f3987b8944ed8cf49a18bb0056bcebcdcece385cece4ff" [[package]] name = "pin-utils" @@ -6213,12 +6218,12 @@ checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" [[package]] name = "prettyplease" -version = "0.2.24" +version = "0.2.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "910d41a655dac3b764f1ade94821093d3610248694320cd072303a8eedcf221d" +checksum = "64d1ec885c64d0457d564db4ec299b2dae3f9c02808b8ad9c3a089c591b18033" dependencies = [ - "proc-macro2 1.0.88", - "syn 2.0.82", + "proc-macro2 1.0.89", + "syn 2.0.85", ] [[package]] @@ -6251,7 +6256,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" dependencies = [ "proc-macro-error-attr", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "syn 1.0.109", "version_check", @@ -6263,7 +6268,7 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "version_check", ] @@ -6274,7 +6279,7 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "96de42df36bb9bba5542fe9f1a054b8cc87e172759a1868aa05c1f3acc89dfc5" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", ] @@ -6285,9 +6290,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "11ec05c52be0a07b08061f7dd003e7d7092e0472bc731b4af7bb1ef876109802" dependencies = [ "proc-macro-error-attr2", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -6301,9 +6306,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.88" +version = "1.0.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c3a7fc5db1e57d5a779a352c8cdb57b29aa4c40cc69c3a68a7fedc815fbf2f9" +checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e" dependencies = [ "unicode-ident", ] @@ -6341,9 +6346,9 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "440f724eba9f6996b75d63681b0a92b06947f1457076d503a4d2e2c8f56442b8" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -6398,9 +6403,9 @@ checksum = "e9552f850d5f0964a4e4d0bf306459ac29323ddfbae05e35a7c0d35cb0803cc5" dependencies = [ "anyhow", "itertools 0.13.0", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -6488,9 +6493,9 @@ dependencies = [ "futures-io", "pin-project-lite", "quinn-proto 0.11.8", - "quinn-udp 0.5.5", + "quinn-udp 0.5.6", "rustc-hash 2.0.0", - "rustls 0.23.15", + "rustls 0.23.16", "socket2", "thiserror", "tokio", @@ -6525,7 +6530,7 @@ dependencies = [ "rand", "ring 0.17.8", "rustc-hash 2.0.0", - "rustls 0.23.15", + "rustls 0.23.16", "slab", "thiserror", "tinyvec", @@ -6547,10 +6552,11 @@ dependencies = [ [[package]] name = "quinn-udp" -version = "0.5.5" +version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fe68c2e9e1a1234e218683dbdf9f9dfcb094113c5ac2b938dfcb9bab4c4140b" +checksum = "e346e016eacfff12233c243718197ca12f148c84e1e84268a896699b41c71780" dependencies = [ + "cfg_aliases", "libc", "once_cell", "socket2", @@ -6573,7 +6579,7 @@ version = "1.0.37" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", ] [[package]] @@ -6720,9 +6726,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.11.0" +version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38200e5ee88914975b69f657f0801b6f6dccafd44fd9326302a4aaeecfacb1d8" +checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" dependencies = [ "aho-corasick", "memchr", @@ -6841,9 +6847,9 @@ dependencies = [ [[package]] name = "reqwest" -version = "0.12.8" +version = "0.12.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f713147fbe92361e52392c73b8c9e48c04c6625bce969ef54dc901e58e042a7b" +checksum = "a77c62af46e79de0a562e1a9849205ffcb7fc1238876e9bd743357570e04046f" dependencies = [ "async-compression", "base64 0.22.1", @@ -6869,7 +6875,7 @@ dependencies = [ "percent-encoding", "pin-project-lite", "quinn 0.11.5", - "rustls 0.23.15", + "rustls 0.23.16", "rustls-native-certs 0.8.0", "rustls-pemfile 2.2.0", "rustls-pki-types", @@ -6978,7 +6984,7 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e33d7b2abe0c340d8797fe2907d3f20d3b5ea5908683618bfe80df7f621f672a" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "syn 1.0.109", ] @@ -7050,7 +7056,7 @@ dependencies = [ "rand_core", "regex", "relay_rpc", - "reqwest 0.12.8", + "reqwest 0.12.9", "rmp-serde", "serde", "serde-aux 3.1.0", @@ -7206,9 +7212,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.37" +version = "0.38.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8acb788b847c24f28525660c4d7758620a7210875711f79e7f663cc152726811" +checksum = "aa260229e6538e52293eeb577aabd09945a09d6d9cc0fc550ed7529056c2e32a" dependencies = [ "bitflags 2.6.0", "errno", @@ -7231,9 +7237,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.15" +version = "0.23.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fbb44d7acc4e873d613422379f69f237a1b141928c02f6bc6ccfddddc2d7993" +checksum = "eee87ff5d9b36712a58574e12e9f0ea80f915a5b0ac518d322b24a465617925e" dependencies = [ "log", "once_cell", @@ -7339,7 +7345,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d8c9026ff5d2f23da5e45bbc283f156383001bfb09c4e44256d02c1a685fe9a1" dependencies = [ "futures", - "pin-project 1.1.6", + "pin-project 1.1.7", "static_assertions", ] @@ -7369,26 +7375,26 @@ dependencies = [ [[package]] name = "scale-info" -version = "2.11.3" +version = "2.11.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eca070c12893629e2cc820a9761bedf6ce1dcddc9852984d1dc734b8bd9bd024" +checksum = "1aa7ffc1c0ef49b0452c6e2986abf2b07743320641ffd5fc63d552458e3b779b" dependencies = [ "cfg-if", - "derive_more 0.99.18", + "derive_more 1.0.0", "parity-scale-codec", "scale-info-derive", ] [[package]] name = "scale-info-derive" -version = "2.11.3" +version = "2.11.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d35494501194174bda522a32605929eefc9ecf7e0a326c26db1fdd85881eb62" +checksum = "46385cc24172cf615450267463f937c10072516359b3ff1cb24228a4a08bf951" dependencies = [ "proc-macro-crate", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 1.0.109", + "syn 2.0.85", ] [[package]] @@ -7539,9 +7545,9 @@ checksum = "a3f0bf26fd526d2a95683cd0f87bf103b8539e2ca1ef48ce002d67aad59aa0b4" [[package]] name = "serde" -version = "1.0.210" +version = "1.0.214" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8e3592472072e6e22e0a54d5904d9febf8508f65fb8552499a1abc7d1078c3a" +checksum = "f55c3193aca71c12ad7890f1785d2b73e1b9f63a0bbc353c08ef26fe03fc56b5" dependencies = [ "serde_derive", ] @@ -7578,13 +7584,13 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.210" +version = "1.0.214" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f" +checksum = "de523f781f095e28fa605cdce0f8307e451cc0fd14e2eb4cd2e98a355b147766" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -7930,7 +7936,7 @@ version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ea40e2345eb2faa9e1e5e326db8c34711317d2b5e08d0d5741619048a803127" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "sqlx-core", "sqlx-macros-core", @@ -7948,7 +7954,7 @@ dependencies = [ "heck 0.4.1", "hex", "once_cell", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "serde", "serde_json", @@ -8115,10 +8121,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be" dependencies = [ "heck 0.5.0", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "rustversion", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -8164,32 +8170,32 @@ version = "1.0.109" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "unicode-ident", ] [[package]] name = "syn" -version = "2.0.82" +version = "2.0.85" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83540f837a8afc019423a8edb95b52a8effe46957ee402287f4292fae35be021" +checksum = "5023162dfcd14ef8f32034d8bcd4cc5ddc61ef7a247c024a33e24e1f24d21b56" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "unicode-ident", ] [[package]] name = "syn-solidity" -version = "0.8.8" +version = "0.8.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebfc1bfd06acc78f16d8fd3ef846bc222ee7002468d10a7dce8d703d6eab89a3" +checksum = "16320d4a2021ba1a32470b3759676114a918885e9800e68ad60f2c67969fba62" dependencies = [ "paste", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -8213,7 +8219,7 @@ version = "0.12.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "syn 1.0.109", "unicode-xid 0.2.6", @@ -8225,9 +8231,9 @@ version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -8341,27 +8347,27 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d506c7664333e246f564949bee4ed39062aa0f11918e6f5a95f553cdad65c274" dependencies = [ "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] name = "thiserror" -version = "1.0.64" +version = "1.0.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d50af8abc119fb8bb6dbabcfa89656f46f84aa0ac7688088608076ad2b459a84" +checksum = "5d11abd9594d9b38965ef50805c5e469ca9cc6f197f883f717e0269a3057b3d5" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.64" +version = "1.0.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08904e7672f5eb876eaaf87e0ce17857500934f4981c4a0ab2b4aa98baac7fc3" +checksum = "ae71770322cbd277e69d762a16c444af02aa0575ac0d174f0b9562d3b37f8602" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -8482,9 +8488,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.40.0" +version = "1.41.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2b070231665d27ad9ec9b8df639893f46727666c6767db40317fbe920a5d998" +checksum = "145f3413504347a2be84393cc8a7d2fb4d863b375909ea59f2158261aa258bbb" dependencies = [ "backtrace", "bytes", @@ -8504,9 +8510,9 @@ version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -8535,7 +8541,7 @@ version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4" dependencies = [ - "rustls 0.23.15", + "rustls 0.23.16", "rustls-pki-types", "tokio", ] @@ -8549,7 +8555,7 @@ dependencies = [ "bytes", "futures-core", "futures-sink", - "pin-project 1.1.6", + "pin-project 1.1.7", ] [[package]] @@ -8670,7 +8676,7 @@ dependencies = [ "hyper-timeout", "hyper-util", "percent-encoding", - "pin-project 1.1.6", + "pin-project 1.1.7", "prost", "rustls-native-certs 0.8.0", "rustls-pemfile 2.2.0", @@ -8693,7 +8699,7 @@ dependencies = [ "futures-core", "futures-util", "indexmap 1.9.3", - "pin-project 1.1.6", + "pin-project 1.1.7", "pin-project-lite", "rand", "slab", @@ -8781,9 +8787,9 @@ version = "0.1.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -8802,7 +8808,7 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2" dependencies = [ - "pin-project 1.1.6", + "pin-project 1.1.7", "tracing", ] @@ -9101,7 +9107,7 @@ dependencies = [ "if_chain", "lazy_static", "proc-macro-error", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", "regex", "syn 1.0.109", @@ -9114,7 +9120,7 @@ version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "111abfe30072511849c5910134e8baf8dc05de4c0e5903d681cbd5c9c4d611e3" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "syn 1.0.109", ] @@ -9224,9 +9230,9 @@ dependencies = [ "bumpalo", "log", "once_cell", - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", "wasm-bindgen-shared", ] @@ -9258,9 +9264,9 @@ version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "26c6ab57572f7a24a4985830b120de1594465e5d500f24afe89e16b4e833ef68" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -9273,9 +9279,9 @@ checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d" [[package]] name = "wasm-streams" -version = "0.4.1" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e072d4e72f700fb3443d8fe94a39315df013eef1104903cdb0a2abd322bbecd" +checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65" dependencies = [ "futures-util", "js-sys", @@ -9319,7 +9325,7 @@ dependencies = [ "futures", "metrics 0.23.0", "parking_lot", - "pin-project 1.1.6", + "pin-project 1.1.7", "smallvec", ] @@ -9738,7 +9744,7 @@ dependencies = [ [[package]] name = "yttrium" version = "0.1.0" -source = "git+https://github.com/reown-com/yttrium.git?branch=fix/smart-session-function-name#5b77515d9b8b10e2b7400608db69328067b3df17" +source = "git+https://github.com/reown-com/yttrium.git#7b5481458f1326b9755b0af9fe768296402f37ad" dependencies = [ "alloy", "alloy-provider", @@ -9747,7 +9753,7 @@ dependencies = [ "eyre", "getrandom", "hex", - "reqwest 0.12.8", + "reqwest 0.12.9", "serde", "serde_json", "thiserror", @@ -9771,9 +9777,9 @@ version = "0.7.35" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] @@ -9791,9 +9797,9 @@ version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ - "proc-macro2 1.0.88", + "proc-macro2 1.0.89", "quote 1.0.37", - "syn 2.0.82", + "syn 2.0.85", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 9053e3c3..2844fee6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ build = "build.rs" [dependencies] wc = { git = "https://github.com/WalletConnect/utils-rs.git", tag = "v0.9.0", features = ["alloc", "analytics", "future", "http", "metrics", "geoip", "geoblock", "rate_limit"] } relay_rpc = { git = "https://github.com/WalletConnect/WalletConnectRust.git", tag = "v0.32.0", features = ["cacao"] } -yttrium = { git = "https://github.com/reown-com/yttrium.git", branch = "fix/smart-session-function-name" } +yttrium = { git = "https://github.com/reown-com/yttrium.git" } # Async async-trait = "0.1.82" diff --git a/src/handlers/wallet/prepare_calls.rs b/src/handlers/wallet/prepare_calls.rs index b05dae71..bf9ea8fa 100644 --- a/src/handlers/wallet/prepare_calls.rs +++ b/src/handlers/wallet/prepare_calls.rs @@ -21,7 +21,7 @@ use url::Url; use uuid::Uuid; use wc::future::FutureExt; use yttrium::bundler::pimlico::paymaster::client::PaymasterClient; -use yttrium::erc7579::smart_sessions::ISmartSession::isSessionEnabledReturn; +use yttrium::erc7579::smart_sessions::ISmartSession::isPermissionEnabledReturn; use yttrium::erc7579::smart_sessions::{enableSessionSigCall, EnableSession, ISmartSession}; use yttrium::smart_accounts::account_address::AccountAddress; use yttrium::{ @@ -483,10 +483,10 @@ where N: Network, { let smart_sessions = ISmartSession::new(SMART_SESSIONS_ADDRESS, provider); - let isSessionEnabledReturn { + let isPermissionEnabledReturn { _0: session_enabled, } = smart_sessions - .isSessionEnabled(permission_id, address.to_address()) + .isPermissionEnabled(permission_id, address.to_address()) .call() .await .map_err(|e| {