generated from algorandfoundation/algokit-beaker-default-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: patching algopy import syntax in hello world (#30)
- Loading branch information
1 parent
550eaff
commit 3880851
Showing
20 changed files
with
68 additions
and
52 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
7 changes: 4 additions & 3 deletions
7
...on/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/contract.py.j2
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,8 +1,9 @@ | ||
# pyright: reportMissingModuleSource=false | ||
from algopy import ARC4Contract, arc4 | ||
from algopy import ARC4Contract, String | ||
from algopy.arc4 import abimethod | ||
|
||
|
||
class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract): | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return "Hello, " + name |
7 changes: 4 additions & 3 deletions
7
...erators/production_python_smart_contract_python/smart_contracts/cool_contract/contract.py
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,8 +1,9 @@ | ||
# pyright: reportMissingModuleSource=false | ||
from algopy import ARC4Contract, arc4 | ||
from algopy import ARC4Contract, String | ||
from algopy.arc4 import abimethod | ||
|
||
|
||
class CoolContract(ARC4Contract): | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return "Hello, " + name |
7 changes: 4 additions & 3 deletions
7
...enerators/production_python_smart_contract_python/smart_contracts/hello_world/contract.py
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,7 +1,8 @@ | ||
from algopy import ARC4Contract, arc4 | ||
from algopy import ARC4Contract, String | ||
from algopy.arc4 import abimethod | ||
|
||
|
||
class HelloWorld(ARC4Contract): | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return "Hello, " + name |
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
7 changes: 4 additions & 3 deletions
7
...pt/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/contract.py.j2
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,8 +1,9 @@ | ||
# pyright: reportMissingModuleSource=false | ||
from algopy import ARC4Contract, arc4 | ||
from algopy import ARC4Contract, String | ||
from algopy.arc4 import abimethod | ||
|
||
|
||
class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract): | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return "Hello, " + name |
7 changes: 4 additions & 3 deletions
7
...ors/production_python_smart_contract_typescript/smart_contracts/cool_contract/contract.py
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,8 +1,9 @@ | ||
# pyright: reportMissingModuleSource=false | ||
from algopy import ARC4Contract, arc4 | ||
from algopy import ARC4Contract, String | ||
from algopy.arc4 import abimethod | ||
|
||
|
||
class CoolContract(ARC4Contract): | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return "Hello, " + name |
7 changes: 4 additions & 3 deletions
7
...ators/production_python_smart_contract_typescript/smart_contracts/hello_world/contract.py
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,7 +1,8 @@ | ||
from algopy import ARC4Contract, arc4 | ||
from algopy import ARC4Contract, String | ||
from algopy.arc4 import abimethod | ||
|
||
|
||
class HelloWorld(ARC4Contract): | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return "Hello, " + name |
7 changes: 4 additions & 3 deletions
7
...on/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/contract.py.j2
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,8 +1,9 @@ | ||
# pyright: reportMissingModuleSource=false | ||
from algopy import ARC4Contract, arc4 | ||
from algopy import ARC4Contract, String | ||
from algopy.arc4 import abimethod | ||
|
||
|
||
class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract): | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return "Hello, " + name |
7 changes: 4 additions & 3 deletions
7
...generators/starter_python_smart_contract_python/smart_contracts/cool_contract/contract.py
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,8 +1,9 @@ | ||
# pyright: reportMissingModuleSource=false | ||
from algopy import ARC4Contract, arc4 | ||
from algopy import ARC4Contract, String | ||
from algopy.arc4 import abimethod | ||
|
||
|
||
class CoolContract(ARC4Contract): | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return "Hello, " + name |
7 changes: 4 additions & 3 deletions
7
...s/generators/starter_python_smart_contract_python/smart_contracts/hello_world/contract.py
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,7 +1,8 @@ | ||
from algopy import ARC4Contract, arc4 | ||
from algopy import ARC4Contract, String | ||
from algopy.arc4 import abimethod | ||
|
||
|
||
class HelloWorld(ARC4Contract): | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return "Hello, " + name |
7 changes: 4 additions & 3 deletions
7
...pt/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/contract.py.j2
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,8 +1,9 @@ | ||
# pyright: reportMissingModuleSource=false | ||
from algopy import ARC4Contract, arc4 | ||
from algopy import ARC4Contract, String | ||
from algopy.arc4 import abimethod | ||
|
||
|
||
class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract): | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return "Hello, " + name |
7 changes: 4 additions & 3 deletions
7
...rators/starter_python_smart_contract_typescript/smart_contracts/cool_contract/contract.py
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,8 +1,9 @@ | ||
# pyright: reportMissingModuleSource=false | ||
from algopy import ARC4Contract, arc4 | ||
from algopy import ARC4Contract, String | ||
from algopy.arc4 import abimethod | ||
|
||
|
||
class CoolContract(ARC4Contract): | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return "Hello, " + name |
7 changes: 4 additions & 3 deletions
7
...nerators/starter_python_smart_contract_typescript/smart_contracts/hello_world/contract.py
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,7 +1,8 @@ | ||
from algopy import ARC4Contract, arc4 | ||
from algopy import ARC4Contract, String | ||
from algopy.arc4 import abimethod | ||
|
||
|
||
class HelloWorld(ARC4Contract): | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return "Hello, " + name |
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
7 changes: 4 additions & 3 deletions
7
examples/production_python/smart_contracts/hello_world/contract.py
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,7 +1,8 @@ | ||
from algopy import ARC4Contract, arc4 | ||
from algopy import ARC4Contract, String | ||
from algopy.arc4 import abimethod | ||
|
||
|
||
class HelloWorld(ARC4Contract): | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return "Hello, " + name |
7 changes: 4 additions & 3 deletions
7
examples/starter_python/smart_contracts/hello_world/contract.py
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,7 +1,8 @@ | ||
from algopy import ARC4Contract, arc4 | ||
from algopy import ARC4Contract, String | ||
from algopy.arc4 import abimethod | ||
|
||
|
||
class HelloWorld(ARC4Contract): | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return "Hello, " + name |
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
7 changes: 4 additions & 3 deletions
7
...s/create_contract/smart_contracts/{% raw %}{{ contract_name }}{% endraw %}/contract.py.j2
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,8 +1,9 @@ | ||
# pyright: reportMissingModuleSource=false | ||
from algopy import ARC4Contract, arc4 | ||
from algopy import ARC4Contract, String | ||
from algopy.arc4 import abimethod | ||
|
||
|
||
class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract): | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return "Hello, " + name |
7 changes: 4 additions & 3 deletions
7
template_content/smart_contracts/{{ contract_name }}/contract.py.jinja
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,7 +1,8 @@ | ||
from algopy import ARC4Contract, arc4 | ||
from algopy import ARC4Contract, String | ||
from algopy.arc4 import abimethod | ||
|
||
|
||
class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract): | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return "Hello, " + name |