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

1.12.0 #1296

Merged
merged 193 commits into from
Jan 31, 2024
Merged

1.12.0 #1296

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
193 commits
Select commit Hold shift + click to select a range
cc7a1f5
add pairingExpirationPublisher
llbartekll Jan 6, 2024
0f3a29d
fix build
llbartekll Jan 6, 2024
77c7472
remove loader on session request
llbartekll Jan 6, 2024
300ecea
remove loader on session proposal
llbartekll Jan 6, 2024
cc1ce09
Merge branch 'fix-dapp-keychain-socket-issue' of github.com:WalletCon…
llbartekll Jan 7, 2024
916b528
add expiry monitor for sequence store
llbartekll Jan 7, 2024
de0a0a0
add pairing state publisher
llbartekll Jan 7, 2024
6e07c1e
integrate pairing publisher
llbartekll Jan 7, 2024
aff3a8a
remove inactive pairing on reject
llbartekll Jan 7, 2024
6f70d10
activate pairing on request
llbartekll Jan 9, 2024
69d5781
fix build
llbartekll Jan 9, 2024
e71c6d7
add ActivityIndicatorManager
llbartekll Jan 9, 2024
e6553e5
add alert presenter
llbartekll Jan 9, 2024
7d01cc0
savepoint
llbartekll Jan 9, 2024
1aadaeb
present alert for w3w error messages
llbartekll Jan 9, 2024
b62568d
fix activity indicator manager
llbartekll Jan 9, 2024
abb4bd1
add dismiss button to session request screen
llbartekll Jan 9, 2024
adc4d0f
savepoint
llbartekll Jan 9, 2024
638bf76
add activity indicator on delete
llbartekll Jan 10, 2024
9be087e
fix request expiry logic
llbartekll Jan 10, 2024
c5dfdee
add ActivityIndicatorManager to a dapp
llbartekll Jan 10, 2024
51d81b2
savepoint
llbartekll Jan 10, 2024
399bdac
savepoint - add response view
llbartekll Jan 10, 2024
7dcf7db
add socket status to dapp
llbartekll Jan 10, 2024
1c497f7
display alert for sign errors
llbartekll Jan 11, 2024
095355d
fix tests, add namespaces test
llbartekll Jan 11, 2024
4f89222
remove url from client authenticator
llbartekll Jan 11, 2024
2218816
savepoint
llbartekll Jan 11, 2024
c244e8b
savepoint
llbartekll Jan 11, 2024
6fee695
present pairing expired message in a wallet
llbartekll Jan 11, 2024
f1b7da1
Add expiry to session proposal
llbartekll Jan 11, 2024
9feefe2
add backward compatibility tests for session proposal
llbartekll Jan 11, 2024
a45b70d
savepoint
llbartekll Jan 12, 2024
3f05c79
add ProposalExpiryWatcher
llbartekll Jan 12, 2024
185de33
savepoint
llbartekll Jan 12, 2024
91a7dff
reorganise stubs
llbartekll Jan 12, 2024
74bf429
update proposal expiry watcher
llbartekll Jan 12, 2024
a6a77f8
add localised description for errors
llbartekll Jan 12, 2024
e7f90aa
add dismiss button to proposal screen
llbartekll Jan 12, 2024
777cac9
add PendingProposalsProvider
llbartekll Jan 12, 2024
ee79af8
dismiss on session proposal expired
llbartekll Jan 12, 2024
82ef9aa
fix crash
llbartekll Jan 12, 2024
dc3ae63
remove pending proposals from history service
llbartekll Jan 12, 2024
2a6e7d0
remove tabbar from dapp
llbartekll Jan 15, 2024
cf10686
walletapp - fix session proposal dismiss on expiry
llbartekll Jan 15, 2024
94cea98
fix, present request screen when proposal still active
llbartekll Jan 15, 2024
f3cc074
revert session response small modal
llbartekll Jan 15, 2024
0e6b23c
revert activate pairing logic
llbartekll Jan 15, 2024
befdfab
change pairing state publisher logic
llbartekll Jan 15, 2024
ae36fa6
Add RequestsExpiryWatcher
llbartekll Jan 15, 2024
497cff6
expose request expiry publisher
llbartekll Jan 15, 2024
bc881ea
publish pairing state on change only
llbartekll Jan 15, 2024
dc3c972
dismiss request screen on expiry
llbartekll Jan 15, 2024
3606015
add alert on request expiry
llbartekll Jan 15, 2024
f325146
update Request and its tests
llbartekll Jan 16, 2024
9cbab48
remove the commented namespace test
llbartekll Jan 16, 2024
fd25d8a
Add check for empty session namespaces
llbartekll Jan 16, 2024
00d1080
add check for empty session namespaces
llbartekll Jan 16, 2024
3f50f72
add localised description for namespaces error
llbartekll Jan 16, 2024
94c2a02
savepoint
llbartekll Jan 16, 2024
69d4b4c
integrate loaders in a dapp
llbartekll Jan 16, 2024
53b760c
dapp - add alert on expired request
llbartekll Jan 16, 2024
2d77e48
update min expiry to 10 minutes
llbartekll Jan 17, 2024
8f76ed7
add padding to sing view list
llbartekll Jan 17, 2024
5a6f237
fix encoded uri parsing
llbartekll Jan 17, 2024
a38716c
fix tests build
llbartekll Jan 17, 2024
6482f1a
remove showcase garbage
llbartekll Jan 17, 2024
1a94a20
add loading view
llbartekll Jan 17, 2024
3e5add4
publish with ack
flypaper0 Jan 17, 2024
feeca0c
approve idempotency
llbartekll Jan 18, 2024
258b4e0
integrate relayack publish
llbartekll Jan 18, 2024
6530fdc
add more loaders
llbartekll Jan 18, 2024
330429b
change expiry to expiryTimestamp
llbartekll Jan 18, 2024
808b114
fix testSessionReject
llbartekll Jan 18, 2024
37f80de
fix testSessionReject
llbartekll Jan 18, 2024
a93ba0b
change min ttl for request
llbartekll Jan 18, 2024
7680f68
add message when pairing takes too long
llbartekll Jan 18, 2024
ff1d34a
savepoint
llbartekll Jan 18, 2024
3d8e3fa
Merge pull request #1279 from WalletConnect/feature/relay-ack
flypaper0 Jan 18, 2024
fc1a8a6
Delete on resolve
flypaper0 Jan 18, 2024
ff18241
Merge branch 'feature/rpc-delete-on-resolve' of github.com:WalletConn…
llbartekll Jan 18, 2024
aaa925b
removeOutdated
flypaper0 Jan 18, 2024
a41e93c
Force unwrap removed
flypaper0 Jan 18, 2024
7d70977
RPCHistory tests resplved
flypaper0 Jan 19, 2024
7195db9
Remove outdated tests
flypaper0 Jan 19, 2024
ce65f53
Merge branch 'feature/rpc-delete-on-resolve' of github.com:WalletConn…
llbartekll Jan 19, 2024
d084975
refactor sign tests
llbartekll Jan 19, 2024
1a5784e
Merge pull request #1280 from WalletConnect/feature/rpc-delete-on-res…
flypaper0 Jan 19, 2024
07ada93
History package cleanup
flypaper0 Jan 9, 2024
b29a0ea
awaitResponse
flypaper0 Jan 12, 2024
c067781
requestMethod == responseMethod
flypaper0 Jan 12, 2024
57fdaf2
Imports + NotifyGetNotificationsRequestPayload mask
flypaper0 Jan 12, 2024
859a85a
NotifyGetNotificationsRequestPayload
flypaper0 Jan 12, 2024
eb632db
NotifyGetNotificationsResponsePayload
flypaper0 Jan 12, 2024
e4b3799
HistoryClient package
flypaper0 Jan 12, 2024
edbbabc
fetchHistory method
flypaper0 Jan 12, 2024
bdd99e7
sent_at for NotifyMessage
flypaper0 Jan 12, 2024
6f5c86c
fetchHistory finalized
flypaper0 Jan 12, 2024
abb66fc
fetch history on sample app
flypaper0 Jan 12, 2024
5653ddc
sub missed
flypaper0 Jan 15, 2024
551a10e
Message sent_at fix
flypaper0 Jan 15, 2024
0445846
Unit tests fixed
flypaper0 Jan 17, 2024
ed7f3fb
Integration tests fixed
flypaper0 Jan 17, 2024
2f30931
HistoryPackage removed
flypaper0 Jan 19, 2024
af7f270
testWalletCreatesAndUpdatesSubscription reenabled
flypaper0 Jan 19, 2024
f3d2b68
Missing WalletConnectIdentity added
flypaper0 Jan 19, 2024
3b3ebcc
savepoint
llbartekll Jan 19, 2024
79fe995
Messages integration tests
flypaper0 Jan 19, 2024
ba16939
awaitResponse updated with ack
flypaper0 Jan 19, 2024
c531985
History imports removed
flypaper0 Jan 19, 2024
bd97abb
Merge pull request #1278 from WalletConnect/feature/get-notifications…
flypaper0 Jan 19, 2024
a25e2cf
Add expiry to pairing uri
llbartekll Jan 22, 2024
10cbba3
add deprecated uri init
llbartekll Jan 22, 2024
e20094f
fix crash
llbartekll Jan 22, 2024
97eb2d9
remove getSessionRequestRecord
llbartekll Jan 22, 2024
9eb7a3d
use expiry from uri in wcpairing
llbartekll Jan 22, 2024
f9dfc2b
Merge branch 'develop' of github.com:WalletConnect/WalletConnectSwift…
llbartekll Jan 22, 2024
f5dac53
not create a session when propose response fails
llbartekll Jan 22, 2024
f0d60ef
Nullable icon and url parsing
flypaper0 Jan 22, 2024
5f8ab62
add localised description
llbartekll Jan 22, 2024
93d132c
dismiss proposal on pairing expiry
llbartekll Jan 22, 2024
bff243f
show alerts on pairing expiry
llbartekll Jan 22, 2024
abe3f15
savepoint
llbartekll Jan 23, 2024
bce0e68
refactor activityindicator
llbartekll Jan 23, 2024
9c2a9da
savepoint
llbartekll Jan 23, 2024
cd0f67f
add review suggestions
llbartekll Jan 23, 2024
5fdb29a
fix wc modal tests
llbartekll Jan 23, 2024
3e9b7fc
fix sign tests
llbartekll Jan 23, 2024
3ac1823
testFetchHistory stability
flypaper0 Jan 23, 2024
bb2f36d
fix compatibility issue
llbartekll Jan 23, 2024
880b82a
Merge pull request #1283 from WalletConnect/feature/nullable-message-…
flypaper0 Jan 23, 2024
a05be87
NetworkMonitor in Dispatcher
flypaper0 Jan 23, 2024
6489245
protectedSend logic fixed
flypaper0 Jan 23, 2024
8f54f0b
Integration tests repaired
flypaper0 Jan 23, 2024
ff5a895
Relayer tests updated
flypaper0 Jan 23, 2024
c8fd167
RelayClientEndToEndTests repaired
flypaper0 Jan 23, 2024
78f6fae
Merge branch 'develop' of github.com:WalletConnect/WalletConnectSwift…
llbartekll Jan 23, 2024
e05bce5
Update RelayClientEndToEndTests.swift
flypaper0 Jan 23, 2024
14cbe52
Unsubscribe optional completion
flypaper0 Jan 23, 2024
5774ada
RPCHistory cleanup on error
flypaper0 Jan 23, 2024
cbd7639
Merge branch 'feature/network-monitor-in-dispatcher' of github.com:Wa…
llbartekll Jan 24, 2024
39085d5
saveopint
llbartekll Jan 24, 2024
ce749eb
add alert on uri expired
llbartekll Jan 24, 2024
65aaf21
fix build
llbartekll Jan 24, 2024
ea96e8d
fix tests build
llbartekll Jan 24, 2024
cb77784
Common network error
flypaper0 Jan 24, 2024
2dce12f
remove dependency pairing dependency in notify
llbartekll Jan 24, 2024
e816d31
Update Dispatching.swift
flypaper0 Jan 24, 2024
2631aa4
Merge pull request #1284 from WalletConnect/feature/network-monitor-i…
flypaper0 Jan 24, 2024
326cde3
removed the cron job that releases wallet and showcase sample every M…
Jan 24, 2024
bd88354
Merge pull request #1286 from WalletConnect/disable_automatic_sample_…
Talhaali00 Jan 25, 2024
6504bdf
Merge pull request #1281 from WalletConnect/just-works-fix
llbartekll Jan 26, 2024
657f92c
Pagination implemented
flypaper0 Jan 25, 2024
b9c819a
Integration tests hasMore
flypaper0 Jan 25, 2024
aa31a50
testFetchHistory updated
flypaper0 Jan 25, 2024
320abfa
Merge pull request #1287 from WalletConnect/feature/notify-messages-p…
flypaper0 Jan 27, 2024
556efc2
Subscriptions Updater
flypaper0 Dec 14, 2023
1a012d2
NotifyUpdateResponsePayload with sbs
flypaper0 Jan 23, 2024
feaa314
Delete response subsciber
flypaper0 Jan 23, 2024
e51db10
Bump w3m and include sample wallet in customWallets
radeknovis Jan 23, 2024
313740e
Merge pull request #1285 from WalletConnect/feat/sample-wallet-in-w3m
radeknovis Jan 29, 2024
04e8917
WCM using api.web3modal.com
radeknovis Dec 14, 2023
2d08735
Fix tests
radeknovis Dec 19, 2023
49403f7
Fix tests
radeknovis Dec 28, 2023
33a036f
pr feedback
radeknovis Jan 22, 2024
b2b63d1
Fix tests
radeknovis Jan 29, 2024
678fa51
Merge pull request #1262 from WalletConnect/feat/wcm-api-update
radeknovis Jan 29, 2024
abaa83d
Update NotifySubsctiptionsUpdater.swift
flypaper0 Jan 29, 2024
452314f
Merge pull request #1256 from WalletConnect/feature/update-subscripti…
flypaper0 Jan 29, 2024
2286130
Listings query params updated
flypaper0 Jan 29, 2024
8889de6
Body urls
flypaper0 Jan 29, 2024
c2d5d6b
Merge pull request #1288 from WalletConnect/feature/wallet-app-ui-fixes
flypaper0 Jan 29, 2024
28f667e
Regression fixes
flypaper0 Jan 29, 2024
6a1431f
Merge pull request #1290 from WalletConnect/feature/regression-fixes
flypaper0 Jan 29, 2024
81deb47
Notify imports fixed
flypaper0 Jan 29, 2024
c54284a
Merge pull request #1291 from WalletConnect/hotfix/release-ci-fix
flypaper0 Jan 29, 2024
3504936
NotificationService notofocation types icon
flypaper0 Jan 30, 2024
03fe849
add getPendingRequestsSortedByTimestamp to history service
llbartekll Jan 30, 2024
96f2339
Icons from notification types
flypaper0 Jan 30, 2024
17107ea
Badge disabled
flypaper0 Jan 30, 2024
6aa35d5
Bottom padding
flypaper0 Jan 30, 2024
c2d4c55
Merge pull request #1294 from WalletConnect/feature/icon-from-notific…
flypaper0 Jan 30, 2024
39b004c
savepoint
llbartekll Jan 31, 2024
7434413
clean up rpc hiistory
llbartekll Jan 31, 2024
20c4def
Merge branch 'develop' of github.com:WalletConnect/WalletConnectSwift…
llbartekll Jan 31, 2024
a73cadd
remove tests
llbartekll Jan 31, 2024
569c559
savepoint
llbartekll Jan 31, 2024
108b075
fix tests
llbartekll Jan 31, 2024
b750f01
fix tests
llbartekll Jan 31, 2024
6300045
review fix
llbartekll Jan 31, 2024
bf777cd
simplify SessionRequestsProvider
llbartekll Jan 31, 2024
e90cad3
Merge pull request #1295 from WalletConnect/requests-queue
llbartekll Jan 31, 2024
e5ed0dd
Set User Agent
flypaper0 Jan 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: release

