Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for working with the Tezos Blockchain #1412

Merged
merged 15 commits into from
Oct 23, 2023

Conversation

denisandreenko
Copy link
Member

No description provided.

Signed-off-by: Dzianis Andreyenka <[email protected]>
Signed-off-by: Dzianis Andreyenka <[email protected]>
Signed-off-by: Dzianis Andreyenka <[email protected]>
Signed-off-by: Dzianis Andreyenka <[email protected]>
@denisandreenko denisandreenko requested a review from a team as a code owner September 29, 2023 10:50
@codecov-commenter
Copy link

codecov-commenter commented Sep 29, 2023

Codecov Report

Merging #1412 (342bab6) into main (a64ee78) will increase coverage by 0.00%.
Report is 12 commits behind head on main.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1412   +/-   ##
=======================================
  Coverage   99.98%   99.99%           
=======================================
  Files         321      321           
  Lines       22960    23027   +67     
=======================================
+ Hits        22956    23025   +69     
+ Misses          2        1    -1     
+ Partials        2        1    -1     

see 13 files with indirect coverage changes

Signed-off-by: Dzianis Andreyenka <[email protected]>
docs/tutorials/chains/tezos_testnet.md Outdated Show resolved Hide resolved
docs/tutorials/chains/tezos_testnet.md Outdated Show resolved Hide resolved
docs/tutorials/chains/tezos_testnet.md Outdated Show resolved Hide resolved
docs/tutorials/chains/tezos_testnet.md Outdated Show resolved Hide resolved
docs/tutorials/chains/tezos_testnet.md Outdated Show resolved Hide resolved
docs/tutorials/custom_contracts/tezos.md Outdated Show resolved Hide resolved
docs/tutorials/custom_contracts/tezos.md Outdated Show resolved Hide resolved
docs/tutorials/custom_contracts/tezos.md Outdated Show resolved Hide resolved
As we know from the previous section - smart contracts on the Tezos blockchain are using the domain-specific, stack-based programming language called [Michelton](https://tezos.gitlab.io/active/michelson.html). It is a key component of the Tezos platform and plays a fundamental role in defining the behavior of smart contracts and facilitating their execution.
This language is very efficient but also a bit tricky and challenging for learning, so in order to teach FireFly how to interact with the smart contract, we will be using [FireFly Interface (FFI)](../../reference/firefly_interface_format.md) to define the contract inteface which later will be encoded to Michelton.

The following FFI sample demonstrates the specification for the widely used FA2 (analogue of ERC721 for EVM) smart contract:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we put the FFI for the sample "Simple Storage" contract that the rest of the tutorial uses here instead of the FA2 contract?

It seems like we're missing the step where we generate the contract interface in this guide.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FFI for tezos smart contracts is not generated and it needs to be build manually, as well as for Fabric chaincode.
I used the example of the FA2 contract, since it covers most of the different data types and it is better to rely on it when building FFI for your own smart contract.
Later I plan to add an additional doc section for building FFI for tezos smart contracts with a review of all supported types and examples.

docs/tutorials/custom_contracts/tezos.md Outdated Show resolved Hide resolved
denisandreenko and others added 9 commits October 10, 2023 09:35
Co-authored-by: Nicko Guyer <[email protected]>
Signed-off-by: Dzianis Andreyenka <[email protected]>
Co-authored-by: Nicko Guyer <[email protected]>
Signed-off-by: Dzianis Andreyenka <[email protected]>
Co-authored-by: Nicko Guyer <[email protected]>
Signed-off-by: Dzianis Andreyenka <[email protected]>
Co-authored-by: Nicko Guyer <[email protected]>
Signed-off-by: Dzianis Andreyenka <[email protected]>
Co-authored-by: Nicko Guyer <[email protected]>
Signed-off-by: Dzianis Andreyenka <[email protected]>
Co-authored-by: Nicko Guyer <[email protected]>
Signed-off-by: Dzianis Andreyenka <[email protected]>
Co-authored-by: Nicko Guyer <[email protected]>
Signed-off-by: Dzianis Andreyenka <[email protected]>
Co-authored-by: Nicko Guyer <[email protected]>
Signed-off-by: Dzianis Andreyenka <[email protected]>
Co-authored-by: Nicko Guyer <[email protected]>
Signed-off-by: Dzianis Andreyenka <[email protected]>
@denisandreenko denisandreenko requested a review from nguyer October 10, 2023 07:58
Copy link
Contributor

@nguyer nguyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this!

@nguyer nguyer merged commit 43dff8f into hyperledger:main Oct 23, 2023
14 checks passed
@denisandreenko denisandreenko deleted the docs/tezos_tutorial branch January 7, 2024 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants