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.
- Loading branch information
1 parent
7822bef
commit b5cadcb
Showing
14 changed files
with
56 additions
and
70 deletions.
There are no files selected for viewing
9 changes: 4 additions & 5 deletions
9
...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,7 @@ | ||
from puyapy import ARC4Contract, Bytes | ||
from puyapy.arc4 import String, abimethod | ||
from puyapy import ARC4Contract, arc4 | ||
|
||
|
||
class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract): | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return String.encode(Bytes(b"Hello, ") + name.decode()) | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
return "Hello, " + name |
9 changes: 4 additions & 5 deletions
9
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,8 +1,7 @@ | ||
from puyapy import ARC4Contract, Bytes | ||
from puyapy.arc4 import String, abimethod | ||
from puyapy import ARC4Contract, arc4 | ||
|
||
|
||
class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract): | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return String.encode(Bytes(b"Hello, ") + name.decode()) | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
return "Hello, " + name |
9 changes: 4 additions & 5 deletions
9
...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,7 @@ | ||
from puyapy import ARC4Contract, Bytes | ||
from puyapy.arc4 import String, abimethod | ||
from puyapy import ARC4Contract, arc4 | ||
|
||
|
||
class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract): | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return String.encode(Bytes(b"Hello, ") + name.decode()) | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
return "Hello, " + name |
9 changes: 4 additions & 5 deletions
9
...ract_generator_default_production_preset_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,7 @@ | ||
from puyapy import ARC4Contract, Bytes | ||
from puyapy.arc4 import String, abimethod | ||
from puyapy import ARC4Contract, arc4 | ||
|
||
|
||
class CoolContract(ARC4Contract): | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return String.encode(Bytes(b"Hello, ") + name.decode()) | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
return "Hello, " + name |
9 changes: 4 additions & 5 deletions
9
...ntract_generator_default_production_preset_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,8 +1,7 @@ | ||
from puyapy import ARC4Contract, Bytes | ||
from puyapy.arc4 import String, abimethod | ||
from puyapy import ARC4Contract, arc4 | ||
|
||
|
||
class HelloWorld(ARC4Contract): | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return String.encode(Bytes(b"Hello, ") + name.decode()) | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
return "Hello, " + name |
9 changes: 4 additions & 5 deletions
9
...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,7 @@ | ||
from puyapy import ARC4Contract, Bytes | ||
from puyapy.arc4 import String, abimethod | ||
from puyapy import ARC4Contract, arc4 | ||
|
||
|
||
class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract): | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return String.encode(Bytes(b"Hello, ") + name.decode()) | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
return "Hello, " + name |
9 changes: 4 additions & 5 deletions
9
..._generator_default_production_preset_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,7 @@ | ||
from puyapy import ARC4Contract, Bytes | ||
from puyapy.arc4 import String, abimethod | ||
from puyapy import ARC4Contract, arc4 | ||
|
||
|
||
class CoolContract(ARC4Contract): | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return String.encode(Bytes(b"Hello, ") + name.decode()) | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
return "Hello, " + name |
9 changes: 4 additions & 5 deletions
9
...ct_generator_default_production_preset_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,8 +1,7 @@ | ||
from puyapy import ARC4Contract, Bytes | ||
from puyapy.arc4 import String, abimethod | ||
from puyapy import ARC4Contract, arc4 | ||
|
||
|
||
class HelloWorld(ARC4Contract): | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return String.encode(Bytes(b"Hello, ") + name.decode()) | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
return "Hello, " + name |
9 changes: 4 additions & 5 deletions
9
...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,7 @@ | ||
from puyapy import ARC4Contract, Bytes | ||
from puyapy.arc4 import String, abimethod | ||
from puyapy import ARC4Contract, arc4 | ||
|
||
|
||
class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract): | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return String.encode(Bytes(b"Hello, ") + name.decode()) | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
return "Hello, " + name |
9 changes: 4 additions & 5 deletions
9
...ontract_generator_default_starter_preset_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,7 @@ | ||
from puyapy import ARC4Contract, Bytes | ||
from puyapy.arc4 import String, abimethod | ||
from puyapy import ARC4Contract, arc4 | ||
|
||
|
||
class CoolContract(ARC4Contract): | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return String.encode(Bytes(b"Hello, ") + name.decode()) | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
return "Hello, " + name |
9 changes: 4 additions & 5 deletions
9
..._contract_generator_default_starter_preset_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,8 +1,7 @@ | ||
from puyapy import ARC4Contract, Bytes | ||
from puyapy.arc4 import String, abimethod | ||
from puyapy import ARC4Contract, arc4 | ||
|
||
|
||
class HelloWorld(ARC4Contract): | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return String.encode(Bytes(b"Hello, ") + name.decode()) | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
return "Hello, " + name |
9 changes: 4 additions & 5 deletions
9
...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,7 @@ | ||
from puyapy import ARC4Contract, Bytes | ||
from puyapy.arc4 import String, abimethod | ||
from puyapy import ARC4Contract, arc4 | ||
|
||
|
||
class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract): | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return String.encode(Bytes(b"Hello, ") + name.decode()) | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
return "Hello, " + name |
9 changes: 4 additions & 5 deletions
9
...act_generator_default_starter_preset_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,7 @@ | ||
from puyapy import ARC4Contract, Bytes | ||
from puyapy.arc4 import String, abimethod | ||
from puyapy import ARC4Contract, arc4 | ||
|
||
|
||
class CoolContract(ARC4Contract): | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return String.encode(Bytes(b"Hello, ") + name.decode()) | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
return "Hello, " + name |
9 changes: 4 additions & 5 deletions
9
...tract_generator_default_starter_preset_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,8 +1,7 @@ | ||
from puyapy import ARC4Contract, Bytes | ||
from puyapy.arc4 import String, abimethod | ||
from puyapy import ARC4Contract, arc4 | ||
|
||
|
||
class HelloWorld(ARC4Contract): | ||
@abimethod() | ||
def hello(self, name: String) -> String: | ||
return String.encode(Bytes(b"Hello, ") + name.decode()) | ||
@arc4.abimethod() | ||
def hello(self, name: arc4.String) -> arc4.String: | ||
return "Hello, " + name |