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

Cancelled #97

Closed
wants to merge 31 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
88e9006
DA-512 add Tezos Testnet page
denisandreenko Sep 25, 2023
a99ed7f
DA-512 Custom contracts page - intro
denisandreenko Sep 26, 2023
4e34dc8
DA-512 Update images
denisandreenko Sep 29, 2023
9d725af
DA-512 fix tezos testnet page
denisandreenko Sep 29, 2023
1a380d9
DA-512 Add working with smart contracts (Tezos) page
denisandreenko Sep 29, 2023
cf10000
change reference
denisandreenko Sep 29, 2023
1e24174
Update docs/tutorials/chains/tezos_testnet.md
denisandreenko Oct 10, 2023
4fabafa
Update docs/tutorials/chains/tezos_testnet.md
denisandreenko Oct 10, 2023
c393944
Update docs/tutorials/chains/tezos_testnet.md
denisandreenko Oct 10, 2023
e443f6e
Update docs/tutorials/chains/tezos_testnet.md
denisandreenko Oct 10, 2023
11c52ce
Update docs/tutorials/chains/tezos_testnet.md
denisandreenko Oct 10, 2023
18d222e
Update docs/tutorials/custom_contracts/tezos.md
denisandreenko Oct 10, 2023
279103f
Update docs/tutorials/custom_contracts/tezos.md
denisandreenko Oct 10, 2023
c1fb48a
Update docs/tutorials/custom_contracts/tezos.md
denisandreenko Oct 10, 2023
342bab6
Update docs/tutorials/custom_contracts/tezos.md
denisandreenko Oct 10, 2023
43dff8f
Merge pull request #1412 from OneOf-Inc/docs/tezos_tutorial
nguyer Oct 23, 2023
6c96dfb
Include "detail" param in Swagger for GET operation
awrichar Nov 1, 2023
854df6c
Merge pull request #1420 from kaleido-io/operation
nguyer Nov 2, 2023
8759f8c
Call ResolveFFI from GenerateFFI
awrichar Nov 8, 2023
951e655
Merge pull request #1423 from kaleido-io/ffi
nguyer Nov 8, 2023
56ef4f2
DA-539 Update tezos docs
denisandreenko Nov 13, 2023
e0e9e34
Merge pull request #1426 from OneOf-Inc/docs/tezos
nguyer Nov 15, 2023
ea1e15f
Fix JSON schema output for custom contracts
nguyer Nov 20, 2023
4d87450
Update comments on Swagger generator
nguyer Nov 29, 2023
50d2acd
Merge pull request #1427 from kaleido-io/ffi2swagger-output
nguyer Nov 29, 2023
1526751
Definition conflicts should be HTTP 409
awrichar Dec 8, 2023
04d0357
Merge pull request #1430 from kaleido-io/def-409
awrichar Dec 8, 2023
6406eef
Add name/version if not specified
peterbroadhurst Dec 13, 2023
4645f28
Merge pull request #1432 from hyperledger/optional-name
nguyer Dec 13, 2023
3dac92f
Correct uniqueness lookup for nil location
peterbroadhurst Dec 14, 2023
4c54af5
Handle empty string consistently too
peterbroadhurst Dec 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/_i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,4 @@ pages:
xdc_testnet: XDC Testnet
zksync_testnet: zkSync Testnet
rotate_dx_certs: Rotate Data Exchange Certificates
tezos_testnet: Tezos Testnet
6 changes: 6 additions & 0 deletions docs/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26737,6 +26737,9 @@ paths:
description: The time the operation was created
format: date-time
type: string
detail:
description: Additional detailed information about an operation
provided by the connector
error:
description: Any error reported back from the plugin for this
operation
Expand Down Expand Up @@ -35719,6 +35722,9 @@ paths:
description: The time the operation was created
format: date-time
type: string
detail:
description: Additional detailed information about an operation
provided by the connector
error:
description: Any error reported back from the plugin for this
operation
Expand Down
Binary file added docs/tutorials/chains/images/tezos_explorer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tutorials/chains/images/tezos_faucet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
109 changes: 109 additions & 0 deletions docs/tutorials/chains/tezos_testnet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
---
layout: i18n_page
title: pages.tezos_testnet
parent: pages.chains
grand_parent: pages.tutorials
nav_order: 6
---

