pyblock/pybitblock/donation.py
GaltRanch 0a70a7260a Eliminate all star imports across the entire codebase
Replace every `from X import *` with explicit named imports:
- SPV/spvblock.py: 11 star imports resolved
- SPV/ppi.py: 4 star imports resolved, duplicate import removed
- SPV/nodeconnection.py, SPV/sysinf.py, SPV/apisnd.py, SPV/donation.py
- mempoolclock.py, sysinf.py, apisnd.py, donation.py

Removed unused imports (art, nodeconnection in donation, logos in apisnd).
Zero star imports remain in the project.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 12:13:33 -03:00

100 lines
2.3 KiB
Python

#Developer: Curly60e
#PyBLOCK its a clock of the Bitcoin blockchain.
import requests
import qrcode
# nodeconnection not used in this module
def donationAddr():
qr = qrcode.QRCode(
version=1,
error_correction=qrcode.constants.ERROR_CORRECT_L,
box_size=10,
border=4,
)
url = 'bc1prwjajvvax2rkm2wzelpfzzc2ncywht69pswnurhzdfj9qujhyxzsqpd3eg'
print("\033[1;30;47m")
qr.add_data(url)
qr.print_ascii()
print("\033[0;37;40m")
qr.clear()
print(f"Bitcoin Address Bech32: {url}")
def donationPayNym():
qr = qrcode.QRCode(
version=1,
error_correction=qrcode.constants.ERROR_CORRECT_L,
box_size=10,
border=4,
)
url = 'PM8TJhNTTq3YVocXuPtLjKx7pKkdUxqwTerWJ2j2a7dNitgyMmBPN6gK61yE17N2vgvQvKYokXktt6D6GZFTmocvDJhaUJfHt7ehEMmthjsT3NQHseFM'
print("\033[1;30;47m")
qr.add_data(url)
qr.print_ascii()
print("\033[0;37;40m")
qr.clear()
print(f"PayNym: {url}")
#Dev LN
def donationLN():
qr = qrcode.QRCode(
version=1,
error_correction=qrcode.constants.ERROR_CORRECT_L,
box_size=10,
border=4,
)
url = 'holycherry05@phoenixwallet.me'
print("\033[1;30;47m")
qr.add_data(url)
qr.print_ascii()
print("\033[0;37;40m")
qr.clear()
print(f"Lightning Address: {url}")
#Tester Address
def donationAddrTst():
qr = qrcode.QRCode(
version=1,
error_correction=qrcode.constants.ERROR_CORRECT_L,
box_size=10,
border=4,
)
url = 'bc1qwtzwu2evtchkvnf3ey6520yprsyv7vrjvhula5'
print("\033[1;30;47m")
qr.add_data(url)
qr.print_ascii()
print("\033[0;37;40m")
qr.clear()
print(f"Bitcoin Address Bech32: {url}")
#Tester LN
def donationLNTst():
qr = qrcode.QRCode(
version=1,
error_correction=qrcode.constants.ERROR_CORRECT_L,
box_size=10,
border=4,
)
url = 'sn@getalby.com'
print("\033[1;30;47m")
qr.add_data(url)
qr.print_ascii()
print("\033[0;37;40m")
qr.clear()
print(f"Lightning Address: {url}")
def decodeQR():
qr = qrcode.QRCode(
version=1,
error_correction=qrcode.constants.ERROR_CORRECT_L,
box_size=10,
border=4,
)
url = input("Insert your Bitcoin Address to show the QRCode: ")
print("\033[1;30;47m")
qr.add_data(url)
qr.print_ascii()
print("\033[0;37;40m")
qr.clear()
print(f"Bitcoin Address: {url}")