on:
schedule:
# Runs "Every Monday 10am CET"
- cron: '0 10 * * 1'

workflow_dispatch:

jobs:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1510"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
</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 = "WalletConnectSignTests"
BuildableName = "WalletConnectSignTests"
BlueprintName = "WalletConnectSignTests"
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>
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1520"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
</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 = "WalletConnectUtilsTests"
BuildableName = "WalletConnectUtilsTests"
BlueprintName = "WalletConnectUtilsTests"
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>
1 change: 0 additions & 1 deletion Example/DApp/ApplicationLayer/Application.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ import WalletConnectUtils

final class Application {
var uri: WalletConnectURI?
var requestSent = false
}
42 changes: 42 additions & 0 deletions Example/DApp/Common/ActivityIndicatorManager.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import UIKit

class ActivityIndicatorManager {
static let shared = ActivityIndicatorManager()
private var activityIndicator: UIActivityIndicatorView?
private let serialQueue = DispatchQueue(label: "com.yourapp.activityIndicatorManager")

private init() {}

func start() {
serialQueue.async {
self.stopInternal()

DispatchQueue.main.async {
guard let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
let window = windowScene.windows.first(where: { $0.isKeyWindow }) else { return }

let activityIndicator = UIActivityIndicatorView(style: .large)
activityIndicator.center = window.center
activityIndicator.color = .white
activityIndicator.startAnimating()
window.addSubview(activityIndicator)

self.activityIndicator = activityIndicator
}
}
}

func stop() {
serialQueue.async {
self.stopInternal()
}
}

private func stopInternal() {
DispatchQueue.main.sync {
self.activityIndicator?.stopAnimating()
self.activityIndicator?.removeFromSuperview()
self.activityIndicator = nil
}
}
}
35 changes: 35 additions & 0 deletions Example/DApp/Common/AlertPresenter.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import Foundation
import SwiftMessages
import UIKit

