-
Notifications
You must be signed in to change notification settings - Fork 12
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
17
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
17 commits
Select commit
Hold shift + click to select a range
387f646
interfaces, move cdk to interfaces.
d4rp4t 681101f
add basic btcpayserver support
d4rp4t c7dec13
logs and invoice details
d4rp4t 53c35cf
test: Add integration tests and infrastructure for BTCPay Server
a1denvalu3 daade0a
ci: Add BTCPay integration workflow
a1denvalu3 3437eec
feat: Add NUT-18 POST redemption support for BTCPay
a1denvalu3 72f0301
handle missing cashu payment prompt
d4rp4t ad04d2a
fix rebase problems
d4rp4t 1275720
change test connection uri to require read_invoice permission
d4rp4t 7283141
lock non-used settings while connected to btcpay
d4rp4t cb3272a
handle expired btcpay invoices
d4rp4t 65c17d6
add more tests
d4rp4t 8be204c
fix tests
d4rp4t 69f8f72
fix payment state
d4rp4t fdbba4a
add logs to btcpayserver
d4rp4t 4366b3c
fix nfc failing
d4rp4t 3d5833b
fix btcpay invoice spam
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
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.