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.6.8 #904

Merged
merged 102 commits into from
Jun 14, 2023
Merged

1.6.8 #904

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
78493a4
UI improvements + Sign integration
radeknovis May 16, 2023
8417519
Fetching and displaying Wallets
radeknovis May 16, 2023
6160fd1
Use new endpoint + order field
radeknovis May 18, 2023
68051e0
Fix AsyncImage animations
radeknovis May 18, 2023
3b632a0
Add ViewAll + fix QR code paddings and darkmode
radeknovis May 18, 2023
74d127a
Merge branch 'develop' into w3m-search-listings
radeknovis May 24, 2023
56cf206
Add view all and get wallet
radeknovis May 29, 2023
2293ef9
Merge develop in
radeknovis May 30, 2023
5b2dc83
Merge branch 'develop' into w3m-search-listings
radeknovis May 31, 2023
558e295
Cleanup API & Integrate with sample Dapp
radeknovis Jun 2, 2023
7545e31
Add wallet related screens; Detail, Get a Wallet, View All
radeknovis Jun 5, 2023
d4fc494
Sync structure
flypaper0 Apr 5, 2023
56c5593
SyncSetService
flypaper0 Apr 8, 2023
4061ce2
Chat Sync Integration
flypaper0 Apr 10, 2023
3f2c8e0
Testing session
flypaper0 Apr 22, 2023
3907837
Reject sentInvite
flypaper0 Apr 22, 2023
7d91d7f
Random account UI
flypaper0 Apr 22, 2023
ca823e8
SentInvites fixed
flypaper0 May 9, 2023
798896a
Subscribe for sync invites
flypaper0 May 10, 2023
ac56c7a
savepoint 1
flypaper0 May 10, 2023
a12ffa7
savepoint 2
flypaper0 May 11, 2023
e7c2807
Testing session
flypaper0 May 12, 2023
ec3974d
Sync invite keys
flypaper0 May 15, 2023
7b22e7a
Chat+Sync integration tests
flypaper0 May 16, 2023
2cb38b4
Cacao formatter fixed
flypaper0 May 17, 2023
873426f
Updating received invites
flypaper0 May 17, 2023
fa41ea6
Invite resolving fix
flypaper0 May 18, 2023
de87a49
SyncDecoding fix
flypaper0 May 18, 2023
cfcb57a
ReceivedInviteStatus sync implemented
flypaper0 May 22, 2023
3c59258
Web3Inbox URL params
flypaper0 May 23, 2023
3180c82
SentInvite responseTopic as syncId
flypaper0 May 23, 2023
8bfe879
Fix method typo
flypaper0 May 23, 2023
3af4068
Sync history store
flypaper0 May 23, 2023
db31250
Update historyStore if newer
flypaper0 May 23, 2023
67a7401
SyncHistoryStore isNew fix
flypaper0 May 24, 2023
5ddd399
Update SyncStore.swift
flypaper0 May 26, 2023
81307ea
Tests fixed
flypaper0 May 26, 2023
c360f6b
Import networking to verify
flypaper0 May 26, 2023
e4affce
WalletApp build error fixed
flypaper0 May 26, 2023
5d17871
Random account for sync tests
flypaper0 May 26, 2023
e9bde60
testResolveAddress disabled
flypaper0 May 29, 2023
929d945
Sync message updated
flypaper0 May 30, 2023
3a926dc
testResolveEns disabled
flypaper0 Jun 1, 2023
75ea4a4
Derivation provider
flypaper0 Jun 5, 2023
2c4aa4e
BIP44Provider rename
flypaper0 Jun 6, 2023
697babd
Delete unused files
radeknovis Jun 6, 2023
ead6e10
ENSResolverTests disabled for testplan
flypaper0 Jun 6, 2023
fb219e6
Merge pull request #858 from WalletConnect/feature/sync-api
flypaper0 Jun 6, 2023
2f36a61
Merge pull request #889 from WalletConnect/w3m-search-listings
radeknovis Jun 7, 2023
6b484cc
Merge branch 'develop' into feature/cleanup-api
radeknovis Jun 7, 2023
374161c
Fix previews & add toast message for feedback
radeknovis Jun 7, 2023
0eed6c7
Fix tests
radeknovis Jun 7, 2023
084f586
Cleanup
radeknovis Jun 7, 2023
cb39450
Remove restore key for spm cache
radeknovis Jun 7, 2023
5b8fc90
Remove restore key for spm cache
radeknovis Jun 7, 2023
a41e349
Cache only SPM & Track Package.resolved
radeknovis Jun 7, 2023
b3750ef
Fix tests and Web3Inbox.configure call
radeknovis Jun 7, 2023
321dd62
Merge pull request #900 from WalletConnect/fix/w3m-tests
radeknovis Jun 7, 2023
d8a79d7
Merge branch 'develop' into fix/stricter-spm-caching
radeknovis Jun 7, 2023
ad6c357
Fix checkout
radeknovis Jun 7, 2023
90f2581
Test different ref
radeknovis Jun 7, 2023
c70ea7b
Merge pull request #899 from WalletConnect/fix/stricter-spm-caching
radeknovis Jun 8, 2023
d95b6ae
Merge branch 'develop' into feature/cleanup-api
radeknovis Jun 8, 2023
942e901
Sign using web3modal account
radeknovis Jun 8, 2023
bc5d1a4
Fixed web3modal import
radeknovis Jun 9, 2023
ae41f71
Merge pull request #902 from WalletConnect/feature/w3m-showcase-integ…
radeknovis Jun 12, 2023
a22edbb
PR feedback
radeknovis Jun 12, 2023
f3c5546
Merge pull request #898 from WalletConnect/feature/cleanup-api
radeknovis Jun 12, 2023
3cc418f
Set User Agent
radeknovis Jun 12, 2023
97a6c3b
Fix connect logic
radeknovis Jun 12, 2023
7870443
add slack hook url
llbartekll Jun 13, 2023
1e67a56
exclude sync tests
llbartekll Jun 13, 2023
733dd36
savepoint
llbartekll Jun 13, 2023
b16ffd5
fix relay tests
llbartekll Jun 13, 2023
a65d323
Merge pull request #906 from WalletConnect/slack-notifications-fix
llbartekll Jun 13, 2023
4c86fd6
Merge pull request #905 from WalletConnect/fix/w3m-pairing
llbartekll Jun 13, 2023
676725a
HistoryNetworkService
flypaper0 May 29, 2023
355fb02
Generic ClientIdAuthenticator
flypaper0 May 29, 2023
a249c68
HistoryClient
flypaper0 May 29, 2023
2269e54
testRegister test case
flypaper0 May 29, 2023
e0f9618
History integration tests
flypaper0 May 30, 2023
554661a
History message mapping
flypaper0 Jun 1, 2023
91d93ba
fetchMessageHistory
flypaper0 Jun 1, 2023
9225265
Savepoint
flypaper0 Jun 2, 2023
0d8cf96
Database refactor
flypaper0 Jun 2, 2023
24023c9
Integration tests repaired
flypaper0 Jun 2, 2023
4be7e30
KeyedDatabase rename
flypaper0 Jun 2, 2023
b303033
KeyedDatabase discardableResult
flypaper0 Jun 2, 2023
69cbacd
Message store batch update
flypaper0 Jun 2, 2023
d16fb54
Todo
flypaper0 Jun 5, 2023
fb78f76
Revert "Todo"
flypaper0 Jun 7, 2023
c6cb6ad
Web3Modal import
flypaper0 Jun 8, 2023
3df4725
Rebase fix
flypaper0 Jun 13, 2023
db811e6
GenericPasswordConvertible for string
flypaper0 Jun 13, 2023
f7c1996
String extension cleanup
flypaper0 Jun 13, 2023
c118701
fix testEndToEndPayload
llbartekll Jun 14, 2023
21c4f41
HistoryTests removed from SmokeTests
flypaper0 Jun 14, 2023
75b0a8d
Merge pull request #907 from WalletConnect/fix-testEndToEndPayload
llbartekll Jun 14, 2023
bc2ec69
Merge pull request #892 from WalletConnect/feature/history-api
flypaper0 Jun 14, 2023
5cd58d8
Sync: Cocoapods support
flypaper0 Jun 14, 2023
88bc9af
lib link script updated
flypaper0 Jun 14, 2023
3894cc1
Merge pull request #909 from WalletConnect/bugfix/cocoapods-sync
llbartekll Jun 14, 2023
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
5 changes: 2 additions & 3 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ runs:
using: "composite"
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/cache@v3
with:
path: |
**/SourcePackagesCache
DerivedDataCache
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-

