Skip to content

Commit 523e8e8

Browse files
committed
Add ability to estimate exeuction units for Plutus transactions
1 parent 45cf0a3 commit 523e8e8

File tree

9 files changed

+285
-194
lines changed

9 files changed

+285
-194
lines changed

docs/requirements.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ alabaster==0.7.12; python_version >= "3.6" and python_full_version < "3.0.0" or
22
atomicwrites==1.4.0; python_version >= "3.7" and python_full_version < "3.0.0" and sys_platform == "win32" or sys_platform == "win32" and python_version >= "3.7" and python_full_version >= "3.4.0"
33
attrs==21.4.0; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7"
44
babel==2.9.1; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
5-
black==22.1.0; python_full_version >= "3.6.2"
5+
black==22.3.0; python_full_version >= "3.6.2"
66
blockfrost-python==0.4.3; python_version >= "3.7" and python_version < "4"
77
cbor2==5.4.2.post1; python_version >= "3.6"
88
certifi==2021.10.8; python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4" or python_version >= "3.7" and python_version < "4" and python_full_version >= "3.6.0"
99
cffi==1.15.0; python_version >= "3.6"
1010
charset-normalizer==2.0.12; python_version >= "3.7" and python_version < "4" and python_full_version >= "3.6.0"
11-
click==8.0.4; python_version >= "3.6" and python_full_version >= "3.6.2"
11+
click==8.1.2; python_version >= "3.7" and python_full_version >= "3.6.2"
1212
colorama==0.4.4; sys_platform == "win32" and python_version >= "3.7" and python_full_version >= "3.6.2" and (python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6") and platform_system == "Windows"
1313
coverage==6.3.2; python_version >= "3.7"
1414
decorator==5.1.1; python_version >= "3.5"
1515
docutils==0.17.1; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
1616
flake8==4.0.1; python_version >= "3.6"
17-
flask==2.0.3; python_version >= "3.6"
17+
flask==2.1.1; python_version >= "3.7"
1818
idna==3.3; python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4" or python_version >= "3.7" and python_version < "4" and python_full_version >= "3.6.0"
1919
imagesize==1.3.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
2020
importlib-metadata==4.2.0; python_version < "3.8" and python_version >= "3.7" and python_full_version >= "3.6.2"
2121
iniconfig==1.1.1; python_version >= "3.7"
2222
isort==5.10.1; python_full_version >= "3.6.1" and python_version < "4.0"
23-
itsdangerous==2.1.1; python_version >= "3.7"
24-
jinja2==3.0.3; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
25-
markupsafe==2.1.0; python_version >= "3.7"
23+
itsdangerous==2.1.2; python_version >= "3.7"
24+
jinja2==3.1.1; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.7"
25+
markupsafe==2.1.1; python_version >= "3.7"
2626
mccabe==0.6.1; python_version >= "3.6"
2727
mypy-extensions==0.4.3; python_full_version >= "3.6.2"
2828
packaging==21.3; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.7"
@@ -35,10 +35,10 @@ pycparser==2.21; python_version >= "3.6" and python_full_version < "3.0.0" or py
3535
pyflakes==2.4.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
3636
pygments==2.11.2; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
3737
pynacl==1.5.0; python_version >= "3.6"
38-
pyparsing==3.0.7; python_version >= "3.7"
38+
pyparsing==3.0.8; python_full_version >= "3.6.8" and python_version >= "3.7"
3939
pytest-cov==3.0.0; python_version >= "3.6"
4040
pytest==7.1.1; python_version >= "3.7"
41-
pytz==2021.3; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
41+
pytz==2022.1; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
4242
requests==2.27.1; python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4" or python_version >= "3.7" and python_version < "4" and python_full_version >= "3.6.0"
4343
retry==0.9.2
4444
snowballstemmer==2.2.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
@@ -51,11 +51,11 @@ sphinxcontrib-htmlhelp==2.0.0; python_version >= "3.6" and python_full_version <
5151
sphinxcontrib-jsmath==1.0.1; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
5252
sphinxcontrib-qthelp==1.0.3; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
5353
sphinxcontrib-serializinghtml==1.1.5; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
54-
tomli==2.0.1; python_version >= "3.7" and python_full_version >= "3.6.2"
54+
tomli==2.0.1; python_version < "3.11" and python_full_version >= "3.6.2" and python_version >= "3.7"
5555
typed-ast==1.5.2; python_version < "3.8" and implementation_name == "cpython" and python_full_version >= "3.6.2" and python_version >= "3.6"
5656
typeguard==2.13.3; python_full_version >= "3.5.3"
5757
typing-extensions==4.1.1; python_version < "3.8" and python_full_version >= "3.6.2" and python_version >= "3.7"
58-
urllib3==1.26.8; python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4" or python_full_version >= "3.6.0" and python_version < "4" and python_version >= "3.7"
59-
websocket-client==1.3.1; python_version >= "3.6"
60-
werkzeug==2.0.3; python_version >= "3.6"
61-
zipp==3.7.0; python_version < "3.8" and python_version >= "3.7"
58+
urllib3==1.26.9; python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4" or python_full_version >= "3.6.0" and python_version < "4" and python_version >= "3.7"
59+
websocket-client==1.3.2; python_version >= "3.7"
60+
werkzeug==2.1.1; python_version >= "3.7"
61+
zipp==3.8.0; python_version < "3.8" and python_version >= "3.7"

integration-test/test/test_all.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,7 @@ def test_plutus(self):
264264

265265
# ----------- Taker take ---------------
266266

267-
redeemer = Redeemer(
268-
RedeemerTag.SPEND, 42, ExecutionUnits(mem=10000000, steps=10000000000)
269-
)
267+
redeemer = Redeemer(RedeemerTag.SPEND, 42)
270268

271269
utxo_to_spend = self.chain_context.utxos(str(script_address))[0]
272270

0 commit comments

Comments
 (0)