From 731a64494f0296b922a5898b9d3db5047ed5f741 Mon Sep 17 00:00:00 2001 From: Guillermo Rodriguez Date: Mon, 29 May 2023 21:00:47 -0300 Subject: [PATCH] Update url defaults --- skynet/cli.py | 24 ++++++++++++------------ skynet/frontend/telegram.py | 6 +++--- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/skynet/cli.py b/skynet/cli.py index 7248c6e..f249d38 100644 --- a/skynet/cli.py +++ b/skynet/cli.py @@ -100,7 +100,7 @@ def download(): @click.option( '--key', '-k', default=None) @click.option( - '--node-url', '-n', default='http://skynet.ancap.tech') + '--node-url', '-n', default='https://skynet.ancap.tech') @click.option( '--reward', '-r', default='20.0000 GPU') @click.option('--algo', '-a', default='midj') @@ -143,7 +143,7 @@ def enqueue( @skynet.command() @click.option( - '--node-url', '-n', default='http://skynet.ancap.tech') + '--node-url', '-n', default='https://skynet.ancap.tech') def queue(node_url: str): resp = requests.post( f'{node_url}/v1/chain/get_table_rows', @@ -158,7 +158,7 @@ def queue(node_url: str): @skynet.command() @click.option( - '--node-url', '-n', default='http://skynet.ancap.tech') + '--node-url', '-n', default='https://skynet.ancap.tech') @click.argument('request-id') def status(node_url: str, request_id: int): resp = requests.post( @@ -180,7 +180,7 @@ def status(node_url: str, request_id: int): @click.option( '--key', '-k', default=None) @click.option( - '--node-url', '-n', default='http://skynet.ancap.tech') + '--node-url', '-n', default='https://skynet.ancap.tech') @click.argument('request-id') def dequeue( account: str, @@ -207,7 +207,7 @@ def dequeue( @click.option( '--key', '-k', default=None) @click.option( - '--node-url', '-n', default='http://skynet.ancap.tech') + '--node-url', '-n', default='https://skynet.ancap.tech') @click.option( '--verifications', '-v', default=1) @click.option( @@ -241,7 +241,7 @@ def config( @click.option( '--key', '-k', default=None) @click.option( - '--node-url', '-n', default='http://skynet.ancap.tech') + '--node-url', '-n', default='https://skynet.ancap.tech') @click.argument('quantity') def deposit( account: str, @@ -286,11 +286,11 @@ def nodeos(): @click.option( '--auto-withdraw', '-w', default=True) @click.option( - '--node-url', '-n', default='http://skynet.ancap.tech') + '--node-url', '-n', default='https://skynet.ancap.tech') @click.option( - '--ipfs-url', '-n', default='/ip4/169.197.140.154/tcp/4001/p2p/12D3KooWKHKPFuqJPeqYgtUJtfZTHvEArRX2qvThYBrjuTuPg2Nx') + '--ipfs-url', '-n', default='/ip4/169.197.140.154/udp/4001/quic/p2p/12D3KooWKWogLFNEcNNMKnzU7Snrnuj84RZdMBg3sLiQSQc51oEv') @click.option( - '--algos', '-A', default=json.dumps(['midj'])) + '--algos', '-A', default=json.dumps(['midj', 'ink'])) def dgpu( loglevel: str, account: str, @@ -343,11 +343,11 @@ def dgpu( @click.option( '--key', '-k', default=None) @click.option( - '--hyperion-url', '-n', default='http://test1.us.telos.net:42001') + '--hyperion-url', '-n', default='https://skynet.ancap.tech') @click.option( - '--node-url', '-n', default='http://skynet.ancap.tech') + '--node-url', '-n', default='https://skynet.ancap.tech') @click.option( - '--ipfs-url', '-n', default='/ip4/169.197.142.4/tcp/4001/p2p/12D3KooWKHKPFuqJPeqYgtUJtfZTHvEArRX2qvThYBrjuTuPg2Nx') + '--ipfs-url', '-n', default='/ip4/169.197.140.154/udp/4001/quic/p2p/12D3KooWKWogLFNEcNNMKnzU7Snrnuj84RZdMBg3sLiQSQc51oEv') @click.option( '--db-host', '-h', default='localhost:5432') @click.option( diff --git a/skynet/frontend/telegram.py b/skynet/frontend/telegram.py index c7e8d43..a556124 100644 --- a/skynet/frontend/telegram.py +++ b/skynet/frontend/telegram.py @@ -86,11 +86,11 @@ def generate_reply_caption( ): ipfs_link = hlink( 'Get your image on IPFS', - f'http://test1.us.telos.net:8080/ipfs/{ipfs_hash}/image.png' + f'https://ipfs.ancap.tech/ipfs/{ipfs_hash}/image.png' ) explorer_link = hlink( 'SKYNET Transaction Explorer', - f'http://test1.us.telos.net:42001/v2/explore/transaction/{tx_hash}' + f'https://skynet.ancap.tech/v2/explore/transaction/{tx_hash}' ) meta_info = prepare_metainfo_caption(tguser, worker, reward, params) @@ -521,7 +521,7 @@ async def run_skynet_telegram( async def user_stats(message): user = message.from_user.id - await db_call('get_or_create_user', user.id) + await db_call('get_or_create_user', user) generated, joined, role = await db_call('get_user_stats', user) stats_str = f'generated: {generated}\n'