Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monorepo #1

Merged
merged 51 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
3f8038d
add w3m
llbartekll Aug 16, 2024
e6dd8e0
savepoint
llbartekll Aug 21, 2024
e7a29f0
add SubscriptionsTracker
llbartekll Aug 21, 2024
b82a9b5
fix relay tests
llbartekll Aug 21, 2024
83b3bea
fix tests
llbartekll Aug 21, 2024
4df3bb5
resubscribe after disconnecting socket
llbartekll Aug 22, 2024
ec680e9
Add SocketStatusProvider
llbartekll Aug 23, 2024
40c85f3
fix build
llbartekll Aug 23, 2024
600b408
savepoint
llbartekll Aug 23, 2024
d1bbfe8
clean up tests
llbartekll Aug 23, 2024
4f7591e
test periodic reconnection
llbartekll Aug 23, 2024
c690a6c
Merge branch 'develop' of github.com:WalletConnect/WalletConnectSwift…
llbartekll Aug 23, 2024
8edd4a1
fix tests
llbartekll Aug 23, 2024
b184ab7
fix bug when url does not have scheme
llbartekll Aug 24, 2024
cf9c5cf
Merge pull request #1408 from WalletConnect/verify-bug-fix
llbartekll Aug 24, 2024
0bc1bae
Set User Agent
llbartekll Aug 24, 2024
6df02aa
fix reconnection issue
llbartekll Aug 26, 2024
daf5258
rename method
llbartekll Aug 26, 2024
2ed2d17
add init event
llbartekll Aug 27, 2024
9b6eb1a
savepoint
llbartekll Aug 26, 2024
5a92b97
Added Flutter Internal wallet so testers can test Link Mode
quetool Aug 27, 2024
bc10874
savepoint
llbartekll Aug 27, 2024
2cb3cb2
add more tests
llbartekll Aug 27, 2024
d81ec99
update dispatcher
llbartekll Aug 27, 2024
086116a
update socket connection
llbartekll Aug 27, 2024
0cc1ec8
Merge branch 'develop' of github.com:WalletConnect/WalletConnectSwift…
llbartekll Aug 27, 2024
fd8535d
Merge branch 'develop' of github.com:WalletConnect/WalletConnectSwift…
llbartekll Aug 28, 2024
fc606c2
Merge branch 'requests-life-cycle' of github.com:WalletConnect/Wallet…
llbartekll Aug 28, 2024
3d99108
update package
llbartekll Aug 28, 2024
be1f21c
integrate w3m snapshot tests
llbartekll Aug 28, 2024
6ecf150
delete sync and chat
llbartekll Aug 28, 2024
edc4db6
savepoint
llbartekll Aug 28, 2024
661b295
Removed production wallet
quetool Aug 28, 2024
1c6d24d
Merge pull request #1410 from WalletConnect/chores/add_flutter_intern…
quetool Aug 28, 2024
958de26
renam w3m
llbartekll Aug 28, 2024
2d15742
rename
llbartekll Aug 29, 2024
e8b9213
savepoint
llbartekll Aug 29, 2024
8ffc718
rename walletkit
llbartekll Aug 30, 2024
8db32c9
savepoint
llbartekll Aug 30, 2024
29b88f9
savepoint
llbartekll Aug 30, 2024
892c7b2
Merge branch 'develop' of github.com:WalletConnect/WalletConnectSwift…
llbartekll Aug 30, 2024
c3bdae8
savepoint
llbartekll Aug 30, 2024
c331b8c
savepoint
llbartekll Aug 30, 2024
7f47b9c
savepoint
llbartekll Aug 30, 2024
51dd4f7
savepoint
llbartekll Sep 2, 2024
c4a8c3f
rename router, remove wcm
llbartekll Sep 4, 2024
3514cf1
update readme
llbartekll Sep 4, 2024
f1377be
test build
llbartekll Sep 4, 2024
8b47d57
remove dependency
llbartekll Sep 4, 2024
75ba790
savepoint
llbartekll Sep 4, 2024
ad15cfb
remove w3i, update privacy info
llbartekll Sep 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
45 changes: 0 additions & 45 deletions .github/workflows/deploy_pages.yml

This file was deleted.

54 changes: 54 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/RelayerTests.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1540"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "RelayerTests"
BuildableName = "RelayerTests"
BlueprintName = "RelayerTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
67 changes: 67 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/Web3Modal.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1540"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Web3Modal"
BuildableName = "Web3Modal"
BlueprintName = "Web3Modal"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Web3Modal"
BuildableName = "Web3Modal"
BlueprintName = "Web3Modal"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
17 changes: 4 additions & 13 deletions Example/DApp/Modules/Sign/SignPresenter.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import UIKit
import Combine

import Web3Modal
import WalletConnectModal
import ReownAppKit
import WalletConnectSign

final class SignPresenter: ObservableObject {
Expand Down Expand Up @@ -45,22 +44,14 @@ final class SignPresenter: ObservableObject {

func connectWalletWithW3M() {
Task {
Web3Modal.set(sessionParams: .init(
AppKit.set(sessionParams: .init(
requiredNamespaces: Proposal.requiredNamespaces,
optionalNamespaces: Proposal.optionalNamespaces
))
}
Web3Modal.present(from: nil)
AppKit.present(from: nil)
}

func connectWalletWithWCM() {
WalletConnectModal.set(sessionParams: .init(
requiredNamespaces: Proposal.requiredNamespaces,
optionalNamespaces: Proposal.optionalNamespaces
))
WalletConnectModal.present(from: nil)
}

@MainActor
func connectWalletWithSessionPropose() {
Task {
Expand Down Expand Up @@ -203,7 +194,7 @@ extension SignPresenter {
}
.store(in: &subscriptions)

Web3Modal.instance.SIWEAuthenticationPublisher
AppKit.instance.SIWEAuthenticationPublisher
.receive(on: DispatchQueue.main)
.sink { [unowned self] result in
switch result {
Expand Down
12 changes: 0 additions & 12 deletions Example/DApp/Modules/Sign/SignView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,6 @@ struct SignView: View {
.background(Color(red: 95/255, green: 159/255, blue: 248/255))
.cornerRadius(16)
}

Button {
presenter.connectWalletWithWCM()
} label: {
Text("Connect with WalletConnectModal")
.font(.system(size: 16, weight: .semibold))
.foregroundColor(.white)
.padding(.horizontal, 16)
.padding(.vertical, 10)
.background(Color(red: 95/255, green: 159/255, blue: 248/255))
.cornerRadius(16)
}
}
.padding(.top, 10)
}
Expand Down
25 changes: 10 additions & 15 deletions Example/DApp/SceneDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import UIKit

import Web3Modal
import WalletConnectModal
import ReownAppKit
import WalletConnectRelay
import WalletConnectNetworking
import Combine
Expand Down Expand Up @@ -104,11 +103,12 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
redirect: try! AppMetadata.Redirect(native: "wcdapp://", universal: "https://lab.web3modal.com/dapp", linkMode: true)
)

Web3Modal.configure(
AppKit.configure(
projectId: InputConfig.projectId,
metadata: metadata,
crypto: DefaultCryptoProvider(),
authRequestParams: .stub(), customWallets: [
authRequestParams: .stub(), // set to nil for non SIWE
customWallets: [
.init(
id: "swift-sample",
name: "Swift Sample Wallet",
Expand All @@ -128,18 +128,18 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
linkMode: "https://lab.web3modal.com/rn_walletkit"
),
.init(
id: "flutter-sample",
name: "Flutter Sample Wallet",
id: "flutter-sample-internal",
name: "FL Sample Wallet (internal)",
homepage: "https://walletconnect.com/",
imageUrl: "https://avatars.githubusercontent.com/u/37784886?s=200&v=4",
order: 1,
mobileLink: "wcflutterwallet://",
linkMode: "https://lab.web3modal.com/walletkit_flutter"
mobileLink: "wcflutterwallet-internal://",
linkMode: "https://dev.lab.web3modal.com/flutter_walletkit_internal"
),
]
)

Web3Modal.instance.authResponsePublisher.sink { (id, result) in
AppKit.instance.authResponsePublisher.sink { (id, result) in
switch result {
case .success((_, _)):
AlertPresenter.present(message: "User Authenticted with SIWE", type: .success)
Expand All @@ -148,11 +148,6 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
}
}.store(in: &publishers)

WalletConnectModal.configure(
projectId: InputConfig.projectId,
metadata: metadata
)

Sign.instance.logger.setLogging(level: .debug)
Networking.instance.setLogging(level: .debug)

Expand All @@ -173,6 +168,6 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
}
}.store(in: &publishers)

Web3Modal.instance.disableAnalytics()
AppKit.instance.disableAnalytics()
}
}
Loading
Loading