- name: Build for testing
shell: bash
Expand Down
7 changes: 5 additions & 2 deletions .github/actions/run_tests_without_building/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ inputs:
project-id:
description: 'WalletConnect project id'
required: true
slack-webhook-url:
description: 'Smoke tests slack webhoook url'
required: true

runs:
using: "composite"
Expand Down Expand Up @@ -53,13 +56,13 @@ runs:
run: make smoke_tests RELAY_HOST=${{ inputs.relay-endpoint }} PROJECT_ID=${{ inputs.project-id }}

- name: Slack Notification for Failure
if: failure() && matrix.type == 'smoke-tests'
if: failure() && (inputs.type == 'smoke-tests' || inputs.type == 'relay-tests')
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
text: The smoke tests failed in the CI pipeline. Check the logs for more details.
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_URL: ${{ inputs.slack-webhook-url }}

- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/build_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ jobs:
with:
path: |
**/SourcePackagesCache
DerivedDataCache
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-

- name: Build for testing on workflow_dispatch
if: ${{ github.event_name == 'workflow_dispatch' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:

- name: Lint CocoaPods
run: |
pod lib lint WalletConnectSwiftV2.podspec --verbose --allow-warnings
pod lib lint --verbose --no-clean --quick --allow-warnings --platforms=ios WalletConnectSwiftV2.podspec
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}

- uses: ./.github/actions/build
with:
Expand All @@ -41,6 +43,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/cache/restore@v3
with:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ xcuserdata/
# Swift Package Manager
Packages/
Package.pins
Package.resolved
/*.xcodeproj

# Fastlane
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "WalletConnectHistory"
BuildableName = "WalletConnectHistory"
BlueprintName = "WalletConnectHistory"
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 = "WalletConnectHistory"
BuildableName = "WalletConnectHistory"
BlueprintName = "WalletConnectHistory"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
10 changes: 10 additions & 0 deletions Example/DApp/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import UIKit
import Auth
import WalletConnectRelay
import WalletConnectNetworking
import Web3Modal

class SceneDelegate: UIResponder, UIWindowSceneDelegate {

Expand All @@ -13,6 +14,15 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
Networking.configure(projectId: InputConfig.projectId, socketFactory: DefaultSocketFactory())
Auth.configure(crypto: DefaultCryptoProvider())

let metadata = AppMetadata(
name: "Swift Dapp",
description: "WalletConnect DApp sample",
url: "wallet.connect",
icons: ["https://avatars.githubusercontent.com/u/37784886"]
)

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

setupWindow(scene: scene)
}
Expand Down
3 changes: 1 addition & 2 deletions Example/DApp/Sign/Connect/ConnectViewController.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Foundation
import UIKit
import WalletConnectSign
import WalletConnectPairing
import Web3Modal

class ConnectViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
let uri: WalletConnectURI
Expand Down
17 changes: 9 additions & 8 deletions Example/DApp/Sign/SelectChain/SelectChainViewController.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Foundation
import WalletConnectSign
import WalletConnectPairing
import Web3Modal
import UIKit
import Combine

Expand Down Expand Up @@ -70,16 +69,18 @@ class SelectChainViewController: UIViewController, UITableViewDataSource {
let sessionProperties: [String: String] = [
"caip154-mandatory": "true"
]

Task {
let uri = try await Pair.instance.create()
try await Sign.instance.connect(
Web3Modal.set(sessionParams: .init(
requiredNamespaces: namespaces,
optionalNamespaces: optionalNamespaces,
sessionProperties: sessionProperties,
topic: uri.topic
)
showConnectScreen(uri: uri)
sessionProperties: sessionProperties
))

let uri = try await Web3Modal.instance.connect(topic: nil)
}

Web3Modal.present(from: self)
}

@objc
Expand Down
3 changes: 2 additions & 1 deletion Example/ExampleApp.xcodeproj/IntegrationTests.xctestplan
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
{
"skippedTests" : [
"AuthTests\/testEIP1271RespondSuccess()",
"ChatTests"
"ChatTests",
"ENSResolverTests"
],
"target" : {
"containerPath" : "container:ExampleApp.xcodeproj",
Expand Down
Loading