mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-19 04:31:35 +00:00
Merge branch 'main' into the-federation-layer-v0.6.0
This commit is contained in:
commit
30f7c047c6
3
.github/workflows/frontend-build.yml
vendored
3
.github/workflows/frontend-build.yml
vendored
@ -7,6 +7,7 @@ on:
|
|||||||
semver:
|
semver:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
default: ''
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
paths: [ "frontend" ]
|
paths: [ "frontend" ]
|
||||||
@ -85,6 +86,8 @@ jobs:
|
|||||||
|
|
||||||
# Invoke pre-release image build if this was not a tag push
|
# Invoke pre-release image build if this was not a tag push
|
||||||
# Docker images tagged only with short commit hash
|
# Docker images tagged only with short commit hash
|
||||||
|
- name: Print semver
|
||||||
|
run: echo The semver is ${{ github.event.inputs.semver }}
|
||||||
- name: 'Invoke Coodinator Image CI'
|
- name: 'Invoke Coodinator Image CI'
|
||||||
if: inputs.semver == ''
|
if: inputs.semver == ''
|
||||||
uses: benc-uk/workflow-dispatch@v121
|
uses: benc-uk/workflow-dispatch@v121
|
||||||
|
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
@ -32,39 +32,38 @@ jobs:
|
|||||||
|
|
||||||
if [ "$coordinatorV" = "$clientV" ] && [ "$coordinatorV" = "$tagV" ] && [ "$coordinatorV" = "$androidV" ]; then
|
if [ "$coordinatorV" = "$clientV" ] && [ "$coordinatorV" = "$tagV" ] && [ "$coordinatorV" = "$androidV" ]; then
|
||||||
echo "Versions match!"
|
echo "Versions match!"
|
||||||
echo '::set-output name=semver::'$semver
|
echo "semver=$semver" >> $GITHUB_OUTPUT #echo '::set-output name=semver::'$semver
|
||||||
else
|
else
|
||||||
echo "Versions do not match! You might have forgotten to update the version on a component."; exit $ERRCODE;
|
echo "Versions do not match! You might have forgotten to update the version on a component."; exit $ERRCODE;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
integration-tests:
|
|
||||||
uses: RoboSats/robosats/.github/workflows/integration-tests.yml@main
|
|
||||||
needs: check-versions
|
|
||||||
|
|
||||||
frontend-build:
|
frontend-build:
|
||||||
uses: RoboSats/robosats/.github/workflows/frontend-build.yml@main
|
uses: RoboSats/robosats/.github/workflows/frontend-build.yml@main
|
||||||
needs: check-versions
|
needs: check-versions
|
||||||
with:
|
with:
|
||||||
semver: ${{ needs.check-versions.outputs.semver }}
|
semver: ${{ needs.check-versions.outputs.semver }}
|
||||||
|
|
||||||
|
integration-tests:
|
||||||
|
uses: RoboSats/robosats/.github/workflows/integration-tests.yml@main
|
||||||
|
needs: [frontend-build, check-versions]
|
||||||
|
|
||||||
coordinator-image:
|
coordinator-image:
|
||||||
uses: RoboSats/robosats/.github/workflows/coordinator-image.yml@main
|
uses: RoboSats/robosats/.github/workflows/coordinator-image.yml@main
|
||||||
needs: [frontend-build] # django-test,
|
needs: [frontend-build, integration-tests, check-versions]
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
semver: ${{ needs.check-versions.outputs.semver }}
|
semver: ${{ needs.check-versions.outputs.semver }}
|
||||||
|
|
||||||
selfhosted-client-image:
|
selfhosted-client-image:
|
||||||
uses: RoboSats/robosats/.github/workflows/selfhosted-client-image.yml@main
|
uses: RoboSats/robosats/.github/workflows/selfhosted-client-image.yml@main
|
||||||
needs: frontend-build
|
needs: [frontend-build, check-versions]
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
semver: ${{ needs.check-versions.outputs.semver }}
|
semver: ${{ needs.check-versions.outputs.semver }}
|
||||||
|
|
||||||
web-client-image:
|
web-client-image:
|
||||||
uses: RoboSats/robosats/.github/workflows/web-client-image.yml@main
|
uses: RoboSats/robosats/.github/workflows/web-client-image.yml@main
|
||||||
needs: frontend-build
|
needs: [frontend-build, check-versions]
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
semver: ${{ needs.check-versions.outputs.semver }}
|
semver: ${{ needs.check-versions.outputs.semver }}
|
||||||
@ -76,7 +75,7 @@ jobs:
|
|||||||
semver: ${{ needs.check-versions.outputs.semver }}
|
semver: ${{ needs.check-versions.outputs.semver }}
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs: [check-versions, coordinator-image, client-image, android-build]
|
needs: [check-versions, integration-tests, coordinator-image, selfhosted-client-image, web-client-image, android-build]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
27
scripts/get_devfund_donations.py
Normal file
27
scripts/get_devfund_donations.py
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import os
|
||||||
|
import json
|
||||||
|
import requests
|
||||||
|
import base64
|
||||||
|
|
||||||
|
devfund_data_path = os.path.normpath(os.path.join("..", "devfund_pubkey.json"))
|
||||||
|
|
||||||
|
with open(devfund_data_path, "r") as f:
|
||||||
|
devfund_data = json.load(f)
|
||||||
|
|
||||||
|
macaroon = devfund_data["mainnet_invoices_readonly_macaroon_hex"]
|
||||||
|
url = f'https://{devfund_data["mainnet_rpcserver"]}:8080'
|
||||||
|
headers = {"Grpc-Metadata-macaroon": macaroon}
|
||||||
|
method = "/v1/invoices"
|
||||||
|
|
||||||
|
r = requests.get(url + method, headers=headers)
|
||||||
|
|
||||||
|
response_data = r.json()
|
||||||
|
|
||||||
|
for invoice in response_data["invoices"]:
|
||||||
|
if invoice["is_keysend"] and invoice["htlcs"][0]["custom_records"]["34349334"]:
|
||||||
|
print(f"Index {invoice['add_index']}")
|
||||||
|
print(
|
||||||
|
f"{base64.b64decode(invoice['htlcs'][0]['custom_records']['34349334']).decode('utf-8')}"
|
||||||
|
)
|
||||||
|
print(f"Amount {invoice['amt_paid_sat']} Sats")
|
||||||
|
print("----------------------")
|
Loading…
Reference in New Issue
Block a user