mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-11-19 15:56:27 +01:00
update to nostr-sdk 0.38, improve prints
This commit is contained in:
@@ -11,7 +11,7 @@ from nostr_dvm.utils.print_utils import bcolors
|
||||
import dotenv
|
||||
from nostr_sdk import Keys, Client, Tag, EventBuilder, Filter, HandleNotification, Timestamp, nip04_decrypt, \
|
||||
NostrSigner, Event, Kind, PublicKey
|
||||
from nostr_dvm.utils.nostr_utils import send_event, check_and_set_private_key
|
||||
from nostr_dvm.utils.nostr_utils import send_event, check_and_set_private_key, print_send_result
|
||||
from nostr_dvm.utils.definitions import EventDefinitions
|
||||
|
||||
|
||||
@@ -46,8 +46,8 @@ async def nostr_client_generic_test(ptag):
|
||||
# We connect the client
|
||||
await client.connect()
|
||||
# and send the Event.
|
||||
result = await send_event(event, client=client, dvm_config=DVMConfig())
|
||||
print(result)
|
||||
response_status = await send_event(event, client=client, dvm_config=DVMConfig())
|
||||
print_send_result(response_status)
|
||||
|
||||
|
||||
async def nostr_client(target_dvm_npub):
|
||||
|
||||
@@ -14,7 +14,7 @@ from nostr_sdk import PublicKey, Client, NostrSigner, EventBuilder, Kind, Tag, K
|
||||
import asyncio
|
||||
from nostr_dvm.utils.definitions import EventDefinitions
|
||||
from nostr_dvm.utils.dvmconfig import DVMConfig
|
||||
from nostr_dvm.utils.nostr_utils import send_event, check_and_set_private_key
|
||||
from nostr_dvm.utils.nostr_utils import send_event, check_and_set_private_key, print_send_result
|
||||
from nostr_dvm.utils.nut_wallet_utils import NutZapWallet
|
||||
from nostr_dvm.utils.print_utils import bcolors
|
||||
|
||||
@@ -36,8 +36,8 @@ async def nostr_client_generic_test(ptag):
|
||||
for relay in relay_list:
|
||||
await client.add_relay(relay)
|
||||
await client.connect()
|
||||
result = await send_event(event, client=client, dvm_config=DVMConfig())
|
||||
print(result)
|
||||
response_status = await send_event(event, client=client, dvm_config=DVMConfig())
|
||||
print_send_result(response_status)
|
||||
|
||||
|
||||
async def nostr_client(target_dvm_npub):
|
||||
|
||||
Reference in New Issue
Block a user