struct AlertPresenter {
enum MessageType {
case warning
case error
case info
case success
}

static func present(message: String, type: AlertPresenter.MessageType) {
DispatchQueue.main.async {
let view = MessageView.viewFromNib(layout: .cardView)
switch type {
case .warning:
view.configureTheme(.warning, iconStyle: .subtle)
case .error:
view.configureTheme(.error, iconStyle: .subtle)
case .info:
view.configureTheme(.info, iconStyle: .subtle)
case .success:
view.configureTheme(.success, iconStyle: .subtle)
}
view.button?.isHidden = true
view.layoutMarginAdditions = UIEdgeInsets(top: 20, left: 20, bottom: 20, right: 20)
view.configureContent(title: "", body: message)
var config = SwiftMessages.Config()
config.presentationStyle = .top
config.duration = .seconds(seconds: 1.5)
SwiftMessages.show(config: config, view: view)
}
}
}
3 changes: 0 additions & 3 deletions Example/DApp/Modules/Auth/AuthInteractor.swift

This file was deleted.

16 changes: 0 additions & 16 deletions Example/DApp/Modules/Auth/AuthModule.swift

This file was deleted.

116 changes: 0 additions & 116 deletions Example/DApp/Modules/Auth/AuthPresenter.swift

This file was deleted.

16 changes: 0 additions & 16 deletions Example/DApp/Modules/Auth/AuthRouter.swift

This file was deleted.

Loading
Loading