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

[W3W] Add pending proposals #839

Merged
merged 17 commits into from
Aug 1, 2023
Merged

Conversation

alexander-lsvk
Copy link
Contributor

Description

Resolves # (issue)

How Has This Been Tested?

Due Dilligence

  • Breaking change
  • Requires a documentation update

# Conflicts:
#	Example/WalletApp/PresentationLayer/Wallet/Wallet/WalletView.swift
#	Sources/WalletConnectSign/Engine/Common/ApproveEngine.swift
#	Sources/WalletConnectSign/Sign/SignClientFactory.swift
Copy link
Contributor

@llbartekll llbartekll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are unresolved comments in your previous PR
#744
wouldn't it be easier to reopen the last one so we can continue discussion?


requestSubscriptionPayloads.forEach {
let proposal = $0.request
proposalPayloadsStore.set($0, forKey: proposal.proposer.publicKey)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where are we reading from that store? Couldn't find

@alexander-lsvk alexander-lsvk temporarily deployed to internal July 7, 2023 08:00 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk temporarily deployed to internal July 9, 2023 08:24 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk temporarily deployed to internal July 9, 2023 08:49 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk temporarily deployed to internal July 10, 2023 11:39 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk temporarily deployed to internal July 10, 2023 11:54 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk temporarily deployed to internal July 10, 2023 17:32 — with GitHub Actions Inactive
# Conflicts:
#	Sources/Auth/AuthClientFactory.swift
#	Sources/Auth/Services/Wallet/WalletRequestSubscriber.swift
#	Sources/WalletConnectSign/Engine/Common/ApproveEngine.swift
#	Sources/WalletConnectSign/Engine/Common/SessionEngine.swift
#	Sources/WalletConnectSign/Sign/SignClientFactory.swift
#	Tests/AuthTests/WalletRequestSubscriberTests.swift
#	Tests/WalletConnectSignTests/SessionEngineTests.swift
@alexander-lsvk alexander-lsvk temporarily deployed to internal July 10, 2023 20:05 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk temporarily deployed to internal July 10, 2023 20:38 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk temporarily deployed to internal July 11, 2023 11:51 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk temporarily deployed to internal July 11, 2023 12:08 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk temporarily deployed to internal July 11, 2023 12:16 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk temporarily deployed to internal July 11, 2023 12:57 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk temporarily deployed to internal July 14, 2023 15:35 — with GitHub Actions Inactive
@@ -1,15 +1,15 @@
import Foundation

public struct AuthClientFactory {
import WalletConnectVerify
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will brake cocoapods

/// - Parameter id: id of a wc_sessionRequest jsonrpc request
/// - Returns: json rpc record object for given id or nil if record for give id does not exits
public func getSessionRequestRecord(id: RPCID) -> Request? {
public func getSessionRequestRecord(id: RPCID) -> (request: Request, context: VerifyContext?)? {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about separate getVerifyContext(id: RPCID).
To not affect current Client interface

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's discuss it on sync

@@ -1,5 +1,7 @@
import Foundation

import WalletConnectVerify
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will brake cocoapods

# Conflicts:
#	Sources/Auth/Services/Wallet/WalletRequestSubscriber.swift
#	Sources/WalletConnectSign/Engine/Common/SessionEngine.swift
@alexander-lsvk alexander-lsvk temporarily deployed to internal July 21, 2023 07:17 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk temporarily deployed to internal July 22, 2023 08:42 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk temporarily deployed to internal July 22, 2023 09:06 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk temporarily deployed to internal July 22, 2023 09:53 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk merged commit ff1dbbc into develop Aug 1, 2023
8 checks passed
@alexander-lsvk alexander-lsvk deleted the pending-session-proposal branch August 1, 2023 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants