diff --git a/README.md b/README.md index aa6a763..c3d58f9 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ The ledger state is set declaratively. Transactions are evaluated to produce a b Standalone script: ```py from algojig import JigLedger, get_suggested_params, generate_accounts -from algosdk.future.transaction import PaymentTxn +from algosdk.transaction import PaymentTxn secrets, addresses = generate_accounts(2) sp = get_suggested_params() diff --git a/algojig/__init__.py b/algojig/__init__.py index 172e0f7..f0f21b4 100644 --- a/algojig/__init__.py +++ b/algojig/__init__.py @@ -2,7 +2,7 @@ from pprint import pprint from algosdk.account import generate_account -from algosdk.future.transaction import SuggestedParams +from algosdk.transaction import SuggestedParams from algosdk.encoding import encode_address diff --git a/algojig/dryrun.py b/algojig/dryrun.py index f9d90c9..bb748b3 100644 --- a/algojig/dryrun.py +++ b/algojig/dryrun.py @@ -2,7 +2,7 @@ from dataclasses import dataclass from typing import Dict, List import algosdk -from algosdk.future.transaction import SuggestedParams +from algosdk.transaction import SuggestedParams from algosdk.v2client import models from algosdk.v2client.algod import AlgodClient from algosdk.encoding import encode_address diff --git a/algojig/ledger.py b/algojig/ledger.py index 8113d2e..26e7199 100644 --- a/algojig/ledger.py +++ b/algojig/ledger.py @@ -4,7 +4,7 @@ from algosdk.account import generate_account from algosdk.encoding import decode_address, encode_address, msgpack -from algosdk.future.transaction import write_to_file +from algosdk.transaction import write_to_file from algosdk.logic import get_application_address from . import gojig diff --git a/examples/boxes.py b/examples/boxes.py index 1f5afe0..9fe7d55 100644 --- a/examples/boxes.py +++ b/examples/boxes.py @@ -1,6 +1,6 @@ from algojig import JigLedger, get_suggested_params, generate_accounts from algojig import TealishProgram -from algosdk.future.transaction import ApplicationNoOpTxn +from algosdk.transaction import ApplicationNoOpTxn from algosdk.logic import get_application_address secrets, addresses = generate_accounts(2) diff --git a/examples/counter_prize.py b/examples/counter_prize.py index 60da084..1e7f236 100644 --- a/examples/counter_prize.py +++ b/examples/counter_prize.py @@ -1,6 +1,6 @@ from algojig import JigLedger, get_suggested_params, generate_accounts, dump from algojig import TealishProgram -from algosdk.future.transaction import ApplicationNoOpTxn +from algosdk.transaction import ApplicationNoOpTxn from algosdk.logic import get_application_address secrets, addresses = generate_accounts(2) diff --git a/examples/example1.py b/examples/example1.py index 128ecaf..f7adb44 100644 --- a/examples/example1.py +++ b/examples/example1.py @@ -1,6 +1,6 @@ from algojig import get_suggested_params, generate_accounts, dump from algojig.ledger import JigLedger -from algosdk.future.transaction import PaymentTxn +from algosdk.transaction import PaymentTxn secrets, addresses = generate_accounts(2) diff --git a/examples/example2_1.py b/examples/example2_1.py index 6dc5d5e..2631900 100644 --- a/examples/example2_1.py +++ b/examples/example2_1.py @@ -1,6 +1,6 @@ from algojig import JigLedger, get_suggested_params, generate_accounts, dump from algojig import TealProgram -from algosdk.future.transaction import ApplicationNoOpTxn +from algosdk.transaction import ApplicationNoOpTxn secrets, addresses = generate_accounts(2) sp = get_suggested_params() diff --git a/examples/rekey1.py b/examples/rekey1.py index af806d4..bb20e32 100644 --- a/examples/rekey1.py +++ b/examples/rekey1.py @@ -1,6 +1,6 @@ from algojig import get_suggested_params, generate_accounts, dump from algojig.ledger import JigLedger -from algosdk.future.transaction import PaymentTxn +from algosdk.transaction import PaymentTxn secrets, addresses = generate_accounts(3) diff --git a/examples/test_counter_prize.py b/examples/test_counter_prize.py index 7aeb5cd..d4e5b28 100644 --- a/examples/test_counter_prize.py +++ b/examples/test_counter_prize.py @@ -1,7 +1,7 @@ import unittest from algojig import JigLedger, get_suggested_params, generate_accounts from algojig import TealishProgram -from algosdk.future.transaction import ApplicationNoOpTxn +from algosdk.transaction import ApplicationNoOpTxn from algosdk.logic import get_application_address secrets, addresses = generate_accounts(2) diff --git a/setup.py b/setup.py index 05aac95..114b55d 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ package_data={"algojig": ["algojig_*"]}, include_package_data=True, install_requires=[ - "py-algorand-sdk==1.20.0, <2.0", + "py-algorand-sdk>=2.0.0", ], classifiers=[ "Development Status :: 2 - Pre-Alpha", diff --git a/tests/test_ledger.py b/tests/test_ledger.py index cec758e..0b5cbc4 100644 --- a/tests/test_ledger.py +++ b/tests/test_ledger.py @@ -2,7 +2,7 @@ from algojig import JigLedger, generate_accounts, get_suggested_params from algojig.teal import TealProgram -from algosdk.future.transaction import (ApplicationNoOpTxn, AssetTransferTxn, +from algosdk.transaction import (ApplicationNoOpTxn, AssetTransferTxn, LogicSigAccount, LogicSigTransaction, PaymentTxn, assign_group_id)