{"id":25412295,"url":"https://github.com/datachainlab/fabric-tendermint-cross-demo","last_synced_at":"2025-09-04T04:11:13.879Z","repository":{"id":56855314,"uuid":"470446796","full_name":"datachainlab/fabric-tendermint-cross-demo","owner":"datachainlab","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-27T02:33:54.000Z","size":214,"stargazers_count":0,"open_issues_count":0,"forks_count":4,"subscribers_count":15,"default_branch":"main","last_synced_at":"2024-06-21T20:40:11.517Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datachainlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-16T05:36:20.000Z","updated_at":"2022-05-12T00:51:00.000Z","dependencies_parsed_at":"2022-08-24T10:40:27.574Z","dependency_job_id":null,"html_url":"https://github.com/datachainlab/fabric-tendermint-cross-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachainlab%2Ffabric-tendermint-cross-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachainlab%2Ffabric-tendermint-cross-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachainlab%2Ffabric-tendermint-cross-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachainlab%2Ffabric-tendermint-cross-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datachainlab","download_url":"https://codeload.github.com/datachainlab/fabric-tendermint-cross-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239120747,"owners_count":19585086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-16T11:18:38.893Z","updated_at":"2025-02-16T11:18:39.619Z","avatar_url":"https://github.com/datachainlab.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fabric tendermint cross demo\n\nThis is an example application for an atomic swap through Cross-chain transaction using [Cross Framework](https://github.com/datachainlab/cross) between [Hyperledger Fabric](https://github.com/hyperledger/fabric) and [Tendermint](https://github.com/tendermint/tendermint).\n\nAs Atomic commit protocol, [Simple commit protocol](https://datachainlab.github.io/cross-docs/architecture/atomic-commit-protocol/#simple-commit-protocol) is used.\n\n## Requirements\n\n- [Go](https://go.dev/) 1.16+\n- [Docker](https://www.docker.com/products/docker-desktop)\n- [jq](https://stedolan.github.io/jq/)\n\n## Install required tools\n\nThe below command installs Relayer, Fabric tools, Fabric CLI, Tendermint CLI\n\n```Makefile\n# install fabric tools and build Fabric/Tendermint CLI, Relayer\nmake -C demo build -j5\n```\n\n## Chains\n\n| Chain      | Node               | Role                    | Application                |\n| ---------- | ------------------ | ----------------------- | -------------------------- |\n| Tendermint | 1 Node             | Coordinator/Participant | ERC-20 based on CDT Module |\n| Fabric     | 1 Orderer, 3 Peers | Participant             | ERC-20 based on CDT Module |\n\n- Refer to [CDT](https://github.com/datachainlab/cross-cdt)\n\n## Directory structure\n\n- cmds\n  - alpha ... Tendermint CLI\n  - beta ... Fabric CLI\n- contracts\n  - erc20 ... contract modules for Tendermint/Fabric\n- demo ... demo environment including\n  - chains\n    - fabric ... fabric-related files including docker-compose.yaml for network\n      - chaincode\n        - fabibc ... fabric chaincode application\n    - tendermint ... tendermint simapp working as CLI and tendermint application including docker-compose.yaml for network\n  - configs ... config files for alpha cli, beta cli, fabric app, relayer\n  - scripts ... shell scripts for alpha cli, beta cli, relayer, scenario\n- relayer ... Relayer CLI\n\n### How tools work\n\n- Relayer\n  - relaying packets between different chains\n- Fabric tools\n  - genesis block generation\n  - configuration of a channel\n  - cryptographic generation\n  - deployment of chaincode\n- Fabric CLI\n  - creating tx, submitting tx, querying tx on Fabric node\n- Tendermint CLI\n  - creating tx, submitting tx, querying tx on Tendermint node\n\n## Startup fabric and tendermint network\n\n```Makefile\n# prepare fabric network and tendermint network using docker containers\nmake -C demo network\n```\n\n## Testing the demo\n\n```Makefile\n# initialize relayer, fabric CLI, tendermint CLI, and run handshake for IBC between fabric and tendermint by creating transactions.\nmake -C demo run-init\n# run ./scripts/scenario/sample-scenario. See the `About sample-scenario` section for more detail.\nmake -C demo run\n```\n\n## End network\n\n```Makefile\n# down related containers, remove volumes\nmake -C demo network-down\n# remove any generated data\nmake -C demo clean\n```\n\n## Restart network if needed\n\n```Makefile\nmake -C demo network-down\nmake -C demo clean\nmake -C demo network\n```\n\n## About sample-scenario\n\nSee [About sample-scenario](https://github.com/datachainlab/fabric-tendermint-cross-demo/tree/main/demo#about-sample-scenario)\n\n## READMEs\n\nAdditional information can be found below.\n\n- [Alpha CLI for Tendermint](https://github.com/datachainlab/fabric-tendermint-cross-demo/tree/main/cmds/alpha)\n- [Beta CLI for Fabric](https://github.com/datachainlab/fabric-tendermint-cross-demo/tree/main/cmds/beta)\n- [ERC20 Contract](https://github.com/datachainlab/fabric-tendermint-cross-demo/tree/main/contracts/erc20)\n- [Demo](https://github.com/datachainlab/fabric-tendermint-cross-demo/tree/main/demo)\n- [Fabric](https://github.com/datachainlab/fabric-tendermint-cross-demo/tree/main/demo/chains/fabric)\n- [Fabibc Application](https://github.com/datachainlab/fabric-tendermint-cross-demo/tree/main/demo/chains/fabric/chaincode/fabibc)\n- [Tendermint Application](https://github.com/datachainlab/fabric-tendermint-cross-demo/tree/main/demo/chains/tendermint)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatachainlab%2Ffabric-tendermint-cross-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatachainlab%2Ffabric-tendermint-cross-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatachainlab%2Ffabric-tendermint-cross-demo/lists"}