You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/lg-arc4.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,12 @@
2
2
3
3
[ARC-4](https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0004.md) defines a set of encodings and behaviors for authoring and interacting with an Algorand Smart Contract. It is not the only way to author a smart contract, but adhering to it will make it easier for other clients and users to interop with your contract.
4
4
5
-
To author an arc4 contract you should extend the `ARC4Contract` base class.
5
+
To author an arc4 contract you should extend the `Contract` base class.
6
6
7
7
```python
8
-
from algopy importARC4Contract
8
+
from algopy importContract
9
9
10
-
classHelloWorldContract(ARC4Contract):
10
+
classHelloWorldContract(Contract):
11
11
...
12
12
```
13
13
@@ -27,10 +27,10 @@ A method that should not be externally available can be optionally annotated wit
27
27
Method docstrings will be used when outputting ARC-32 or ARC-56 application specifications, the following docstrings styles are supported ReST, Google, Numpydoc-style and Epydoc.
28
28
29
29
```python
30
-
from algopy importARC4Contract, subroutine, arc4, public
30
+
from algopy importContract, subroutine, arc4, public
@@ -51,7 +51,7 @@ class HelloWorldContract(ARC4Contract):
51
51
52
52
Algorand Smart Contracts only have two possible programs that are invoked when making an ApplicationCall Transaction (`appl`). The "clear state" program which is called when using an OnComplete action of `ClearState` or the "approval" program which is called for all other OnComplete actions.
53
53
54
-
Routing is required to dispatch calls handled by the approval program to the relevant ABI methods. When extending `ARC4Contract`, the routing code is automatically generated for you by the PuyaPy compiler.
54
+
Routing is required to dispatch calls handled by the approval program to the relevant ABI methods. When extending `Contract`, the routing code is automatically generated for you by the PuyaPy compiler.
55
55
56
56
## Types
57
57
@@ -202,13 +202,13 @@ These types can only be used as parameters, and not as return types.
0 commit comments