Skip to content

Commit b11aae6

Browse files
authored
Merge pull request #1159 from kaleido-io/v1.2.0-docs
v1.2.0 Docs
2 parents f062a9c + f1cdcdb commit b11aae6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1451
-204
lines changed

docs/Gemfile.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,15 @@ GEM
217217
rb-fsevent (~> 0.10, >= 0.10.3)
218218
rb-inotify (~> 0.9, >= 0.9.10)
219219
mercenary (0.3.6)
220+
mini_portile2 (2.8.1)
220221
minima (2.5.1)
221222
jekyll (>= 3.5, < 5.0)
222223
jekyll-feed (~> 0.9)
223224
jekyll-seo-tag (~> 2.1)
224225
minitest (5.16.3)
226+
nokogiri (1.13.8)
227+
mini_portile2 (~> 2.8.0)
228+
racc (~> 1.4)
225229
nokogiri (1.13.8-arm64-darwin)
226230
racc (~> 1.4)
227231
octokit (4.25.1)
@@ -268,6 +272,7 @@ GEM
268272

269273
PLATFORMS
270274
arm64-darwin-21
275+
ruby
271276

272277
DEPENDENCIES
273278
github-pages

docs/_i18n/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pages:
1414
avalanche: Avalanche Testnet
1515
binance_smart_chain: Binance Smartchain Testnet
1616
blockchain_protocols: Blockchain Protocols
17+
blockchain_operation_status: Blockchain Operation Status
1718
broadcast_data: Broadcast data
1819
broadcast_data: Broadcast Data
1920
broadcast_shared_data: Broadcast / Shared Data

docs/architecture/blockchain_connector_framework.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ A reference implementation is provided that:
145145

