├── .github └── CONTRIBUTING.md ├── .gitignore ├── LICENSE ├── README.md ├── README_zh-cn.md ├── docs ├── contract-parameter-type.md ├── contract-parameter-type_zh-cn.md ├── list-examples.md ├── list-examples_zh-cn.md ├── list-use-cases.md └── list-use-cases_zh-cn.md ├── examples ├── csharp │ ├── .gitkeep │ ├── constant │ │ └── forty_two.cs │ └── number │ │ ├── add.cs │ │ ├── multiply.cs │ │ └── square.cs └── python │ ├── account │ └── is_owner.py │ ├── array │ ├── array_length.py │ └── array_sum.py │ ├── block │ ├── block_consensus.py │ ├── block_hash.py │ ├── block_merkle_root.py │ ├── block_timestamp.py │ ├── current_height.py │ ├── current_timestamp.py │ └── next_consensus.py │ ├── constant │ ├── forty_two.py │ └── local_variable.py │ ├── encode │ ├── int2str.py │ └── sha1.py │ ├── number │ ├── add.py │ ├── fibonacci.py │ ├── minimum.py │ ├── multiply.py │ ├── power.py │ └── square.py │ └── string │ ├── character_count.py │ └── string_reverse.py └── use-cases ├── csharp └── .gitkeep └── python ├── functional_utilities └── functional_utilities.py └── multi_file_structure ├── main.py └── pkg ├── __init__.py ├── helpers └── math_helper.py ├── models ├── __init__.py ├── counter.py └── storage.py └── settings ├── config.py └── responses.py /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/.github/CONTRIBUTING.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .vscode 3 | *.avm 4 | __pycache__ 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/README.md -------------------------------------------------------------------------------- /README_zh-cn.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/README_zh-cn.md -------------------------------------------------------------------------------- /docs/contract-parameter-type.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/docs/contract-parameter-type.md -------------------------------------------------------------------------------- /docs/contract-parameter-type_zh-cn.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/docs/contract-parameter-type_zh-cn.md -------------------------------------------------------------------------------- /docs/list-examples.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/docs/list-examples.md -------------------------------------------------------------------------------- /docs/list-examples_zh-cn.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/docs/list-examples_zh-cn.md -------------------------------------------------------------------------------- /docs/list-use-cases.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/docs/list-use-cases.md -------------------------------------------------------------------------------- /docs/list-use-cases_zh-cn.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/docs/list-use-cases_zh-cn.md -------------------------------------------------------------------------------- /examples/csharp/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/csharp/constant/forty_two.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/csharp/constant/forty_two.cs -------------------------------------------------------------------------------- /examples/csharp/number/add.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/csharp/number/add.cs -------------------------------------------------------------------------------- /examples/csharp/number/multiply.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/csharp/number/multiply.cs -------------------------------------------------------------------------------- /examples/csharp/number/square.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/csharp/number/square.cs -------------------------------------------------------------------------------- /examples/python/account/is_owner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/account/is_owner.py -------------------------------------------------------------------------------- /examples/python/array/array_length.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/array/array_length.py -------------------------------------------------------------------------------- /examples/python/array/array_sum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/array/array_sum.py -------------------------------------------------------------------------------- /examples/python/block/block_consensus.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/block/block_consensus.py -------------------------------------------------------------------------------- /examples/python/block/block_hash.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/block/block_hash.py -------------------------------------------------------------------------------- /examples/python/block/block_merkle_root.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/block/block_merkle_root.py -------------------------------------------------------------------------------- /examples/python/block/block_timestamp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/block/block_timestamp.py -------------------------------------------------------------------------------- /examples/python/block/current_height.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/block/current_height.py -------------------------------------------------------------------------------- /examples/python/block/current_timestamp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/block/current_timestamp.py -------------------------------------------------------------------------------- /examples/python/block/next_consensus.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/block/next_consensus.py -------------------------------------------------------------------------------- /examples/python/constant/forty_two.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/constant/forty_two.py -------------------------------------------------------------------------------- /examples/python/constant/local_variable.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/constant/local_variable.py -------------------------------------------------------------------------------- /examples/python/encode/int2str.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/encode/int2str.py -------------------------------------------------------------------------------- /examples/python/encode/sha1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/encode/sha1.py -------------------------------------------------------------------------------- /examples/python/number/add.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/number/add.py -------------------------------------------------------------------------------- /examples/python/number/fibonacci.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/number/fibonacci.py -------------------------------------------------------------------------------- /examples/python/number/minimum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/number/minimum.py -------------------------------------------------------------------------------- /examples/python/number/multiply.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/number/multiply.py -------------------------------------------------------------------------------- /examples/python/number/power.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/number/power.py -------------------------------------------------------------------------------- /examples/python/number/square.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/number/square.py -------------------------------------------------------------------------------- /examples/python/string/character_count.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/string/character_count.py -------------------------------------------------------------------------------- /examples/python/string/string_reverse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/examples/python/string/string_reverse.py -------------------------------------------------------------------------------- /use-cases/csharp/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /use-cases/python/functional_utilities/functional_utilities.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/use-cases/python/functional_utilities/functional_utilities.py -------------------------------------------------------------------------------- /use-cases/python/multi_file_structure/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/use-cases/python/multi_file_structure/main.py -------------------------------------------------------------------------------- /use-cases/python/multi_file_structure/pkg/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /use-cases/python/multi_file_structure/pkg/helpers/math_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/use-cases/python/multi_file_structure/pkg/helpers/math_helper.py -------------------------------------------------------------------------------- /use-cases/python/multi_file_structure/pkg/models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /use-cases/python/multi_file_structure/pkg/models/counter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/use-cases/python/multi_file_structure/pkg/models/counter.py -------------------------------------------------------------------------------- /use-cases/python/multi_file_structure/pkg/models/storage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/use-cases/python/multi_file_structure/pkg/models/storage.py -------------------------------------------------------------------------------- /use-cases/python/multi_file_structure/pkg/settings/config.py: -------------------------------------------------------------------------------- 1 | class Config(): 2 | magic_word = 'Accio' 3 | -------------------------------------------------------------------------------- /use-cases/python/multi_file_structure/pkg/settings/responses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CityOfZion/neo-smart-contract-examples/HEAD/use-cases/python/multi_file_structure/pkg/settings/responses.py --------------------------------------------------------------------------------