harmony-one / bounties

Bounty program is to help the community take part in the development of the Harmony blockchain. It covers from core feature to validator tooling, from dApp development to DeFi integration.
MIT License
59 stars 23 forks source link

Harmony <> Terra bridge #32

Closed gupadhyaya closed 3 years ago

gupadhyaya commented 3 years ago

Description

Harmony wants to connect to Terra for bridging mirrored assets and UST stable coin. This bounty will add Harmony chain support to terra's bridge.

Context

Currently Terra's bridge powered by Shuffle supports connecting to Ethereum and Binance Smart Chain. The bridge is hosted: https://bridge.terra.money/, documentation: https://docs.mirror.finance/user-guide/terra-bridge, bridge contracts: https://github.com/terra-project/shuttle

Acceptance Criteria

Reward

$10,000 USD equivalent in ONEs

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 86647.8189 ONE (9889.12 USD @ $0.11/ONE) attached to it.

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work has been started.

These users each claimed they can complete the work by 1 week, 1 day ago. Please review their action plans below:

1) developerfred has started work.

Hamony one <> Terra 2) bmgalego has started work.

Harmony Terra Bridge

Learn more on the Gitcoin Issue Details page.

bmgalego commented 3 years ago

I have added support to harmony chain in both repos, shuttle and bridge-web-app. https://github.com/bmgalego/bridge-web-app https://github.com/bmgalego/shuttle

To test:

  1. clone both repos
  2. in shuttle/contracts fill .env file, edit migrations/24_deploy_minter.js add public address of signers and run "truffle migrate --network hmy_testnet" and save contract addresses
  3. in shuttle/eth and shuttle/terra fill src/config/EthContractInfos.ts with contract addresses
  4. fill .env in both folders, TERRA_TRACKING_ADDR is just a normal wallet where funds from shuttle are deposited
  5. edit bridge-web-app/public/hmy.json fill the addresses
  6. edit bridge-web-app/src/consts/network.ts fill the harmony shuttle address with the same one as TERRA_TRACKING_ADDR
  7. start shuttle/terra, shuttle/eth and bridge-web-app

I think this is all it needs to test, let me know if you find any issues. To change the logo of harmony is in bridge-web-app/conts/network.ts, also in this file the whitelist json file url can be edited.

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 86647.8189 ONE (10121.76 USD @ $0.12/ONE) has been submitted by:


gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 86647.8189 ONE (9148.97 USD @ $0.1/ONE) has been submitted by:

  1. @bmgalego
  2. @vinhbhn

@papiofficial please take a look at the submitted work:


gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


The funding of 86647.8189 ONE (10579.18 USD @ $0.12/ONE) attached to this issue has been approved & issued to @bmgalego.