Skip to content

Commit

Permalink
version 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fergalwalsh committed Feb 27, 2024
1 parent 9b40bbf commit 542c477
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions algojig/check.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from algojig import get_suggested_params, generate_accounts, dump
from algojig.ledger import JigLedger
from algosdk.transaction import PaymentTxn

secrets, addresses = generate_accounts(2)

sp = get_suggested_params()

ledger = JigLedger()
ledger.set_account_balance(addresses[0], 1_000_000)

transactions = [
PaymentTxn(
sender=addresses[0],
sp=sp,
receiver=addresses[1],
amt=200_000,
).sign(secrets[0]),
]
block = ledger.eval_transactions(transactions)
print("Looks like it works!")
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup
PACKAGE_NAME = "algojig"
VERSION = "0.0.1"
VERSION = "0.0.2"
DESCRIPTION = "A testing jig for the Algorand Virtual Machine."
KEYWORDS = "algorand teal tealish"
LICENSE = "MIT"
Expand Down

0 comments on commit 542c477

Please sign in to comment.