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 <> ICON BTP Bridge #54

Open shikamarumind opened 3 years ago

shikamarumind commented 3 years ago

Description

This bounty will add Harmony blockchain to the set of blockchains supported by ICON's BTP interoperability solution. BTP is a decentralized cross-chain data transfer protocol that allows cross-network smart contract interactions, cross-network token transfer, cross-network NFT transfer, and more.

Context

The team needs to develop 3 smart contracts for the Harmony protocol, 1 contract for ICON and 1 relayer software to relay messages between the two chains.

The 3 contracts on Harmony (written in smart contract language of your choice) BMC (Blockchain Message Center) to handle BSH registration, general message logic. BSH (Blockchain Service Handler) to handle services such as fees and message delivery to the message center BMV (Blockchain Verifier) to verify relay messages from ICON blockchain

In addition, the team will need to build a Relayer Relay software handles message relays from Harmony to ICON (ICON to Harmony will be built by the ICON team)

1 contract on ICON (witten in Java) BMV on ICON blockchain to verify relay messages from Harmony blockchain

The ICON team can provide base modules for BMC and BMR, additionally, we have reference implementations written in GO built for parachains.

Relevant documentation:

https://docs.google.com/document/d/1ow18bBLzKXW3Jhpw0VvDOs4NbZaT1GXZ/edit#heading=h.gjdgxs

https://github.com/icon-project/IIPs/blob/master/IIPS/iip-25.md

https://docs.google.com/document/d/1SP5i6zE9SrVufRh_PnBrM5TyCPZjoShm/edit#heading=h.gjdgxs

Acceptance Criteria

Reward

$15,000 equivalent in ONE tokens

gitcoinbot commented 3 years ago

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


This issue now has a funding of 137245.2667 ONE (10067.21 USD @ $0.07/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 month from now. Please review their action plans below:

1) mikyr has started work.

Cryptomin es una mineria en la nuve que puede dar muy buenos dividendos

Learn more on the Gitcoin Issue Details page.

gitcoinbot commented 2 years ago

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


The funding of 137245.2667 ONE (15892.32 USD @ $0.12/ONE) attached to this issue has been cancelled by the bounty submitter

pandeykumar commented 2 years ago

Following is the update with progress so far. Btp work has been divided into 2 parts. First release as icon-bridge with centralized relayer . Second release as BTP 2.0 with decentralized relayer. We have completed the icon-bridge related work and deployed on testnet. In addition we have helped wonder.game deploy a version to support payment for NFT in Harmony with ICX in icon. Intermediate update -

1) Submitted PR for fetching receipts in batch https://github.com/harmony-one/harmony/pull/4077

2) Java BLS signature work ( this will be used in BTP 2.0 if harmony hasn't migrated to ETH 2.0 bls signature by then. https://github.com/biplavIbriz/bls/blob/e1315d0b4c740d6ac91bfdeb42932a880d99afae/ffi/java/BlsTest.java#L515 This work was done in co-ordination with herumi developer to create a java wrapper.

3) icon-bridge related deployment on testnet javascore are the smart contract on ICON berlin testnet solidity are the smart contract on harmony testnet

{ "javascore": { "bmc": "cx17ead9e38e3c67f7e60adffdc2891eab2a932481", "bsh": "cxd0bf4867012eed4eca6901568d803e892c992f61", "irc2" : "cxc8977431935cb682db1e11f17ac0e19291aeabb4", "nativeBSH" : "cxedde5ba834fddcea4ae488eb0e588abb2b7831a9", "ONE" : "cxf6e39926c8a0a3597537ab478aac64c7e1ed8906" }, "solidity": { "BMCPeriphery": "0x4159f9A697735b299813Fe3A540c55e4bba4DD39", "BMCManagement": "0x12F9ABcDABD1e39c5fA26A46E5D6602218558F51", "BSHImpl": "0x9444951b6E49C934e8720A1A5FaaECfCA6498b26", "BSHProxy": "0x42C870cC7d478d6149f875AbE0dFb956B6ad71E8", "HRC20TKN": "0xD675E934898810373055B2770a0D9Ca224f00Ed3", "BSHPeriphery": "0xF7A35d9F21e00feb7bcFCfD5A8c462A06437350D", "BSHCore": "0xA03e9Fb138831D349851A1526EE9778Aec5e7961", "ICX": "0xebD56c95bb204680b2C5b687c679bfe65b3ddadF" } }

Harmony Node: https://rpc.s0.b.hmny.io Icon Node: https://berlin.net.solidwallet.io/api/v3/icon_dex

3) BTP dashboard with harmony chain

http://testnet.btp.s3-website-ap-southeast-1.amazonaws.com/network

We are requesting the release of $15K at this moment.

Thank you.