{"id":25412304,"url":"https://github.com/datachainlab/harmony-cosmos-bridge-demo","last_synced_at":"2025-07-20T19:33:17.575Z","repository":{"id":38374543,"uuid":"440707016","full_name":"datachainlab/harmony-cosmos-bridge-demo","owner":"datachainlab","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-29T05:34:27.000Z","size":756,"stargazers_count":3,"open_issues_count":2,"forks_count":5,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-07T08:35:33.063Z","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":"2021-12-22T02:16:26.000Z","updated_at":"2025-03-09T06:19:44.000Z","dependencies_parsed_at":"2022-09-20T12:04:40.017Z","dependency_job_id":null,"html_url":"https://github.com/datachainlab/harmony-cosmos-bridge-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/datachainlab/harmony-cosmos-bridge-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachainlab%2Fharmony-cosmos-bridge-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachainlab%2Fharmony-cosmos-bridge-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachainlab%2Fharmony-cosmos-bridge-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachainlab%2Fharmony-cosmos-bridge-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datachainlab","download_url":"https://codeload.github.com/datachainlab/harmony-cosmos-bridge-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachainlab%2Fharmony-cosmos-bridge-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266187239,"owners_count":23889943,"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:40.566Z","updated_at":"2025-07-20T19:33:17.547Z","avatar_url":"https://github.com/datachainlab.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"harmony-cosmos-bridge-demo\n---\n\nThis is a demonstration of token transfer using IBC between a Harmony network and a Cosmos-based blockchain.\n\n# IBC Light Client\n\n- We use [yui-ibc-solidity](https://github.com/hyperledger-labs/yui-ibc-solidity) for IBC core and our customed [tendermint-sol](https://github.com/datachainlab/tendermint-sol/tree/use-ibc-sol-hmy) as a Tendermint light client on Harmony\n- We use [ibc-harmony-client](https://github.com/datachainlab/ibc-harmony-client) as a Harmony light client on Cosmos-based blockchain\n\n\n# Directory structure\n- contracts ... contracts and migration scripts for harmony\n- relayer ... IBC relayer using [yui-relayer](https://github.com/hyperledger-labs/yui-relayer)\n    - chains/harmony ... harmony modules\n    - chains/tendermint ... tendermint modules for tendermint-sol\n- tests ... test environments\n    - cases ... E2E test case\n    - chains/harmony ... configs for harmony localnet\n    - chains/tendermint ... configs for tendermint localnet\n\n\n# Setup\n\n## Prerequisites\n\n- bash 4.0 or higher\n- golang 1.16 or higher\n- node.js 16\n\n## Env\n\nExample:\n\n```\n# assume that RPC port offset is 500\nexport HARMONY_LOCAL_SHARD_0_URL=http://localhost:9598\nexport HARMONY_LOCAL_SHARD_1_URL=http://localhost:9596\n\nexport HARMONY_GAS_LIMIT=100000000\nexport HARMONY_GAS_PRICE=1000000000\n\n# used for deploying contracts\n# cf. https://github.com/harmony-one/harmony/pull/3332\nexport HARMONY_LOCAL_PRIVATE_KEY: '0x1f84c95ac16e6a50f08d44c7bde7aff8742212fda6e4321fde48bf83bef266dc'\n```\n\nHarmony localnet url is configured based on [tests/chains/harmony/configs/localnet_deploy.config](tests/chains/harmony/docker/configs/localnet_deploy.config).\n\n\n## Building Relayer\n\nRelayer needs libraries for harmony.\nAt first, we need to build the libraries.\n\n```\nmake clone-harmony\nmake build-harmony\n```\n\nThen, we will get a relayer with the following command.\n\n```\nmake build-relayer\n```\n\n## Preparing Harmony Local Network\n\nThe following commands creates a Harmony localnet docker image with deployed contracts.\n\n```\ncd tests/chains/harmony\nmake docker-image\n```\n\n## Preparing Cosmos Local Network\n\nThe following command creates a Cosmos local network image.\n\n```\ncd tests/chains/tendermint\nmake docker-image\n```\n\n# E2E\n\nThe following commands brings up the two networks, performs an IBC Handshake, and transfers token.\n\n```\ncd tests/cases/tm2harmony\nmake network\nmake test\nmake network-down\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatachainlab%2Fharmony-cosmos-bridge-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatachainlab%2Fharmony-cosmos-bridge-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatachainlab%2Fharmony-cosmos-bridge-demo/lists"}