# {%t pages.tezos_testnet %}
{: .no_toc }

1. TOC
{:toc}

---

This guide will walk you through the steps to create a local FireFly development environment and connect it to the public Tezos Ghostnet testnet.

## Previous steps: Install the FireFly CLI

If you haven't set up the FireFly CLI already, please go back to the Getting Started guide and read the section on how to [Install the FireFly CLI](../../gettingstarted/firefly_cli.md).

[← ① Install the FireFly CLI](../../gettingstarted/firefly_cli.md){: .btn .btn-purple .mb-5}

## Set up the transaction signing service <a name="signatory"></a>

[Signatory](https://signatory.io/) service allows to work with many different key-management systems.\
By default, FF uses [local signing](https://signatory.io/docs/file_based) option.\
However, it is also possible to configure the transaction signing service using key management systems such as: AWS/Google/Azure KMS, HCP Vault, etc.
> **NOTE**: The default option is not secure and is mainly used for development and demo purposes. Therefore, for the production, use the selected KMS.\
The full list can be found [here](https://github.com/ecadlabs/signatory#backend-kmshsm-support-status).

## Create a `tezosconnect.yml` config file

In order to connect to the Tezos testnet, you will need to set a few configuration options for the tezosconnect blockchain connector. Create a text file called `tezosconnect.yml` with the following contents:

```yml
connector:
blockchain:
rpc: https://ghostnet.ecadinfra.com
network: ghostnet
signatory: http://127.0.0.1:6732 # tx signing service address
```

For this tutorial, we will assume this file is saved at `~/Desktop/tezosconnect.yml`. If your path is different, you will need to adjust the path in the next command below.

## Creating a new stack

To create a local FireFly development stack and connect it to the Tezos Ghostnet testnet, we will use command line flags to customize the following settings:

- Create a new Tezos based stack named `tezos` with `1` member
- Disable `multiparty` mode. We are going to be using this FireFly node as a Web3 gateway, and we don't need to communicate with a consortium here
- Merge the custom config created above with the generated `tezosconnect.yml` config file

To do this, run the following command:

```
ff init tezos dev 1 \
--multiparty=false \
--connector-config ~/Desktop/tezosonnect.yml
```

## Start the stack

Now you should be able to start your stack by running:

```
ff start dev
```

After some time it should print out the following:

```
Web UI for member '0': http://127.0.0.1:5000/ui
Sandbox UI for member '0': http://127.0.0.1:5109


To see logs for your stack run:

ff logs dev
```

## Get some XTZ

At this point you should have a working FireFly stack, talking to a public chain. However, you won't be able to run any transactions just yet, because you don't have any way to pay transaction fee. A testnet faucet can give us some XTZ, the native token for Tezos.

First, you need to get an account address, which was created during [signer set up](#signatory) step.\
To check that, you can run:
```
ff accounts list dev
[
{
"address": "tz1cuFw1E2Mn2bVS8q8d7QoCb6FXC18JivSp",
"privateKey": "..."
}
]
```


After that, go to [Tezos Ghostnet Faucet](https://faucet.ghostnet.teztnets.xyz/) and paste the address in the form and click the **Request** button.

![Tezos Faucet](images/tezos_faucet.png)

### Confirm the transaction on TzStats
You should be able to go lookup your account on [TzStats for the Ghostnet testnet](https://ghost.tzstats.com/) and see that you now have a balance of 100 XTZ (or 2001 XTZ accordingly). Simply paste in your account address to search for it.

On the **Transfers** tab from you account page you will see the actual transfer of the XTZ from the faucet.

![TzStats](images/tezos_explorer.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/tutorials/custom_contracts/pinning.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: default
title: Pinning Data
parent: pages.custom_smart_contracts
grand_parent: pages.tutorials
nav_order: 3
nav_order: 4
---

# Pin off-chain data to a custom blockchain transaction
Expand Down
Loading