-
Notifications
You must be signed in to change notification settings - Fork 10
Feat/btcpay support #167
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
Open
d4rp4t
wants to merge
13
commits into
cashubtc:main
Choose a base branch
from
d4rp4t:feat/btcpay-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feat/btcpay support #167
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
fe3a0f7
interfaces, move cdk to interfaces.
d4rp4t 9148aa3
add basic btcpayserver support
d4rp4t 619f0e4
logs and invoice details
d4rp4t abb7672
test: Add integration tests and infrastructure for BTCPay Server
a1denvalu3 93decd8
ci: Add BTCPay integration workflow
a1denvalu3 41d8723
feat: Add NUT-18 POST redemption support for BTCPay
a1denvalu3 f2cad32
handle missing cashu payment prompt
d4rp4t bda3ca6
fix rebase problems
d4rp4t 397d403
change test connection uri to require read_invoice permission
d4rp4t 5a65048
lock non-used settings while connected to btcpay
d4rp4t 3cbe122
handle expired btcpay invoices
d4rp4t c093c8e
add more tests
d4rp4t ff3d612
fix tests
d4rp4t 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| name: BTCPay Integration Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "main", "master", "feat/*", "fix/*" ] | ||
| pull_request: | ||
| branches: [ "main", "master" ] | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
| - name: Set up JDK 21 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: '21' | ||
| distribution: 'temurin' | ||
| cache: 'gradle' | ||
|
|
||
| - name: Start BTCPay Server | ||
| working-directory: integration-tests/btcpay | ||
| run: docker compose up -d | ||
|
|
||
| - name: Provision BTCPay Server | ||
| working-directory: integration-tests/btcpay | ||
| run: | | ||
| chmod +x provision.sh | ||
| ./provision.sh | ||
| cp btcpay_env.properties ../../btcpay_env.properties | ||
|
|
||
| - name: Run Integration Tests | ||
| run: | | ||
| chmod +x gradlew | ||
| ./gradlew testDebugUnitTest --tests "com.electricdreams.numo.core.payment.impl.BtcPayPaymentServiceIntegrationTest.*" | ||
|
|
||
| - name: Cleanup | ||
| if: always() | ||
| working-directory: integration-tests/btcpay | ||
| run: docker compose down -v |
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 |
|---|---|---|
|
|
@@ -11,4 +11,5 @@ | |
| local.properties | ||
| .aider* | ||
| .vscode | ||
| release | ||
| release | ||
| btcpay_env.properties | ||
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are any of these changes needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean the changes to this file in ff3d612