146146
The reference implementation is available [here](https://github.com/hyperledger/firefly-transaction-manager/blob/main/pkg/policyengines/simple/simple_policy_engine.go)
147147

148+
FireFly 1.2 introduced a specification for policy engines to record more detailed information about transaction sub-status and lower-level actions it performs
149+
as part of progressing a transaction onto the chain. A policy engine might for example have a sub-status of `Received` and another sub-status of `Tracking`. For more information see [Blockchain Operation Status](../reference/blockchain_operation_status.html)
150+
151+
148152
## Event Streams
149153

150154
One of the largest pieces of heavy lifting code in the FFTM codebase, is the event stream

docs/faqs/index.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,21 @@ has_children: false
1010
Find answers to the most commonly asked FireFly questions.
1111

1212
## How does FireFly enable multi-chain applications?
13-
It's best to think about FireFly as a rich orchestration layer that sits one layer above the blockchain. FireFly helps to abstract away much of the complex blockchain functionality (such as data exchange, private messaging, common token functionality, etc) in a loosely coupled microservice architecture with highly pluggable components. This enables application developers to focus on building innovative Web3 applications.
13+
14+
It's best to think about FireFly as a rich orchestration layer that sits one layer above the blockchain. FireFly helps to abstract away much of the complex blockchain functionality (such as data exchange, private messaging, common token functionality, etc) in a loosely coupled microservice architecture with highly pluggable components. This enables application developers to focus on building innovative Web3 applications.
1415

1516
There aren't any out of the box bridges to connect two separate chains together, but with a collection of FireFly instances across a consortium, FireFly could help listen for events on Blockchain A and take an action on Blockchain B when certain conditions are met.
1617

1718
## 📜 How do I deploy smart contracts?
18-
In order to interact with a smart contract on a public or private Ethereum chain you need to first deploy it to the chain. Deployment means that you've sent a transaction with the compiled source code to the chain without a specified recipient and received a contract address that you and others on the network can use to interact with your contract.
1919

20-
Refer to the [Smart Contract Tutorial](../tutorials/custom_contracts/) for instructions to deploy a smart contract to your private networking using FireFly.
20+
The recommended way to deploy smart contracts on Ethereum chains is by using FireFly's built in API. For a step by step example of how to do this you can refer to the [Smart Contract Tutorial](../tutorials/custom_contracts/ethereum.md#contract-deployment) for Ethereum based chains.
21+
22+
For Fabric networks, please refer to the [Fabric chaincode lifecycle docs](https://hyperledger-fabric.readthedocs.io/en/latest/chaincode_lifecycle.html) for detailed instructions on how to deploy and manage Fabric chaincode.
2123

2224
## 🦊 Can I connect FireFly to MetaMask?
25+
2326
Yes! Before you set up MetaMask you'll likely want to create some tokens that you can use to send between wallets on your FF network. Go to the tokens tab in your FireFly node's UI, create a token pool, and then mint some tokens. Once you've done this, follow the steps listed [here](https://hyperledger.github.io/firefly/tutorials/tokens/erc721.html#use-metamask) to set up MetaMask on your network.
2427

2528
## 🚀 Connect with us on Discord
26-
If your question isn't answered here or if you have immediate questions please don't hesitate to reach out to us on [Discord](https://discord.gg/hyperledger_) in the `firefly` channel:
29+
30+
If your question isn't answered here or if you have immediate questions please don't hesitate to reach out to us on [Discord](https://discord.gg/hyperledger_) in the `firefly` channel:

docs/gettingstarted/setup_env.md

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,14 @@ The FireFly stack will run in a `docker-compose` project. For systems that run D
4141

4242
It's really easy to create a new FireFly stack. The `ff init` command can create a new stack for you, and will prompt you for a few details such as the name, and how many members you want in your stack.
4343

44-
Run:
44+
To create an Ethereum based stack, run:
4545
```
46-
ff init
46+
ff init ethereum
47+
```
48+
49+
To create an Fabric based stack, run:
50+
```
51+
ff init fabric
4752
```
4853

4954
Choose a stack name. For this guide, I will choose the name `dev`, but you can pick whatever you want:
@@ -60,37 +65,46 @@ number of members: 3
6065

6166
### Stack initialization options
6267

63-
There are quite a few options that you can choose from when creating a new stack. For now, we'll just stick with the defaults. To see the full list of options, just run `ff init --help`.
68+
There are quite a few options that you can choose from when creating a new stack. For now, we'll just stick with the defaults. To see the full list of Ethereum options, just run `ff init ethereum --help` or to see the full list of Fabric options run `ff init fabric --help`
6469

6570
```
66-
$ ff init --help
67-
Create a new FireFly local dev stack
71+
ff init ethereum --help
72+
Create a new FireFly local dev stack using an Ethereum blockchain
6873
6974
Usage:
70-
ff init [stack_name] [member_count] [flags]
75+
ff init ethereum [stack_name] [member_count] [flags]
7176
7277
Flags:
7378
--block-period int Block period in seconds. Default is variable based on selected blockchain provider. (default -1)
74-
-b, --blockchain-provider string Blockchain provider to use. Options are: [geth besu fabric corda] (default "geth")
79+
-c, --blockchain-connector string Blockchain connector to use. Options are: [evmconnect ethconnect] (default "evmconnect")
80+
-n, --blockchain-node string Blockchain node type to use. Options are: [geth besu remote-rpc] (default "geth")
81+
--chain-id int The chain ID - also used as the network ID (default 2021)
7582
--contract-address string Do not automatically deploy a contract, instead use a pre-configured address
83+
-h, --help help for ethereum
84+
--remote-node-url string For cases where the node is pre-existing and running remotely
85+
86+
Global Flags:
87+
--ansi string control when to print ANSI control characters ("never"|"always"|"auto") (default "auto")
88+
--channel string Select the FireFly release channel to use. Options are: [stable head alpha beta rc] (default "stable")
89+
--connector-config string The path to a yaml file containing extra config for the blockchain connector
7690
--core-config string The path to a yaml file containing extra config for FireFly Core
77-
-d, --database string Database type to use. Options are: [postgres sqlite3] (default "sqlite3")
78-
--ethconnect-config string The path to a yaml file containing extra config for Ethconnect
91+
-d, --database string Database type to use. Options are: [sqlite3 postgres] (default "sqlite3")
7992
-e, --external int Manage a number of FireFly core processes outside of the docker-compose stack - useful for development and debugging
8093
-p, --firefly-base-port int Mapped port base of FireFly core API (1 added for each member) (default 5000)
81-
-h, --help help for init
94+
--ipfs-mode string Set the mode in which IFPS operates. Options are: [private public] (default "private")
8295
-m, --manifest string Path to a manifest.json file containing the versions of each FireFly microservice to use. Overrides the --release flag.
96+
--multiparty Enable or disable multiparty mode (default true)
97+
--node-name stringArray Node name
98+
--org-name stringArray Organization name
8399
--prometheus-enabled Enables Prometheus metrics exposition and aggregation to a shared Prometheus server
84100
--prometheus-port int Port for the shared Prometheus server (default 9090)
85101
--prompt-names Prompt for org and node names instead of using the defaults
86-
-r, --release string Select the FireFly release version to use (default "latest")
102+
-r, --release string Select the FireFly release version to use. Options are: [stable head alpha beta rc] (default "latest")
103+
--request-timeout int Custom request timeout (in seconds) - useful for registration to public chains
87104
--sandbox-enabled Enables the FireFly Sandbox to be started with your FireFly stack (default true)
88105
-s, --services-base-port int Mapped port base of services (100 added for each member) (default 5100)
89-
-t, --token-providers stringArray Token providers to use. Options are: [none erc1155 erc20_erc721] (default [erc1155])
90-
91-
Global Flags:
92-
--ansi string control when to print ANSI control characters ("never"|"always"|"auto") (default "auto")
93-
-v, --verbose verbose log output
106+
-t, --token-providers stringArray Token providers to use. Options are: [none erc1155 erc20_erc721] (default [erc20_erc721])
107+
-v, --verbose verbose log output
94108
```
95109

96110
### Start your stack
180 KB
Loading

0 commit comments

Comments
 (0)