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

v0.10.0 #466

Merged
merged 112 commits into from
Aug 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
8b5e2b4
fix: intake process does not work for non-public org members
arein Aug 5, 2022
34b87be
Clean protocol codes
llbartekll Aug 8, 2022
5fa75f2
savepoint
llbartekll Aug 9, 2022
3fa35b2
fix tests
llbartekll Aug 9, 2022
71a64c9
run lint
llbartekll Aug 9, 2022
b64bbe4
Merge pull request #419 from WalletConnect/#372-codes
llbartekll Aug 10, 2022
9856a19
Update auth client
llbartekll Aug 10, 2022
861ba77
update auth client
llbartekll Aug 10, 2022
66c756e
update Auth client
llbartekll Aug 10, 2022
a3518d9
update auth client
llbartekll Aug 10, 2022
d4e1156
remove uikit import from sign client
llbartekll Aug 10, 2022
146192c
Add cleanup service
llbartekll Aug 10, 2022
94dd0c0
update auth client - account optional
llbartekll Aug 10, 2022
ce73441
Update request method
llbartekll Aug 10, 2022
d1af393
Merge pull request #407 from WalletConnect/fix/team-members
llbartekll Aug 11, 2022
2bb3743
Add pending requests provider
llbartekll Aug 11, 2022
0913eff
remove do catch block
llbartekll Aug 11, 2022
880cc73
Merge pull request #425 from WalletConnect/#378-auth-client
llbartekll Aug 11, 2022
f2bfd9d
CacaoSigner
flypaper0 Aug 3, 2022
15ca6bf
Using compact signature
flypaper0 Aug 4, 2022
71af65f
testCacaoVerify repaired
flypaper0 Aug 4, 2022
da61a9c
Signer interface adopted
flypaper0 Aug 7, 2022
cbe6a9a
XCode 13.4.1
flypaper0 Aug 8, 2022
ba19718
Forked web3 package
flypaper0 Aug 8, 2022
9259e43
Resolve dependencies step
flypaper0 Aug 9, 2022
24c2b84
DIDPKH object
flypaper0 Aug 9, 2022
ea7b717
Lint
flypaper0 Aug 9, 2022
50f6fa5
CacaoSigner fix typo
flypaper0 Aug 9, 2022
aa722f3
Sign and verify SIWE message
flypaper0 Aug 10, 2022
b734184
PR suggestions
flypaper0 Aug 11, 2022
959f1f8
macos-latest
flypaper0 Aug 11, 2022
5120939
Merge pull request #405 from WalletConnect/feature/cocao-signer-#390
flypaper0 Aug 11, 2022
9051a0b
WalletConnectRouter
flypaper0 Aug 9, 2022
197c8ec
Merge pull request #424 from WalletConnect/feature/router-package-#233
flypaper0 Aug 11, 2022
a1c6e02
EIP-155 Signature fix
flypaper0 Aug 12, 2022
c24e74d
Improve tests for WCPairing activate and update expiry functions
MaisaMilena Aug 14, 2022
659ad74
Relay singleton
flypaper0 Aug 15, 2022
9acafc3
SignClent Delegate removed
flypaper0 Aug 15, 2022
7cec802
Replace onMessage with combine publisher
flypaper0 Aug 15, 2022
cc435d4
Lint
flypaper0 Aug 15, 2022
1ada455
Integration tests fix
flypaper0 Aug 15, 2022
4d5ee10
Sign instance calls replaced with SignClient
flypaper0 Aug 15, 2022
356c62f
Update with RC comments
MaisaMilena Aug 16, 2022
fb0509d
savepoint
llbartekll Aug 16, 2022
a697ee8
Add Auth Client Factory
llbartekll Aug 16, 2022
d1a2260
Add public access for request and respond params
llbartekll Aug 16, 2022
e87a3da
update auth test
llbartekll Aug 16, 2022
6dda075
add socket connection publisher
llbartekll Aug 16, 2022
8cd5c97
fix integration tests build
llbartekll Aug 16, 2022
953df6a
Merge pull request #436 from WalletConnect/hotfix/eip155-signature
flypaper0 Aug 16, 2022
64b6d76
Separate relay configuration
flypaper0 Aug 16, 2022
5bea160
Merge branch 'main' of github.com:WalletConnect/WalletConnectSwiftV2 …
llbartekll Aug 17, 2022
2ed473b
add error code
llbartekll Aug 17, 2022
851bc66
fix build
llbartekll Aug 17, 2022
3a08b41
Add respond result
llbartekll Aug 17, 2022
acc28eb
add result to on response
llbartekll Aug 17, 2022
895da5c
create request test
llbartekll Aug 17, 2022
81152cc
fix subscription bug
llbartekll Aug 17, 2022
a29ad06
fix buiild
llbartekll Aug 17, 2022
824a0ee
refactor Auth client factory
llbartekll Aug 17, 2022
55a38d2
refactor Auth client factory
llbartekll Aug 17, 2022
a4cb644
update auth test
llbartekll Aug 17, 2022
4fa5f18
Merge branch 'develop_main' of github.com:WalletConnect/WalletConnect…
llbartekll Aug 17, 2022
57b5400
fix build
llbartekll Aug 17, 2022
b289acc
pass test request
llbartekll Aug 17, 2022
5d25aa3
Merge pull request #438 from WalletConnect/feature/singleton-relay-#431
flypaper0 Aug 17, 2022
3e83bec
Merge pull request #443 from WalletConnect/develop_main
llbartekll Aug 17, 2022
3497e47
savepoint respond test
llbartekll Aug 17, 2022
bd6424b
rename property to messageFormatter
llbartekll Aug 17, 2022
0c1adde
Merge branch 'develop' of github.com:WalletConnect/WalletConnectSwift…
llbartekll Aug 17, 2022
088f721
Merge pull request #441 from WalletConnect/#416-e2e-auth-clients-test
llbartekll Aug 17, 2022
f10eec0
Merge pull request #444 from WalletConnect/#440-update-public-interface
llbartekll Aug 17, 2022
f36d571
Update tests naming
MaisaMilena Aug 18, 2022
c4f0ffe
comment out code
llbartekll Aug 18, 2022
04da63a
Merge branch 'develop' of github.com:WalletConnect/WalletConnectSwift…
llbartekll Aug 18, 2022
3560182
savepoint
llbartekll Aug 18, 2022
51b5e54
#400 cacao object formatter
llbartekll Aug 18, 2022
6d463df
savepoint
llbartekll Aug 18, 2022
55864eb
Update tests
llbartekll Aug 18, 2022
a2dc202
fix protocol issue
llbartekll Aug 18, 2022
6d3f46c
fix protocol issue - store pub key for response topic
llbartekll Aug 18, 2022
a3239f8
update auth e2e test: received successful response
llbartekll Aug 18, 2022
70d85d4
update style, logs
llbartekll Aug 19, 2022
e9943bc
add Auth instance
llbartekll Aug 19, 2022
cc84072
remove unnecessary import
llbartekll Aug 19, 2022
10a87cb
pr review improvements
llbartekll Aug 19, 2022
213736c
add auth config
llbartekll Aug 19, 2022
adf3328
Merge pull request #448 from WalletConnect/#416-auth-request-test
llbartekll Aug 19, 2022
8ddc520
Merge pull request #452 from WalletConnect/#415-auth-instance
llbartekll Aug 19, 2022
dab1324
Subscription errors
flypaper0 Aug 17, 2022
9144422
Message codes + respondError
flypaper0 Aug 18, 2022
4429f93
External error handling
flypaper0 Aug 19, 2022
a556e59
Build errors fix
flypaper0 Aug 19, 2022
a82c6ac
Merge pull request #437 from MaisaMilena/WCPairingTests
Aug 19, 2022
0396e44
Rebase with develop
flypaper0 Aug 19, 2022
6733bf5
RPCResponse additional
flypaper0 Aug 19, 2022
27a13e9
Moved URI tests to utils test target
Aug 19, 2022
478463e
Improved URI tests with randomness
Aug 19, 2022
e49a462
Implement API prefixing with unit tests
Aug 21, 2022
36adc02
savepoint
llbartekll Aug 22, 2022
ffc14fb
update invalid signature test
llbartekll Aug 22, 2022
44519cb
AuthError
flypaper0 Aug 22, 2022
e24ac11
Merge pull request #449 from WalletConnect/feature/auth-handle-errors…
flypaper0 Aug 22, 2022
3f1acd1
Merge branch 'develop' of github.com:WalletConnect/WalletConnectSwift…
llbartekll Aug 23, 2022
1741d5d
Add invalidation of background task
llbartekll Aug 23, 2022
dc23b90
fix build and tests
llbartekll Aug 23, 2022
7d15735
savepoint
llbartekll Aug 23, 2022
da03606
handle error response
llbartekll Aug 23, 2022
5c2307f
Merge pull request #457 from WalletConnect/#453-invalid-signature-erroe
llbartekll Aug 24, 2022
d577fb9
Merge pull request #458 from WalletConnect/#456-invalidate-background…
llbartekll Aug 24, 2022
c97545a
Merge pull request #461 from WalletConnect/test-respond-error
llbartekll Aug 24, 2022
6aad276
Merge pull request #455 from WalletConnect/#454-uri-api-prefix
llbartekll Aug 24, 2022
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
10 changes: 5 additions & 5 deletions .github/actions/ci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ runs:
run: "xcodebuild \
-project Example/ExampleApp.xcodeproj \
-scheme WalletConnect \
-clonedSourcePackagesDirPath SourcePackages \
-clonedSourcePackagesDirPath SourcePackagesCache \
-destination 'platform=iOS Simulator,name=iPhone 13' \
test"

Expand All @@ -26,7 +26,7 @@ runs:
run: "xcodebuild \
-project Example/ExampleApp.xcodeproj \
-scheme IntegrationTests \
-clonedSourcePackagesDirPath SourcePackages \
-clonedSourcePackagesDirPath SourcePackagesCache \
-destination 'platform=iOS Simulator,name=iPhone 13' test"

# Wallet build
Expand All @@ -36,7 +36,7 @@ runs:
run: "xcodebuild \
-project Example/ExampleApp.xcodeproj \
-scheme Wallet \
-clonedSourcePackagesDirPath SourcePackages \
-clonedSourcePackagesDirPath SourcePackagesCache \
-sdk iphonesimulator"

# DApp build
Expand All @@ -46,7 +46,7 @@ runs:
run: "xcodebuild \
-project Example/ExampleApp.xcodeproj \
-scheme DApp \
-clonedSourcePackagesDirPath SourcePackages \
-clonedSourcePackagesDirPath SourcePackagesCache \
-sdk iphonesimulator"

# UI tests
Expand All @@ -56,6 +56,6 @@ runs:
run: "xcodebuild \
-project Example/ExampleApp.xcodeproj \
-scheme UITests \
-clonedSourcePackagesDirPath SourcePackages \
-clonedSourcePackagesDirPath SourcePackagesCache \
-destination 'platform=iOS Simulator,name=iPhone 13' test"
continue-on-error: true
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,21 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Setup Xcode Version
uses: maxim-lobanov/setup-xcode@v1

