Skip to content

Refactor graviton usage #628

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 209 commits into from
Jan 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
209 commits
Select commit Hold shift + click to select a range
d0f9d8d
upping max teal version
barnjamin Jun 24, 2022
749fb8c
adding program page related ops (#412)
barnjamin Jun 30, 2022
39a11c2
Add Replace (#413)
jdtzmn Jun 30, 2022
dd2c7ec
Add Block (#415)
jdtzmn Jun 30, 2022
8c3d2a0
Add JsonRef (#417)
jdtzmn Jun 30, 2022
839b985
Add Base64Decode (#418)
jdtzmn Jun 30, 2022
7cccdcb
Support Secp256r1 curve (#423)
jdtzmn Jun 30, 2022
9a26fec
Add VrfVerify (#419)
jdtzmn Jun 30, 2022
cc544aa
Add `Sha3_256` (#425)
jdtzmn Jun 30, 2022
6e83ae6
Support `FirstValidTime` transaction field (#424)
jdtzmn Jun 30, 2022
594e8e4
Add `Ed25519Verify_Bare` (#426)
jdtzmn Jun 30, 2022
0ba95e9
Merge branch 'master' into avm8
ahangsu Jul 13, 2022
e9af25f
Merge branch 'master' into avm8
ahangsu Jul 14, 2022
7c24013
AVM Boxes Ops in Pyteal (#438)
ahangsu Jul 20, 2022
ba260e6
Merge Teal7 to AVM8, and consolidate Teal to AVM versioning (#470)
ahangsu Jul 22, 2022
ed516f7
Merge branch 'master' into avm8
ahangsu Jul 22, 2022
055c981
change according to https://github.com/algorand/go-algorand/pull/4323…
ahangsu Aug 3, 2022
bc78e39
Merge branch 'master' into avm8-merge-master
ahangsu Aug 4, 2022
2c2b7b2
Merge branch 'master' into avm8
ahangsu Aug 15, 2022
61af648
Merge branch 'master' into avm8
ahangsu Aug 31, 2022
5282726
Merge branch 'master' into avm8
ahangsu Sep 15, 2022
76010b2
Changes to avm8 docs (#546)
jasonpaulos Sep 29, 2022
d767c66
Merge branch 'master' into avm8
ahangsu Oct 25, 2022
cc49a55
Support new AVM 8 account parameters (#555)
jdtzmn Oct 26, 2022
1d7cd6a
add frame ops to avm8 branch
ahangsu Oct 26, 2022
49d169e
specify FRAME_POINTER_VERSION in frame-op branch
ahangsu Oct 26, 2022
02f3775
just the work of abi data schema
ahangsu Oct 26, 2022
e8c5d2c
squashed
ahangsu Oct 19, 2022
a044f80
change in round trip test, stop something blocking me
ahangsu Oct 19, 2022
6739c00
update frame dig and proto use
ahangsu Oct 19, 2022
ce9aec8
fix var n loaded
ahangsu Oct 19, 2022
620c61e
documentation
ahangsu Oct 26, 2022
87d97b1
narrower name, module name
ahangsu Oct 27, 2022
80a40d8
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Oct 27, 2022
208be80
reformat evaluator code, less indentation
ahangsu Oct 27, 2022
d3fd16d
minor, found a bug on output setting in subroutine in frame pointer c…
ahangsu Oct 27, 2022
2b4bb17
one small step in testing, a big step for frame pointer!
ahangsu Oct 27, 2022
411f007
work in black box testing
ahangsu Oct 28, 2022
a70c125
0xBAD hack, need to revisit for ugly pass by for type system
ahangsu Oct 28, 2022
1e12ca0
move spot reserving in proto
ahangsu Oct 28, 2022
a5cd38a
reformat code a bit on black box example part
ahangsu Oct 31, 2022
7db5dfa
start changing abi roundtrip tesal file name
ahangsu Oct 31, 2022
e1dbcd7
roundtrip test
ahangsu Oct 31, 2022
ac98d94
comments
ahangsu Oct 31, 2022
cf0c331
still wristing with docker, revert space reserving stuffs
ahangsu Oct 31, 2022
769419b
minor, pure compilation more flexible
ahangsu Oct 31, 2022
d77b442
roundtrip dryrun flexibility
ahangsu Oct 31, 2022
20c0ef8
conditional factorial done, need int65 and complex130
ahangsu Oct 31, 2022
d056f4a
gravition abi test pytest mark parameterized
ahangsu Nov 1, 2022
6ba772a
module
ahangsu Nov 1, 2022
5840a8b
per review comments
ahangsu Nov 1, 2022
a596fc1
per review comments
ahangsu Nov 2, 2022
519c752
per review comments, depth -> frame_depth
ahangsu Nov 2, 2022
d0533f5
Merge branch 'frame-ops' into abi-value-data-schema
ahangsu Nov 2, 2022
48d0678
per review comments, on final type annotation
ahangsu Nov 2, 2022
7d4277b
per review comments, renaem to AbstractVar/FrameVar
ahangsu Nov 2, 2022
d93207d
per review comments, move storage model to AbstractVar, rough hack to…
ahangsu Nov 2, 2022
71ad8a6
better type checking in scratch slot
ahangsu Nov 2, 2022
921bf85
reformat imports and class decl for FrameVar and ScratchVar
ahangsu Nov 2, 2022
1012d4d
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 2, 2022
304f273
still thinking about hiding the _stored value
ahangsu Nov 2, 2022
7f019cd
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 2, 2022
4b688df
proto renaming stuffs
ahangsu Nov 2, 2022
0f5c916
per pr comment, rename to FrameVar
ahangsu Nov 2, 2022
37ee4cd
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 2, 2022
0924d94
take bury out
ahangsu Nov 2, 2022
c3acbb9
Merge branch 'frame-ops' into abi-value-data-schema
ahangsu Nov 2, 2022
81c2368
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 2, 2022
d1c52a2
pop popn
ahangsu Nov 2, 2022
52f24a4
Merge branch 'frame-ops' into abi-value-data-schema
ahangsu Nov 2, 2022
3277c51
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 2, 2022
d457f99
abstractvar.py
ahangsu Nov 2, 2022
1fa70d9
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 2, 2022
95bc48a
unexport FrameVar and AbstractVar
ahangsu Nov 2, 2022
972a259
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 2, 2022
8c41726
unexport use of frame ops
ahangsu Nov 2, 2022
01a04dd
Merge branch 'frame-ops' into abi-value-data-schema
ahangsu Nov 2, 2022
88da04f
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 2, 2022
075710e
rename to num allocs
ahangsu Nov 2, 2022
61551b8
remove _set_data_storage
ahangsu Nov 2, 2022
0a3b7b0
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 2, 2022
8855002
namedtuple set var method
ahangsu Nov 2, 2022
8eca96d
rename from stack_depth to frame_index
ahangsu Nov 2, 2022
debe17a
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 2, 2022
c241cfa
CHANGELOG.md
ahangsu Nov 2, 2022
dd687c7
Frame Ops to `avm8` branch PR (#585)
ahangsu Nov 2, 2022
6ae67e6
add frame ops to avm8 branch
ahangsu Oct 26, 2022
917229a
specify FRAME_POINTER_VERSION in frame-op branch
ahangsu Oct 26, 2022
892dd50
just the work of abi data schema
ahangsu Oct 26, 2022
5ec4124
narrower name, module name
ahangsu Oct 27, 2022
7b60233
per review comments, on final type annotation
ahangsu Nov 2, 2022
2055ce6
per review comments, renaem to AbstractVar/FrameVar
ahangsu Nov 2, 2022
f689937
per review comments, move storage model to AbstractVar, rough hack to…
ahangsu Nov 2, 2022
f362b57
better type checking in scratch slot
ahangsu Nov 2, 2022
a0f1a81
reformat imports and class decl for FrameVar and ScratchVar
ahangsu Nov 2, 2022
46b886b
still thinking about hiding the _stored value
ahangsu Nov 2, 2022
0d5eaf3
per pr comment, rename to FrameVar
ahangsu Nov 2, 2022
d02d73b
take bury out
ahangsu Nov 2, 2022
25a98a4
abstractvar.py
ahangsu Nov 2, 2022
2704c5a
unexport FrameVar and AbstractVar
ahangsu Nov 2, 2022
92c46f0
unexport use of frame ops
ahangsu Nov 2, 2022
5e256f8
remove _set_data_storage
ahangsu Nov 2, 2022
296f6cf
rename from stack_depth to frame_index
ahangsu Nov 2, 2022
bca1868
hide FRAME_POINTER_VERISON
ahangsu Nov 2, 2022
224bc9c
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 2, 2022
40ebb8c
hide FRAME_POINTER_VERISON
ahangsu Nov 2, 2022
a1770c4
Validate types option (#590)
tzaffi Nov 3, 2022
5193635
wrong import, blame my lsp
ahangsu Nov 3, 2022
2a57388
FrameVar error msg fix
ahangsu Nov 3, 2022
bb6ad15
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 3, 2022
00defe6
Merge branch 'master' into abi-value-data-schema
ahangsu Nov 3, 2022
a895cb9
scrape down the change of frame pointer from feature/fp-subroutine
ahangsu Nov 3, 2022
195dc76
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 3, 2022
630e046
Memory layout for frame var and frame ops (#593)
ahangsu Nov 7, 2022
e399e09
rename arg for mem layout, on return alloc number
ahangsu Nov 7, 2022
0a5b570
if there's nothing to initialize for local...
ahangsu Nov 7, 2022
8d97fa6
Merge branch 'feature/fp-subroutine' into feature/fp-subroutine-merge
ahangsu Nov 7, 2022
b8b6f32
update changes from mem layout
ahangsu Nov 7, 2022
29f186c
Merge branch 'master' into abi-value-data-schema
ahangsu Nov 8, 2022
596d6ac
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 8, 2022
f6994ae
minor change in type-check in computed-type
ahangsu Nov 8, 2022
de32b9a
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 8, 2022
21e9350
minor change in type-check in computed-type
ahangsu Nov 8, 2022
db2a00a
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 8, 2022
b0045ec
linewidth
ahangsu Nov 8, 2022
877e109
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 8, 2022
9daee52
some minor comments
ahangsu Nov 8, 2022
14275df
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 8, 2022
6ef76dd
revert to framevar version
ahangsu Nov 8, 2022
19a1fe2
use deferred only on scratch slot
ahangsu Nov 8, 2022
431026b
use deferred only on scratch slot, comments
ahangsu Nov 8, 2022
66a6416
spellings
ahangsu Nov 10, 2022
3bd25fa
remove unused class methods
ahangsu Nov 10, 2022
39f6f6b
remove scratchvar type check in var_n_load
ahangsu Nov 10, 2022
bb8f9e5
docstring explanation of validate type
ahangsu Nov 10, 2022
411c570
docstring
ahangsu Nov 10, 2022
14cc5ee
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 10, 2022
daf877d
docstring
ahangsu Nov 10, 2022
d8b5eb6
collect changes to basis pr
ahangsu Nov 10, 2022
c1d6dfb
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 10, 2022
935cc0c
wording check
ahangsu Nov 10, 2022
fe3b60d
good find on one more dupped stuff
ahangsu Nov 13, 2022
b80e1ae
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 13, 2022
55a838a
per Zeph's PR comments
ahangsu Nov 14, 2022
f1de3ec
no overshadowing version param
ahangsu Nov 14, 2022
370e3f5
Merge branch 'master' into abi-value-data-schema
ahangsu Nov 14, 2022
099836c
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 14, 2022
5cf0cf5
type_of subroutinecall
ahangsu Nov 14, 2022
4ac41b9
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 14, 2022
29be7ff
type_of subroutinecall
ahangsu Nov 14, 2022
ca4d75d
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 14, 2022
cd7d52c
remove all validate_type
ahangsu Nov 14, 2022
35cf94c
Merge branch 'abi-value-data-schema' into feature/fp-subroutine
ahangsu Nov 14, 2022
a70eb3d
Merge branch 'master' into feature/fp-subroutine
ahangsu Nov 14, 2022
dcb90dc
Test identical functionality across versions - just a POC and too slo…
Nov 15, 2022
f3476c5
bad alias
Nov 15, 2022
c9d9aa2
handle logic sigs and trace compiled teal in the pt dr executor
Nov 15, 2022
34ec871
port identity predicates to graviton_test.py
Nov 15, 2022
2d2666c
some examples failing. Might be a red herring, or might be related to…
Nov 15, 2022
b7d77a2
fixing wrong stack mechanism for dynamic scratch var
ahangsu Nov 15, 2022
273d304
fixing wrong stack mechanism for dynamic scratch var
ahangsu Nov 15, 2022
b681c24
Merge branch 'feature/fp-subroutine' into graviton-identical-subroutines
ahangsu Nov 15, 2022
a55052d
rename
ahangsu Nov 16, 2022
b24cbb8
Merge branch 'feature/fp-subroutine' into graviton-identical-subroutines
ahangsu Nov 16, 2022
29cd589
special case notes
ahangsu Nov 16, 2022
e586564
fix embarassing spelling
Nov 16, 2022
77ca4a5
remove run-once forever to be skipped slow test
Nov 23, 2022
f5ef819
Test identical functionality across versions - just a POC and too slo…
Nov 15, 2022
7cddccd
bad alias
Nov 15, 2022
08a51f2
handle logic sigs and trace compiled teal in the pt dr executor
Nov 15, 2022
8a84f73
port identity predicates to graviton_test.py
Nov 15, 2022
61d1cc6
some examples failing. Might be a red herring, or might be related to…
Nov 15, 2022
6922ac1
special case notes
ahangsu Nov 16, 2022
6417265
fix embarassing spelling
Nov 16, 2022
b4d9300
remove run-once forever to be skipped slow test
Nov 23, 2022
72a7490
update test comment
ahangsu Dec 3, 2022
849b892
Merge remote-tracking branch 'origin' into graviton-identical-subrout…
Dec 6, 2022
9df2c7b
revert - except for better local function name
Dec 6, 2022
149f864
Merge remote-tracking branch 'refs/remotes/origin/graviton-identical-…
Dec 6, 2022
4451f3d
Apply suggestions from code review
tzaffi Dec 6, 2022
2f7a7ac
black
Dec 6, 2022
f9aebde
unused var
Dec 6, 2022
4d45f09
Update requirements.txt
tzaffi Dec 14, 2022
5b4ae33
Prove no assertions tested
michaeldiamant Dec 22, 2022
669b202
Merge branch 'master' into graviton-identical-subroutines
Dec 22, 2022
2dc41da
Merge branch 'broken_invariants' into graviton-identical-subroutines
Dec 22, 2022
3b20a21
get the tests to actually run, and nudge invariants to pass both with…
Dec 23, 2022
6e7889d
absorb the new graviton API
Dec 24, 2022
cf9ced7
Merge branch 'master' into graviton-identical-subroutines
Dec 24, 2022
d8bd2db
update graviton's pin to latest branch commit
Dec 26, 2022
4790069
Refactor graviton usage
Dec 31, 2022
7617c7a
new PyTealDryRunExecutor.executor() method
Jan 1, 2023
5f88771
pass txn_params and verbose to graviton's runners
Jan 1, 2023
97aff37
pass txn_params and verbose to graviton's runners
Jan 1, 2023
1f97e30
don't re-instantiate the executor at every iteration
Jan 1, 2023
315fc23
remove now unused add_trace()
Jan 1, 2023
09261e8
lint
Jan 1, 2023
18150bc
Update to requirements.txt to latest graviton commit
tzaffi Jan 1, 2023
69519c5
pin to graviton 0.7.0
Jan 3, 2023
3ad2f2e
fix gravition pin
Jan 3, 2023
0ee255c
pin to v0.7.0
tzaffi Jan 3, 2023
ed1baf4
Typo fix in docs (#625)
solomonsucceeds Dec 28, 2022
251f0af
Merge branch 'graviton-identical-subroutines' into graviton-refac
tzaffi Jan 4, 2023
1f62233
Merge branch 'master' into graviton-refac
Jan 13, 2023
fc06c17
flake8
Jan 13, 2023
3232a09
🤞
Jan 13, 2023
d0331b0
Trigger a build against head of depending graviton branch
tzaffi Jan 17, 2023
cf21e18
Update requirements.txt
tzaffi Jan 17, 2023
e355c93
correct repo
tzaffi Jan 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
black==22.3.0
flake8==5.0.4
flake8-tidy-imports==4.6.0
graviton@git+https://github.com/algorand/graviton@v0.7.1
graviton@git+https://github.com/algorand/graviton@v0.8.0
mypy==0.991
pytest==7.2.0
pytest-cov==3.0.0
Expand Down
140 changes: 49 additions & 91 deletions tests/blackbox.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
from typing import Any, Callable, Generic, Optional, Sequence, TypeVar, cast
from dataclasses import dataclass
from typing import Any, Callable, Sequence, cast

import algosdk.abi
from algosdk.v2client import algod

from graviton import blackbox
from graviton.blackbox import DryRunInspector, DryRunExecutor
from graviton.blackbox import (
DryRunInspector,
DryRunExecutor,
DryRunTransactionParams as TxParams,
)
from graviton.models import PyTypes

from pyteal.ast.subroutine import OutputKwArgInfo
Expand Down Expand Up @@ -138,37 +141,13 @@ def decorator_blackbox(func: SubroutineFnWrapper | ABIReturnSubroutine):
# ---- API ---- #


Output = TypeVar("Output")
Lazy = Callable[[], Output]


@dataclass(frozen=True)
class _MatchMode(Generic[Output]):
runner: Optional["PyTealDryRunExecutor"]
app_case: Lazy
signature_case: Lazy
trace: Any = None

def __post_init__(self):
if self.runner and self.trace:
self.runner.add_trace(self.trace)

def __call__(self, mode: Mode, *args, **kwargs) -> Output:
match mode:
case Mode.Application:
return self.app_case()
case Mode.Signature:
return self.signature_case()
case _:
raise Exception(f"Unknown mode {mode} of type {type(mode)}")


def mode_to_execution_mode(mode: Mode) -> blackbox.ExecutionMode:
return _MatchMode(
runner=None,
app_case=lambda: blackbox.ExecutionMode.Application,
signature_case=lambda: blackbox.ExecutionMode.Signature,
)(mode)
if mode == Mode.Application:
return blackbox.ExecutionMode.Application
if mode == Mode.Signature:
return blackbox.ExecutionMode.Signature

raise ValueError(f"Can't handle {mode=}")


class PyTealDryRunExecutor:
Expand All @@ -182,9 +161,11 @@ def __init__(self, subr: BlackboxWrapper, mode: Mode):
mode: type of program to produce: logic sig (Mode.Signature) or app (Mode.Application)
"""
input_types = subr.input_types
assert (
input_types is not None
), "please provide input_types in your @Subroutine or @ABIReturnSubroutine annotation (this is crucial for generating proper end-to-end testable PyTeal)"
assert input_types is not None, (
"please provide input_types in your @Subroutine or @ABIReturnSubroutine "
"annotation. "
"(this is crucial for generating proper end-to-end testable PyTeal)"
)

self.subr, self.mode, self.input_types = subr, mode, input_types
match subr.subroutine:
Expand Down Expand Up @@ -417,68 +398,45 @@ def approval():
return approval

def compile(self, version: int, assemble_constants: bool = False) -> str:
return _MatchMode(
runner=self,
app_case=lambda: compileTeal(
self.program(),
self.mode,
version=version,
assembleConstants=assemble_constants,
),
signature_case=lambda: compileTeal(
self.program(),
self.mode,
version=version,
assembleConstants=assemble_constants,
),
)(self.mode)

def dryrun_on_sequence(
return compileTeal(
self.program(),
self.mode,
version=version,
assembleConstants=assemble_constants,
)

def executor(self, compiler_version: int = 6) -> DryRunExecutor:
return DryRunExecutor(
algod=algod_with_assertion(),
mode=mode_to_execution_mode(self.mode),
teal=self.compile(compiler_version),
abi_method_signature=self.abi_method_signature(),
omit_method_selector=True,
)

def dryrun_sequence(
self,
inputs: list[Sequence[PyTypes]],
*,
compiler_version=6,
txn_params: TxParams | None = None,
verbose: bool = False,
) -> list[DryRunInspector]:
teal = self.compile(compiler_version)
return _MatchMode(
self,
app_case=lambda: DryRunExecutor.dryrun_app_on_sequence(
algod=algod_with_assertion(),
teal=teal,
inputs=inputs,
abi_method_signature=self.abi_method_signature(),
omit_method_selector=True,
return cast(
list,
self.executor(compiler_version).run_sequence(
inputs, txn_params=txn_params, verbose=verbose
),
signature_case=lambda: DryRunExecutor.dryrun_logicsig_on_sequence(
algod=algod_with_assertion(),
teal=teal,
inputs=inputs,
abi_method_signature=self.abi_method_signature(),
omit_method_selector=True,
),
trace=teal,
)(self.mode)
)

def dryrun(
def dryrun_one(
self,
args: Sequence[bytes | str | int],
*,
compiler_version=6,
txn_params: TxParams | None = None,
verbose: bool = False,
) -> DryRunInspector:
teal = self.compile(compiler_version)
return _MatchMode(
self,
app_case=lambda: DryRunExecutor.dryrun_app(
algod_with_assertion(),
teal,
args,
abi_method_signature=self.abi_method_signature(),
omit_method_selector=True,
),
signature_case=lambda: DryRunExecutor.dryrun_logicsig(
algod_with_assertion(),
teal,
args,
abi_method_signature=self.abi_method_signature(),
omit_method_selector=True,
),
trace=teal,
)(self.mode)
return self.executor(compiler_version).run_one(
args, txn_params=txn_params, verbose=verbose
)
2 changes: 1 addition & 1 deletion tests/integration/abi_roundtrip_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def test_roundtrip(abi_type):
args = (rand_abi_instance,)

def dryrun_roundtrip(version: int):
inspector = roundtripper.dryrun(args, compiler_version=version)
inspector = roundtripper.dryrun_one(args, compiler_version=version)

cost = inspector.cost()
passed = inspector.passed()
Expand Down
8 changes: 4 additions & 4 deletions tests/integration/ecdsa_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def verify():
)

args = []
app_result = PyTealDryRunExecutor(verify, Mode.Application).dryrun(
app_result = PyTealDryRunExecutor(verify, Mode.Application).dryrun_one(
args, compiler_version=5
)

Expand Down Expand Up @@ -81,7 +81,7 @@ def verify_fail():
)

args = []
app_result = PyTealDryRunExecutor(verify_fail, Mode.Application).dryrun(
app_result = PyTealDryRunExecutor(verify_fail, Mode.Application).dryrun_one(
args, compiler_version=5
)

Expand Down Expand Up @@ -117,7 +117,7 @@ def decompress():
)

args = []
app_result = PyTealDryRunExecutor(decompress, Mode.Application).dryrun(
app_result = PyTealDryRunExecutor(decompress, Mode.Application).dryrun_one(
args, compiler_version=5
)

Expand Down Expand Up @@ -158,7 +158,7 @@ def recover():
)

args = []
app_result = PyTealDryRunExecutor(recover, Mode.Application).dryrun(
app_result = PyTealDryRunExecutor(recover, Mode.Application).dryrun_one(
args, compiler_version=5
)

Expand Down
14 changes: 7 additions & 7 deletions tests/integration/graviton_abi_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import random
import pytest

from graviton.blackbox import DryRunInspector
from graviton.inspector import DryRunInspector

import pyteal as pt
from pyteal.ast.subroutine import ABIReturnSubroutine
Expand Down Expand Up @@ -331,7 +331,7 @@ def pytuple_to_num(t):
]

def binary_dryrun(p: PyTealDryRunExecutor) -> list[DryRunInspector]:
return p.dryrun_on_sequence(binary_inputs, compiler_version=version) # type: ignore
return p.dryrun_sequence(binary_inputs, compiler_version=version) # type: ignore

# Binary:
inspectors_subtract_slick = binary_dryrun(bbpt_subtract_slick)
Expand All @@ -343,7 +343,7 @@ def binary_dryrun(p: PyTealDryRunExecutor) -> list[DryRunInspector]:
inspectors_add = binary_dryrun(bbpt_add)

# Unary:
inspectors_negate = bbpt_negate.dryrun_on_sequence(
inspectors_negate = bbpt_negate.dryrun_sequence(
unary_inputs, compiler_version=version # type: ignore
)

Expand Down Expand Up @@ -444,11 +444,11 @@ def pytuple_to_complex(tt):

# Binary:
def binary_dryrun(p: PyTealDryRunExecutor) -> list[DryRunInspector]:
return p.dryrun_on_sequence(binary_inputs, compiler_version=version) # type: ignore
return p.dryrun_sequence(binary_inputs, compiler_version=version) # type: ignore

# Unary:
def unary_dryrun(p: PyTealDryRunExecutor) -> list[DryRunInspector]:
return p.dryrun_on_sequence(unary_inputs, compiler_version=version) # type: ignore
return p.dryrun_sequence(unary_inputs, compiler_version=version) # type: ignore

inspectors_cplx_add = binary_dryrun(bbpt_cplx_add)

Expand Down Expand Up @@ -523,7 +523,7 @@ def test_conditional_factorial(version: int):
ptdre = PyTealDryRunExecutor(conditional_factorial, pt.Mode.Application)
inputs = [(n,) for n in range(20)]

inspectors = ptdre.dryrun_on_sequence(inputs, compiler_version=version) # type: ignore
inspectors = ptdre.dryrun_sequence(inputs, compiler_version=version) # type: ignore
for i, args in enumerate(inputs):
inspector = inspectors[i]
n = args[0]
Expand All @@ -534,7 +534,7 @@ def test_conditional_factorial(version: int):

n = 21
args = (n,)
inspector = ptdre.dryrun(args)
inspector = ptdre.dryrun_one(args)
assert inspector.rejected(), inspector.report(
args, f"FAILED: should have rejected for {n=}", row=n + 1
)
Expand Down
Loading