Skip to content

Commit

Permalink
fix: make example workable for now
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jul 25, 2023
1 parent 18a0cb1 commit 806c17f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ __pycache__

dist/
.DS_Store

data.sqlite
7 changes: 4 additions & 3 deletions scripts/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
callback=lambda c, p, v: StreamManager(address=v),
)
@click.option("--token", default="0xbc083d97825da7f7182f37fcec51818e196af1ff")
def cli(cli_ctx, network, sm, token):
@click.option("--ecosystem-name", default="devnet")
def cli(cli_ctx, network, sm, token, ecosystem_name):
network = cli_ctx.provider.network.name
if network != "sepolia-fork":
cli_ctx.abort("Currently, this script only works on sepolia-fork.")
Expand All @@ -39,10 +40,10 @@ def cli(cli_ctx, network, sm, token):

# Use an application-specific reason.
reason = {
"ecosystem_name": "ethereum",
"ecosystem_name": ecosystem_name,
"block_height": 17743333,
"block_time": 15,
"bot_names": ["chainlink"],
"bot_names": [],
}
minimum = int(sm.MIN_STREAM_LIFE.total_seconds())
amt_per_sec = token.balanceOf(payer) // minimum
Expand Down

0 comments on commit 806c17f

Please sign in to comment.