-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: moving implementation into private namespace; refining docs…
…; configuring api docs (#17)
- Loading branch information
1 parent
596c72f
commit 4bdfe3f
Showing
102 changed files
with
568 additions
and
533 deletions.
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 |
---|---|---|
@@ -1,14 +1,31 @@ | ||
# API Reference | ||
|
||
```{autodoc2-summary} | ||
:renderer: myst | ||
## Contexts | ||
|
||
```{autodoc2-summary} | ||
algopy_testing.AlgopyTestContext | ||
algopy_testing.LedgerContext | ||
algopy_testing.TransactionContext | ||
``` | ||
|
||
## Value Generators | ||
|
||
```{autodoc2-summary} | ||
algopy_testing.AVMValueGenerator | ||
algopy_testing.TxnValueGenerator | ||
algopy_testing.ARC4ValueGenerator | ||
algopy_testing.TxnValueGenerator | ||
``` | ||
|
||
> TODO: 1.0 Restructure algopy_testing index file once refactoring changes are merged | ||
## Inner transaction loaders | ||
|
||
```{autodoc2-summary} | ||
algopy_testing.ITxnGroupLoader | ||
algopy_testing.ITxnLoader | ||
``` | ||
|
||
## Utils | ||
|
||
```{autodoc2-summary} | ||
algopy_testing.algopy_testing_context | ||
algopy_testing.arc4_prefix | ||
``` |
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
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
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
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,68 @@ | ||
from _algopy_testing import arc4, gtxn, itxn | ||
from _algopy_testing._context_helpers.context_storage import algopy_testing_context | ||
from _algopy_testing._context_helpers.ledger_context import LedgerContext | ||
from _algopy_testing._context_helpers.txn_context import TransactionContext | ||
from _algopy_testing._itxn_loader import ITxnGroupLoader, ITxnLoader | ||
from _algopy_testing._value_generators.arc4 import ARC4ValueGenerator | ||
from _algopy_testing._value_generators.avm import AVMValueGenerator | ||
from _algopy_testing._value_generators.txn import TxnValueGenerator | ||
from _algopy_testing.context import AlgopyTestContext | ||
from _algopy_testing.decorators.subroutine import subroutine | ||
from _algopy_testing.enums import OnCompleteAction, TransactionType | ||
from _algopy_testing.models import ( | ||
Account, | ||
Application, | ||
ARC4Contract, | ||
Asset, | ||
Contract, | ||
LogicSig, | ||
StateTotals, | ||
TemplateVar, | ||
logicsig, | ||
uenumerate, | ||
urange, | ||
) | ||
from _algopy_testing.primitives import BigUInt, Bytes, String, UInt64 | ||
from _algopy_testing.state import Box, BoxMap, BoxRef, GlobalState, LocalState | ||
|
||
# TODO: clean up and ensure only algopy_testing namespace specific user facing abstractions | ||
# are exposed Only keep the _value_generators, ledger_context, txn_context, | ||
# context, and arc4_prexif from utils (make utils private) | ||
__all__ = [ | ||
"ARC4Contract", | ||
"ARC4ValueGenerator", | ||
"Account", | ||
"AlgopyTestContext", | ||
"Application", | ||
"Asset", | ||
"BigUInt", | ||
"Box", | ||
"BoxMap", | ||
"BoxRef", | ||
"Bytes", | ||
"Contract", | ||
"GlobalState", | ||
"LocalState", | ||
"LogicSig", | ||
"ITxnLoader", | ||
"TxnValueGenerator", | ||
"ITxnGroupLoader", | ||
"OnCompleteAction", | ||
"StateTotals", | ||
"String", | ||
"TemplateVar", | ||
"LedgerContext", | ||
"TransactionContext", | ||
"AVMValueGenerator", | ||
"TxnValueGenerator", | ||
"TransactionType", | ||
"UInt64", | ||
"algopy_testing_context", | ||
"arc4", | ||
"gtxn", | ||
"itxn", | ||
"logicsig", | ||
"subroutine", | ||
"uenumerate", | ||
"urange", | ||
] |
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
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,13 @@ | ||
from _algopy_testing._context_helpers.context_storage import ( | ||
algopy_testing_context, | ||
lazy_context, | ||
) | ||
from _algopy_testing._context_helpers.ledger_context import LedgerContext | ||
from _algopy_testing._context_helpers.txn_context import TransactionContext | ||
|
||
__all__ = [ | ||
"LedgerContext", | ||
"TransactionContext", | ||
"algopy_testing_context", | ||
"lazy_context", | ||
] |
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
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
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
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
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.