- name: Resolve Dependencies
shell: bash
run: "
xcodebuild -resolvePackageDependencies -project Example/ExampleApp.xcodeproj -scheme DApp -clonedSourcePackagesDirPath SourcePackagesCache; \
xcodebuild -resolvePackageDependencies -project Example/ExampleApp.xcodeproj -scheme WalletConnect -clonedSourcePackagesDirPath SourcePackagesCache"

- uses: actions/cache@v2
with:
path: |
.build
SourcePackages
SourcePackagesCache
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
Expand All @@ -58,7 +64,7 @@ jobs:
with:
path: |
.build
SourcePackages
SourcePackagesCache
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
Expand Down
19 changes: 12 additions & 7 deletions .github/workflows/intake.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This workflow moves issues to the Swift board
# This workflow moves issues to the board
# when they receive the "accepted" label
# When WalletConnect Org members create issues they
# are automatically "accepted".
Expand Down Expand Up @@ -28,15 +28,20 @@ jobs:
if: github.event.action == 'opened'
runs-on: ubuntu-latest
steps:
- name: Check if organization member
id: is_organization_member
if: github.event.action == 'opened'
uses: JamesSingleton/[email protected]
- name: Check Core Team membership
uses: tspascoal/get-user-teams-membership@v1
id: is-core-team
with:
organization: WalletConnect
username: ${{ github.event_name != 'pull_request' && github.event.issue.user.login || github.event.sender.login }}
token: ${{ secrets.ASSIGN_TO_PROJECT_GITHUB_TOKEN }}
team: "Core Team"
GITHUB_TOKEN: ${{ secrets.ASSIGN_TO_PROJECT_GITHUB_TOKEN }}
- name: Print result
env:
CREATOR: ${{ github.event_name != 'pull_request' && github.event.issue.user.login || github.event.sender.login }}
IS_TEAM_MEMBER: ${{ steps.is-core-team.outputs.isTeamMember }}
run: echo "$CREATOR (Core Team Member $IS_TEAM_MEMBER) created this issue/PR"
- name: Label issues
if: ${{ steps.is-core-team.outputs.isTeamMember == 'true' }}
uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90
with:
add-labels: "accepted"
Expand Down
10 changes: 10 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/WalletConnectAuth.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AuthTests"
BuildableName = "AuthTests"
BlueprintName = "AuthTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
Expand Down
3 changes: 2 additions & 1 deletion Example/DApp/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
url: "wallet.connect",
icons: ["https://avatars.githubusercontent.com/u/37784886"])

