Skip to content

Commit

Permalink
Merge pull request #72 from mraniki/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
mraniki authored Apr 14, 2023
2 parents 6fec45b + a0b6bcf commit 8a9883b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
1 change: 0 additions & 1 deletion .github/workflows/🐍build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
branches: [ "main","dev"]
paths-ignore:
- "docs/**"
- "examples/**"
- "*.md"

jobs:
Expand Down
14 changes: 6 additions & 8 deletions examples/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@
import logging
import os
import time

import requests
from dotenv import load_dotenv
import asyncio
from web3 import Web3

from healthchecks_io import AsyncClient, CheckCreate

#YOUR VARIABLES
load_dotenv()
healthchecks_io_api = os.getenv("HEALTHCHECK_API", "1X23Q4ACZ5T3KXG67WIAH7X8C510F1972TM")

healthchecks_io_api = os.getenv("HEALTHCHECK_API", "1X23Q4ACZ5T3KXG67WIAH7X8C510F191234")
healthchecks_io_uuid = os.getenv("HEALTHCHECK_UUID", "https://hc-ping.com/e4d29002-cc1a-487c-8510-9e791cd356fb")

#chain ID being used refer to https://chainlist.org/
chain = os.getenv("CHAIN_ID", 10)
Expand Down Expand Up @@ -46,10 +45,8 @@

async def main():
while True:
client = AsyncClient(api_key=healthchecks_io_api)
check = await client.create_check(CheckCreate(name="dxsp test", tags="dxsp"))
print(check)

healthcheck = requests.get(url= healthchecks_io_uuid, timeout=10)
#SWAP HELPER
dex = DexSwap(chain_id=chain,wallet_address=wallet_address,private_key=private_key,block_explorer_api=block_explorer_api)

Expand Down Expand Up @@ -77,7 +74,8 @@ async def main():
#getABI
# bitcoinaddressABI = await dex.get_abi(bitcoinaddress)
# print(bitcoinaddressABI)
time.sleep(10)
time.sleep(20)


if __name__ == "__main__":
asyncio.run(main())
Expand Down

0 comments on commit 8a9883b

Please sign in to comment.