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

Facilitator readme #359

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from
Draft

Conversation

gulshanvasnani
Copy link
Contributor

@gulshanvasnani gulshanvasnani commented Mar 18, 2020

PR contains below instructions to setup facilitator :

  • Subgraph deployment command for chains.
  • Creation of facilitator manifest.
  • Facilitator init command options.
  • Facilitator start command options.
  • Add prerequisites.
  • Added instruction to start the chains.

fixes #354

Copy link
Contributor

@abhayks1 abhayks1 left a comment

Choose a reason for hiding this comment

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

There are inline comments ⚔️


Note: If subgraph deployment fails, then check node version to be 11.12.0.

4. Manifest file is required to initialize and start facilitator. It must be an valid yaml file. Format for manifest file :
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
4. Manifest file is required to initialize and start facilitator. It must be an valid yaml file. Format for manifest file :
4. Manifest file is required to initialize and start facilitator. It must be a valid yaml file. Format for manifest file :

facilitate_tokens:
- "<supported_tokens>"
```
* Create account on origin and auxiliary nodes. At origin, fund avatar account with ETH. At auxiliary, fund avatar account with base coin. Save the keystore files. For each account, create a password file.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Create account on origin and auxiliary nodes. At origin, fund avatar account with ETH. At auxiliary, fund avatar account with base coin. Save the keystore files. For each account, create a password file.
* Create account on origin and auxiliary nodes. In origin, fund avatar account with ETH. In auxiliary, fund avatar account with base coin. Save the keystore files. For each account, create a password file.

Copy link
Contributor

Choose a reason for hiding this comment

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

We can give reference of faucet for funding of base coin.

origin:
avatar_account: "0xcd8b7d0211e51b78d3fd1209ca8a6955fc7dfbca"
node_endpoint: https://rpc.slock.it/goerli
graph_ws_endpoint: ws://localhost:8000/subgraphs/name/m1_facilitator
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
graph_ws_endpoint: ws://localhost:8000/subgraphs/name/m1_facilitator
graph_ws_endpoint: ws://localhost:8000/subgraphs/name/mosaic/origin-erc20gateway

avatar_account: "0xcd8b7d0211e51b78d3fd1209ca8a6955fc7dfbca"
node_endpoint: https://rpc.slock.it/goerli
graph_ws_endpoint: ws://localhost:8000/subgraphs/name/m1_facilitator
graph_rpc_endpoint: http://localhost:8000/subgraphs/name/m1_facilitator
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
graph_rpc_endpoint: http://localhost:8000/subgraphs/name/m1_facilitator
graph_rpc_endpoint: http://localhost:8000/subgraphs/name/mosaic/origin-erc20gateway

auxiliary:
avatar_account: "0xd14087a083fdd4049dcf1e7eb01ee2f5c89eb1c9"
node_endpoint: https://chain.mosaicdao.org/hadapsar
graph_ws_endpoint: ws://localhost:8000/subgraphs/name/m1_facilitator
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
graph_ws_endpoint: ws://localhost:8000/subgraphs/name/m1_facilitator
graph_ws_endpoint: ws://localhost:8000/subgraphs/name/mosaic/aux-erc20gateway

avatar_account: "0xd14087a083fdd4049dcf1e7eb01ee2f5c89eb1c9"
node_endpoint: https://chain.mosaicdao.org/hadapsar
graph_ws_endpoint: ws://localhost:8000/subgraphs/name/m1_facilitator
graph_rpc_endpoint: http://localhost:8000/subgraphs/name/m1_facilitator
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
graph_rpc_endpoint: http://localhost:8000/subgraphs/name/m1_facilitator
graph_rpc_endpoint: http://localhost:8000/subgraphs/name/mosaic/aux-erc20gateway

origin_contract_addresses:
erc20_gateway: "0x65E1A3d1e95E271325B882aa139997AFAE6F0351"
facilitate_tokens:
- "0x0000000000000000000000000000000000000012"
Copy link
Contributor

Choose a reason for hiding this comment

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

Specify that facilitate_tokens can be null in case, all tokens needs to be supported

Example:
```
version: v0.14
architecture_layout: MOSAIC1
Copy link
Contributor

Choose a reason for hiding this comment

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

Specify other values of architecture_layout.

facilitate_tokens:
- "<supported_tokens>"
```
* Create account on origin and auxiliary nodes. At origin, fund avatar account with ETH. At auxiliary, fund avatar account with base coin. Save the keystore files. For each account, create a password file.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Create account on origin and auxiliary nodes. At origin, fund avatar account with ETH. At auxiliary, fund avatar account with base coin. Save the keystore files. For each account, create a password file.
* Create account an on origin and auxiliary nodes. At origin, fund avatar account with ETH. At auxiliary, fund avatar account with base coin. Save the keystore files. For each account, create a password file.

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.

Update README to support m1_facilitator
2 participants