-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b40bbf
commit 542c477
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters