File tree Expand file tree Collapse file tree 14 files changed +56
-70
lines changed
.algokit/generators/create_contract/smart_contracts/{% raw %}{{ contract_name }}{% endraw %}
smart_contracts/{{ contract_name }}
test_smart_contract_generator_default_production_preset_python
.algokit/generators/create_contract/smart_contracts/{{ contract_name }}
test_smart_contract_generator_default_production_preset_typescript
.algokit/generators/create_contract/smart_contracts/{{ contract_name }}
test_smart_contract_generator_default_starter_preset_python
.algokit/generators/create_contract/smart_contracts/{{ contract_name }}
test_smart_contract_generator_default_starter_preset_typescript
.algokit/generators/create_contract/smart_contracts/{{ contract_name }} Expand file tree Collapse file tree 14 files changed +56
-70
lines changed Original file line number Diff line number Diff line change 1- from puyapy import ARC4Contract, Bytes
2- from puyapy.arc4 import String, abimethod
1+ from puyapy import ARC4Contract, arc4
32
43
54class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract):
6- @abimethod()
7- def hello(self, name: String) -> String:
8- return String.encode(Bytes(b "Hello, ") + name.decode())
5+ @arc4. abimethod()
6+ def hello(self, name: arc4. String) -> arc4. String:
7+ return "Hello, " + name
Original file line number Diff line number Diff line change 1- from puyapy import ARC4Contract, Bytes
2- from puyapy.arc4 import String, abimethod
1+ from puyapy import ARC4Contract, arc4
32
43
54class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract):
6- @abimethod()
7- def hello(self, name: String) -> String:
8- return String.encode(Bytes(b "Hello, ") + name.decode())
5+ @arc4. abimethod()
6+ def hello(self, name: arc4. String) -> arc4. String:
7+ return "Hello, " + name
Original file line number Diff line number Diff line change 1- from puyapy import ARC4Contract, Bytes
2- from puyapy.arc4 import String, abimethod
1+ from puyapy import ARC4Contract, arc4
32
43
54class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract):
6- @abimethod()
7- def hello(self, name: String) -> String:
8- return String.encode(Bytes(b "Hello, ") + name.decode())
5+ @arc4. abimethod()
6+ def hello(self, name: arc4. String) -> arc4. String:
7+ return "Hello, " + name
Original file line number Diff line number Diff line change 1- from puyapy import ARC4Contract , Bytes
2- from puyapy .arc4 import String , abimethod
1+ from puyapy import ARC4Contract , arc4
32
43
54class CoolContract (ARC4Contract ):
6- @abimethod ()
7- def hello (self , name : String ) -> String :
8- return String . encode ( Bytes ( b "Hello, ") + name . decode ())
5+ @arc4 . abimethod ()
6+ def hello (self , name : arc4 . String ) -> arc4 . String :
7+ return "Hello, " + name
Original file line number Diff line number Diff line change 1- from puyapy import ARC4Contract , Bytes
2- from puyapy .arc4 import String , abimethod
1+ from puyapy import ARC4Contract , arc4
32
43
54class HelloWorld (ARC4Contract ):
6- @abimethod ()
7- def hello (self , name : String ) -> String :
8- return String . encode ( Bytes ( b "Hello, ") + name . decode ())
5+ @arc4 . abimethod ()
6+ def hello (self , name : arc4 . String ) -> arc4 . String :
7+ return "Hello, " + name
Original file line number Diff line number Diff line change 1- from puyapy import ARC4Contract, Bytes
2- from puyapy.arc4 import String, abimethod
1+ from puyapy import ARC4Contract, arc4
32
43
54class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract):
6- @abimethod()
7- def hello(self, name: String) -> String:
8- return String.encode(Bytes(b "Hello, ") + name.decode())
5+ @arc4. abimethod()
6+ def hello(self, name: arc4. String) -> arc4. String:
7+ return "Hello, " + name
Original file line number Diff line number Diff line change 1- from puyapy import ARC4Contract , Bytes
2- from puyapy .arc4 import String , abimethod
1+ from puyapy import ARC4Contract , arc4
32
43
54class CoolContract (ARC4Contract ):
6- @abimethod ()
7- def hello (self , name : String ) -> String :
8- return String . encode ( Bytes ( b "Hello, ") + name . decode ())
5+ @arc4 . abimethod ()
6+ def hello (self , name : arc4 . String ) -> arc4 . String :
7+ return "Hello, " + name
Original file line number Diff line number Diff line change 1- from puyapy import ARC4Contract , Bytes
2- from puyapy .arc4 import String , abimethod
1+ from puyapy import ARC4Contract , arc4
32
43
54class HelloWorld (ARC4Contract ):
6- @abimethod ()
7- def hello (self , name : String ) -> String :
8- return String . encode ( Bytes ( b "Hello, ") + name . decode ())
5+ @arc4 . abimethod ()
6+ def hello (self , name : arc4 . String ) -> arc4 . String :
7+ return "Hello, " + name
Original file line number Diff line number Diff line change 1- from puyapy import ARC4Contract, Bytes
2- from puyapy.arc4 import String, abimethod
1+ from puyapy import ARC4Contract, arc4
32
43
54class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract):
6- @abimethod()
7- def hello(self, name: String) -> String:
8- return String.encode(Bytes(b "Hello, ") + name.decode())
5+ @arc4. abimethod()
6+ def hello(self, name: arc4. String) -> arc4. String:
7+ return "Hello, " + name
Original file line number Diff line number Diff line change 1- from puyapy import ARC4Contract , Bytes
2- from puyapy .arc4 import String , abimethod
1+ from puyapy import ARC4Contract , arc4
32
43
54class CoolContract (ARC4Contract ):
6- @abimethod ()
7- def hello (self , name : String ) -> String :
8- return String . encode ( Bytes ( b "Hello, ") + name . decode ())
5+ @arc4 . abimethod ()
6+ def hello (self , name : arc4 . String ) -> arc4 . String :
7+ return "Hello, " + name
You can’t perform that action at this time.
0 commit comments