diff --git a/PyBlock.py b/PyBlock.py index 68fe4d5..c065b2c 100644 --- a/PyBlock.py +++ b/PyBlock.py @@ -448,14 +448,6 @@ def callGitWardenTerminal(): git = "git clone https://github.com/pxsocs/warden_terminal.git" os.system(git) os.system("cd warden_terminal && python3 node_warden.py") - -#---------------------------------SatSale---------------------------------- -def callGitSatSale(): - if not os.path.isdir('satsale'): - git = "git clone https://github.com/nickfarrow/SatSale.git" - os.system(git) - os.system("cd satsale && python3 satsale.py") - #---------------------------------ColdCore----------------------------------------- def callColdCore(): @@ -797,52 +789,9 @@ def APIMenuLOCAL(): \033[1;32;40mJ.\033[0;37;40m SatNode FREE \033[1;32;40mK.\033[0;37;40m Weather FREE \033[1;32;40mL.\033[0;37;40m Arcade FREE - \033[1;32;40mM.\033[0;37;40m WhaleAlert FREE - \033[1;32;40mN.\033[0;37;40m Zebedee FREE - \033[1;32;40mO.\033[0;37;40m LNMarkets FREE - \033[1;32;40mP.\033[0;37;40m SatSale FREE \u001b[31;1mR.\033[0;37;40m Return \n\n\x1b[?25h""".format(n if path['bitcoincli'] else a , alias['alias'], d['blocks'], version, checkupdate(),lnbitspaid = "PAID" if os.path.isfile("lnbitSN.conf") else "PREMIUM", lnpaypaid = "PAID" if os.path.isfile("lnpaySN.conf") else "PREMIUM", opennodepaid = "PAID" if os.path.isfile("opennodeSN.conf") else "PREMIUM")) platfformsLOCALcontrol(input("\033[1;32;40mSelect option: \033[0;37;40m")) - -def LNMAMenuLOCAL(): - clear() - blogo() - sysinfo() - if path['bitcoincli']: - n = "Local" if path['bitcoincli'] else "Remote" - bitcoincli = " getblockchaininfo" - a = os.popen(path['bitcoincli'] + bitcoincli).read() - b = json.loads(a) - d = b - - lncli = " getinfo" - lsd = os.popen(lndconnectload['ln'] + lncli).read() - lsd0 = str(lsd) - alias = json.loads(lsd0) - else: - a = "Local" if path['bitcoincli'] else "Remote" - blk = rpc('getblockchaininfo') - d = blk - - cert_path = lndconnectload["tls"] - macaroon = codecs.encode(open(lndconnectload["macaroon"], 'rb').read(), 'hex') - headers = {'Grpc-Metadata-macaroon': macaroon} - url = 'https://{}/v1/getinfo'.format(lndconnectload["ip_port"]) - r = requests.get(url, headers=headers, verify=cert_path) - alias = r.json() - print("""\t\t - \033[1;37;40m{}\033[0;37;40m: \033[1;31;40mPyBLOCK\033[0;37;40m - \033[1;37;40mNode\033[0;37;40m: \033[1;33;40m{}\033[0;37;40m - \033[1;37;40mBlock\033[0;37;40m: \033[1;32;40m{}\033[0;37;40m - \033[1;37;40mVersion\033[0;37;40m: {} - - \033[1;32;40mA.\033[0;37;40m Login - \033[1;32;40mB.\033[0;37;40m Withdraw - \033[1;32;40mC.\033[0;37;40m Deposit - \u001b[31;1mR.\033[0;37;40m Return - \n\n\x1b[?25h""".format(n if path['bitcoincli'] else a , alias['alias'], d['blocks'], version, checkupdate(),lnbitspaid = "PAID" if os.path.isfile("lnbitSN.conf") else "PREMIUM", lnpaypaid = "PAID" if os.path.isfile("lnpaySN.conf") else "PREMIUM", opennodepaid = "PAID" if os.path.isfile("opennodeSN.conf") else "PREMIUM")) - platfformsLOCALcontrol(input("\033[1;32;40mSelect option: \033[0;37;40m")) def decodeHex(): clear() @@ -903,9 +852,8 @@ def miscellaneousLOCAL(): \033[1;37;40mBlock\033[0;37;40m: \033[1;32;40m{}\033[0;37;40m \033[1;37;40mVersion\033[0;37;40m: {} - \u001b[38;5;202mA.\033[0;37;40m Fun ₿ + \u001b[38;5;202mA.\033[0;37;40m FunB \u001b[38;5;202mB.\033[0;37;40m Sysinfo - \u001b[38;5;202mC.\033[0;37;40m Bitcoin Fun \u001b[31;1mR.\033[0;37;40m Return \n\n\x1b[?25h""".format(n if path['bitcoincli'] else a , alias['alias'], d['blocks'], version, checkupdate())) miscellaneousLOCALmenu(input("\033[1;32;40mSelect option: \033[0;37;40m")) @@ -1303,7 +1251,6 @@ def APILnbit(): \033[1;32;40mE.\033[0;37;40m List PayWalls \033[1;32;40mF.\033[0;37;40m Create LNURL \033[1;32;40mG.\033[0;37;40m List LNURL - \033[1;32;40mH.\033[0;37;40m Wallet Balance \u001b[31;1mR.\033[0;37;40m Return \n\n\x1b[?25h""".format(n if path['bitcoincli'] else a , alias['alias'], d['blocks'], version, bitLN['NN'], checkupdate())) menuLNBPI(input("\033[1;32;40mSelect option: \033[0;37;40m")) @@ -1480,83 +1427,6 @@ def APITallyCo(): \u001b[31;1mR.\033[0;37;40m Return \n\n\x1b[?25h""".format(n if path['bitcoincli'] else a , alias['alias'], d['blocks'], version, checkupdate())) menuTallyCo(input("\033[1;32;40mSelect option: \033[0;37;40m")) - -def WhaleApi(): - clear() - blogo() - sysinfo() - if path['bitcoincli']: - n = "Local" if path['bitcoincli'] else "Remote" - bitcoincli = " getblockchaininfo" - a = os.popen(path['bitcoincli'] + bitcoincli).read() - b = json.loads(a) - d = b - - lncli = " getinfo" - lsd = os.popen(lndconnectload['ln'] + lncli).read() - lsd0 = str(lsd) - alias = json.loads(lsd0) - else: - a = "Local" if path['bitcoincli'] else "Remote" - blk = rpc('getblockchaininfo') - d = blk - - cert_path = lndconnectload["tls"] - macaroon = codecs.encode(open(lndconnectload["macaroon"], 'rb').read(), 'hex') - headers = {'Grpc-Metadata-macaroon': macaroon} - url = 'https://{}/v1/getinfo'.format(lndconnectload["ip_port"]) - r = requests.get(url, headers=headers, verify=cert_path) - alias = r.json() - print("""\t\t - \033[1;37;40m{}\033[0;37;40m: \033[1;31;40mPyBLOCK\033[0;37;40m - \033[1;37;40mNode\033[0;37;40m: \033[1;33;40m{}\033[0;37;40m - \033[1;37;40mBlock\033[0;37;40m: \033[1;32;40m{}\033[0;37;40m - \033[1;37;40mVersion\033[0;37;40m: {} - \033[0;37;40mWhaleAlert - \033[1;32;40mA.\033[0;37;40m Whale Alert - \033[1;32;40mB.\033[0;37;40m Transactions - \u001b[31;1mR.\033[0;37;40m Return - \n\n\x1b[?25h""".format(n if path['bitcoincli'] else a , alias['alias'], d['blocks'], version, checkupdate())) - menuWhaleA(input("\033[1;32;40mSelect option: \033[0;37;40m")) - -def ZebedeeApi(): - clear() - blogo() - sysinfo() - if path['bitcoincli']: - n = "Local" if path['bitcoincli'] else "Remote" - bitcoincli = " getblockchaininfo" - a = os.popen(path['bitcoincli'] + bitcoincli).read() - b = json.loads(a) - d = b - - lncli = " getinfo" - lsd = os.popen(lndconnectload['ln'] + lncli).read() - lsd0 = str(lsd) - alias = json.loads(lsd0) - else: - a = "Local" if path['bitcoincli'] else "Remote" - blk = rpc('getblockchaininfo') - d = blk - - cert_path = lndconnectload["tls"] - macaroon = codecs.encode(open(lndconnectload["macaroon"], 'rb').read(), 'hex') - headers = {'Grpc-Metadata-macaroon': macaroon} - url = 'https://{}/v1/getinfo'.format(lndconnectload["ip_port"]) - r = requests.get(url, headers=headers, verify=cert_path) - alias = r.json() - print("""\t\t - \033[1;37;40m{}\033[0;37;40m: \033[1;31;40mPyBLOCK\033[0;37;40m - \033[1;37;40mNode\033[0;37;40m: \033[1;33;40m{}\033[0;37;40m - \033[1;37;40mBlock\033[0;37;40m: \033[1;32;40m{}\033[0;37;40m - \033[1;37;40mVersion\033[0;37;40m: {} - \033[0;37;40mWhaleAlert - \033[1;32;40mA.\033[0;37;40m Wallet Balance - \033[1;32;40mB.\033[0;37;40m New invoice - \033[1;32;40mC.\033[0;37;40m Pay invoice - \u001b[31;1mR.\033[0;37;40m Return - \n\n\x1b[?25h""".format(n if path['bitcoincli'] else a , alias['alias'], d['blocks'], version, checkupdate())) - menuZebeD(input("\033[1;32;40mSelect option: \033[0;37;40m")) #-------------------------------- SETTINGS ----------------------------------------------- @@ -3202,10 +3072,6 @@ def menuLNBPI(menuLNQ): clear() blogo() lnbitsLNURLwList() - elif menuLNQ in ["H", "h"]: - clear() - blogo() - lnbitsWalletBalance() elif menuLNQ in ["R", "r"]: menuSelection() @@ -3289,22 +3155,6 @@ def menuWeather(menuWD): wttrDataV2() elif menuWD in ["C", "c"]: wttrDataV3() - -def menuWhaleAlert(menuWD): - if menuWD in ["A", "a"]: - whalDataV1() - elif menuWD in ["B", "b"]: - whalDataV2() - elif menuWD in ["C", "c"]: - whalDataV3() - -def menuZebedee(menuWD): - if menuWD in ["A", "a"]: - zebeDataV1() - elif menuWD in ["B", "b"]: - zebeDataV2() - elif menuWD in ["C", "c"]: - zebeDataV3() def mainmenuLOCALcontrol(menuS): #Execution of the Main Menu options if menuS in ["A", "a"]: diff --git a/ppi.py b/ppi.py index 0e11e8b..b8c147c 100644 --- a/ppi.py +++ b/ppi.py @@ -233,106 +233,6 @@ def bwtConn(): pass #-----------------------------END bwt.dev-------------------------------- -#-----------------------------BitcoinFun-------------------------------- - -def bitfConn(): - try: - clear() - blogo() - closed() - conn = "w3m https://bitcoinexplorer.org/fun" - a = os.popen(conn).read() - clear() - blogo() - closed() - print(a) - input("\a\nContinue...") - except: - pass - -#-----------------------------END BitcoinFun-------------------------------- -#-----------------------------WhaleAlert-------------------------------- - -def whalConn1(): - try: - clear() - blogo() - closed() - conn = "curl -s https://api.whale-alert.io/v1/transactions?api_key=3LYGErNwoCSj6QUsWOWdpEuGTuYxakMZ&limit=7¤cy=BTC" - a = os.popen(conn).read() - clear() - blogo() - closed() - print(a) - input("\a\nContinue...") - except: - pass -def whalConn2(): - try: - clear() - blogo() - closed() - conn = "curl -s https://api.whale-alert.io/v1/transactions?api_key=3LYGErNwoCSj6QUsWOWdpEuGTuYxakMZ&min_value=500000&limit=7¤cy=BTC" - a = os.popen(conn).read() - clear() - blogo() - closed() - print(a) - input("\a\nContinue...") - except: - pass - -#-----------------------------END WhaleAlert-------------------------------- - -#-----------------------------Zebedee-------------------------------- - -def zebeConn1(): - try: - clear() - blogo() - closed() - conn = "curl --location --request GET 'https://api.zebedee.io/v0/wallet' ' + dn + """ -H "X-Api-Key: 1d646820055e4e2da218e801eaacfc94" -H "Content-type: application/json" """ - a = os.popen(conn).read() - clear() - blogo() - closed() - print(a) - input("\a\nContinue...") - except: - pass -def zebeConn2(): - try: - clear() - blogo() - closed() - conn = "curl --location --request POST 'https://api.zebedee.io/v0/charges' ' + dn + """ -H "X-Api-Key: 1d646820055e4e2da218e801eaacfc94" -H "Content-type: application/json" """ -}'" - a = os.popen(conn).read() - clear() - blogo() - closed() - print(a) - input("\a\nContinue...") - except: - pass -def zebeConn3(): - try: - clear() - blogo() - closed() - conn = "curl --location --request POST 'https://api.zebedee.io/v0/payments' ' + dn + """ -H "X-Api-Key: 1d646820055e4e2da218e801eaacfc94" -H "Content-type: application/json" """ - "invoice": "" -}'" - a = os.popen(conn).read() - clear() - blogo() - closed() - print(a) - input("\a\nContinue...") - except: - pass - -#-----------------------------END Zebedee-------------------------------- #-----------------------------wttr.in-------------------------------- def wttrDataV1():