Sign.configure(metadata: metadata, projectId: "8ba9ee138960775e5231b70cc5ef1c3a", socketFactory: SocketFactory())
Relay.configure(projectId: "8ba9ee138960775e5231b70cc5ef1c3a", socketFactory: SocketFactory())
Sign.configure(metadata: metadata)

if CommandLine.arguments.contains("-cleanInstall") {
try? Sign.instance.cleanup()
Expand Down
19 changes: 18 additions & 1 deletion Example/DApp/SelectChain/SelectChainView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import Foundation
import UIKit

class SelectChainView: UIView {

let tableView: UITableView = {
let tableView = UITableView(frame: .zero, style: .insetGrouped)
tableView.backgroundColor = .tertiarySystemBackground
tableView.register(UITableViewCell.self, forCellReuseIdentifier: "chain")
return tableView
}()

let connectButton: UIButton = {
let button = UIButton(type: .system)
button.setTitle("Connect", for: .normal)
Expand All @@ -17,12 +19,22 @@ class SelectChainView: UIView {
return button
}()

let openWallet: UIButton = {
let button = UIButton(type: .system)
button.setTitle("Open Wallet", for: .normal)
button.backgroundColor = .systemFill
button.tintColor = .white
button.layer.cornerRadius = 8
return button
}()

override init(frame: CGRect) {
super.init(frame: frame)
tableView.register(UITableViewCell.self, forCellReuseIdentifier: "chain_cell")
backgroundColor = .systemBackground
addSubview(tableView)
addSubview(connectButton)
addSubview(openWallet)

subviews.forEach { $0.translatesAutoresizingMaskIntoConstraints = false }

Expand All @@ -35,7 +47,12 @@ class SelectChainView: UIView {
connectButton.bottomAnchor.constraint(equalTo: safeAreaLayoutGuide.bottomAnchor, constant: -16),
connectButton.centerXAnchor.constraint(equalTo: safeAreaLayoutGuide.centerXAnchor),
connectButton.heightAnchor.constraint(equalToConstant: 44),
connectButton.widthAnchor.constraint(equalToConstant: 120)
connectButton.widthAnchor.constraint(equalToConstant: 120),

openWallet.bottomAnchor.constraint(equalTo: connectButton.topAnchor, constant: -16),
openWallet.centerXAnchor.constraint(equalTo: safeAreaLayoutGuide.centerXAnchor),
openWallet.heightAnchor.constraint(equalToConstant: 44),
openWallet.widthAnchor.constraint(equalToConstant: 120)
])
}

Expand Down
6 changes: 6 additions & 0 deletions Example/DApp/SelectChain/SelectChainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class SelectChainViewController: UIViewController, UITableViewDataSource {
navigationItem.title = "Available Chains"
selectChainView.tableView.dataSource = self
selectChainView.connectButton.addTarget(self, action: #selector(connect), for: .touchUpInside)
selectChainView.openWallet.addTarget(self, action: #selector(openWallet), for: .touchUpInside)
Sign.instance.sessionSettlePublisher.sink {[unowned self] session in
onSessionSettled?(session)
}.store(in: &publishers)
Expand All @@ -42,6 +43,11 @@ class SelectChainViewController: UIViewController, UITableViewDataSource {
}
}

@objc
private func openWallet() {
UIApplication.shared.open(URL(string: "walletconnectwallet://")!)
}

private func showConnectScreen(uriString: String) {
DispatchQueue.main.async { [unowned self] in
let vc = UINavigationController(rootViewController: ConnectViewController(uri: uriString))
Expand Down
Loading