Skip to content

Commit d55f2bf

Browse files
authored
Merge pull request #78 from reown-com/enable-6492-verification
Enable 6492 verification
2 parents d26cb4d + b6bbaa1 commit d55f2bf

File tree

16 files changed

+105
-89
lines changed

16 files changed

+105
-89
lines changed

Example/ExampleApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Shared/Signer/Signer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ final class Signer {
160160
var value: String
161161
var data: String
162162
}
163-
let params = try request.params.get([Tx].self).map { FfiTransaction(to: $0.to, value: $0.value, data: $0.data)}
163+
let params = try request.params.get([Tx].self).map { Execution(to: $0.to, value: $0.value, data: $0.data)}
164164
let prepareSendTransactions = try await WalletKit.instance.prepareSendTransactions(params, ownerAccount: ownerAccount)
165165

166166
let signer = ETHSigner(importAccount: importAccount)
@@ -179,7 +179,7 @@ final class Signer {
179179
}
180180

181181
let transactions = calls.map {
182-
FfiTransaction(
182+
Execution(
183183
to: $0.to!,
184184
value: $0.value ?? "0",
185185
data: $0.data ?? ""

Example/WalletApp/BusinessLayer/ChainAbstractionService.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class ChainAbstractionService {
2727
}
2828

2929
let privateKey: EthereumPrivateKey
30-
private let routeResponseAvailable: RouteResponseAvailable
30+
private let routeResponseAvailable: PrepareResponseAvailable
3131

32-
init(privateKey: EthereumPrivateKey, routeResponseAvailable: RouteResponseAvailable) {
32+
init(privateKey: EthereumPrivateKey, routeResponseAvailable: PrepareResponseAvailable) {
3333
self.privateKey = privateKey
3434
self.routeResponseAvailable = routeResponseAvailable
3535
}

Example/WalletApp/PresentationLayer/Wallet/CATransactionModal/CATransactionModule.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ final class CATransactionModule {
88
app: Application,
99
sessionRequest: Request,
1010
importAccount: ImportAccount,
11-
routeResponseAvailable: RouteResponseAvailable
11+
routeResponseAvailable: PrepareResponseAvailable
1212
) -> UIViewController {
1313
let router = CATransactionRouter(app: app)
1414
let presenter = CATransactionPresenter(sessionRequest: sessionRequest, importAccount: importAccount, routeResponseAvailable: routeResponseAvailable, router: router)

Example/WalletApp/PresentationLayer/Wallet/CATransactionModal/CATransactionPresenter.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class CATransactionPresenter: ObservableObject {
2222

2323

2424
private let sessionRequest: Request
25-
private let routeResponseAvailable: RouteResponseAvailable
25+
private let routeResponseAvailable: PrepareResponseAvailable
2626
let chainAbstractionService: ChainAbstractionService!
2727
var fundingFrom: [FundingMetadata] {
2828
return routeResponseAvailable.metadata.fundingFrom
@@ -42,7 +42,7 @@ final class CATransactionPresenter: ObservableObject {
4242
init(
4343
sessionRequest: Request,
4444
importAccount: ImportAccount,
45-
routeResponseAvailable: RouteResponseAvailable,
45+
routeResponseAvailable: PrepareResponseAvailable,
4646
router: CATransactionRouter
4747
) {
4848
self.sessionRequest = sessionRequest

Example/WalletApp/PresentationLayer/Wallet/Main/MainRouter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ final class MainRouter {
4242
.presentFullScreen(from: viewController, transparentBackground: true)
4343
}
4444

45-
func presentCATransaction(sessionRequest: Request, importAccount: ImportAccount, routeResponseAvailable: RouteResponseAvailable, context: VerifyContext?) {
45+
func presentCATransaction(sessionRequest: Request, importAccount: ImportAccount, routeResponseAvailable: PrepareResponseAvailable, context: VerifyContext?) {
4646
CATransactionModule.create(app: app, sessionRequest: sessionRequest, importAccount: importAccount, routeResponseAvailable: routeResponseAvailable)
4747
.present(from: viewController)
4848
}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ build_all:
2020
set -o pipefail && env NSUnbufferedIO=YES \
2121
xcodebuild \
2222
-scheme "WalletConnect-Package" \
23-
-destination "platform=iOS Simulator,name=iPhone 15,OS=17.5" \
23+
-destination "platform=iOS Simulator,name=iPhone 16,OS=18.1" \
2424
-derivedDataPath DerivedDataCache \
2525
-clonedSourcePackagesDirPath ../SourcePackagesCache \
2626
RELAY_HOST='$(RELAY_HOST)' \

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func buildYttriumWrapperTarget() -> Target {
2727
path: "Sources/YttriumWrapper"
2828
)
2929
} else {
30-
dependencies.append(.package(url: "https://github.com/reown-com/yttrium", .exact("0.4.8")))
30+
dependencies.append(.package(url: "https://github.com/reown-com/yttrium", .exact("0.5.1")))
3131
return .target(
3232
name: "YttriumWrapper",
3333
dependencies: [.product(name: "Yttrium", package: "yttrium")],
@@ -197,7 +197,7 @@ let package = Package(
197197
dependencies: ["WalletConnectPairing", "TestingUtils"]),
198198
.testTarget(
199199
name: "NotifyTests",
200-
dependencies: ["WalletConnectNotify", "TestingUtils"]),
200+
dependencies: ["WalletConnectNotify", "TestingUtils", "YttriumWrapper"]),
201201
.testTarget(
202202
name: "RelayerTests",
203203
dependencies: ["WalletConnectRelay", "WalletConnectUtils", "TestingUtils"]),

Sources/ReownWalletKit/SmartAccount/SafesManager.swift

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,16 @@ class SafesManager {
3434
))
3535
// use YttriumWrapper.Config.local() for local foundry node
3636

37-
let FfiAccountClientConfig = FfiAccountClientConfig(
38-
ownerAddress: ownerAccount.address,
39-
chainId: UInt64(ownerAccount.blockchain.reference)!,
40-
config: pimlicoSepolia,
41-
signerType: "PrivateKey",
42-
safe: true,
43-
privateKey: "ff89825a799afce0d5deaa079cdde227072ec3f62973951683ac8cc033092156")
44-
45-
let client = FfiAccountClient(config: FfiAccountClientConfig)
37+
// let FfiAccountClientConfig = FfiAccountClientConfig(
38+
// ownerAddress: ownerAccount.address,
39+
// chainId: UInt64(ownerAccount.blockchain.reference)!,
40+
// config: pimlicoSepolia,
41+
// signerType: "PrivateKey",
42+
// safe: true,
43+
// privateKey: "ff89825a799afce0d5deaa079cdde227072ec3f62973951683ac8cc033092156")
44+
45+
let client = FfiAccountClient(owner: ownerAccount.address, chainId: UInt64(ownerAccount.blockchain.reference)!, config: pimlicoSepolia)
46+
// FfiAccountClient(config: FfiAccountClientConfig)
4647

4748

4849
return client

0 commit comments

Comments
 (0)