-
Notifications
You must be signed in to change notification settings - Fork 3
[codex] Add public Paykit payments to contacts #531
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
d71e3c0
WIP: add public Paykit endpoints
ben-kaufman 11b62ce
fix: align contact add flow with Android
ben-kaufman c4458e4
fix: complete public Paykit contact payments
ben-kaufman c863f46
Update CHANGELOG.md
ben-kaufman 16b34dc
fix: surface contact activity load errors
ben-kaufman 85858ee
fix: move contact activity sync out of send views
ben-kaufman 220ee6a
fix: keep contact payment boundaries in view layer
ben-kaufman 3d1f2b2
fix: show contact names in activity rows
ben-kaufman edc5e9f
fix: disambiguate contact test models
ben-kaufman 01aefdd
fix: address public payments review cleanup
ben-kaufman 98d3e04
refactor: share contact payment route helper
ben-kaufman c430f9a
fix: include pubky key format in shared targets
ben-kaufman 2249d9d
fix: address public payment review followups
ben-kaufman 7d48489
fix: preserve contact context for fast payments
ben-kaufman 73971b6
fix: isolate public paykit receive invoice
ben-kaufman 30ce344
fix: address public paykit review blockers
ben-kaufman 07b7a2a
chore: align pay contacts lifecycle hook
ben-kaufman fac5074
fix: handle optional public invoice description
ben-kaufman e037fe7
fix: align public paykit endpoint lifecycle
ben-kaufman 1b7c140
fix: avoid async autoclosure in paykit refresh
ben-kaufman 3ea3f58
fix: tighten public paykit lifecycle
ben-kaufman 5ee3d84
fix: address public paykit cleanup review
ben-kaufman a41afa5
fix: align paykit contacts with android
ben-kaufman c589229
chore: update paykit bindings to rc5
ben-kaufman 31b2b28
fix: use network-specific paykit onchain methods
ben-kaufman 768c3d0
Merge branch 'master' into codex-paykit-public-endpoints-pr527
ovitrif 2881537
fix: address paykit review feedback
ben-kaufman 6aeb1a8
Merge branch 'master' into codex-paykit-public-endpoints-pr527
ben-kaufman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
Bitkit.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import BitkitCore | ||
|
|
||
| extension Activity { | ||
| func contact(in contacts: [PubkyContact]) -> PubkyContact? { | ||
| guard let contactPublicKey else { return nil } | ||
| return contacts.first(where: { PubkyPublicKeyFormat.matches($0.publicKey, contactPublicKey) }) | ||
| } | ||
|
|
||
| private var contactPublicKey: String? { | ||
| switch self { | ||
| case let .lightning(lightning): | ||
| return lightning.contact | ||
|
|
||
| case let .onchain(onchain): | ||
| return onchain.contact | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.