Lamden / bounties

A place to store issues and information related to bounties.
3 stars 1 forks source link

Finalize and Write Tests for the Two Way Bridge #11

Open StuartFarmer opened 3 years ago

StuartFarmer commented 3 years ago

We are developing a feature for LamdenLink (https://www.lamdenlink.com/) that allows tokens from the Lamden network to be ported to EVM compatible chains such as Ethereum, Binance Smart Chain, etc. This will allow for AMM support, farming, and DeFi on those chains.

To do this, we wrote a proof-of-concept that is based on the code that takes tokens from the Ethereum network and ports them to the Lamden network.

There are different workflows depending on which network the token was originally native to. If the token is native to Ethereum (such as WETH, USDT, etc), the tokens are locked in a clearinghouse contract on Ethereum and minted on Lamden. If the token is native to Lamden (such as Tau, Rocketswap, etc) then the tokens are locked in a clearinghouse on Lamden and minted on Ethereum.

Currently, only the Ethereum -> Lamden bridge exists. That's where we need you. The developer should take the preliminary code that we wrote for the Lamden -> Ethereum bridge, unit test them (both the Python and Solidity contracts), and prepare them for production. This bridge will only be for the Tau currency.

The parent repository is: https://github.com/lamden/wrapped_tokens Preliminary Solidity code: https://github.com/Lamden/wrapped_tokens/blob/main/eth/TwoWayBridge.sol Preliminary Lamden code: https://github.com/Lamden/wrapped_tokens/blob/main/lamden/lamden_bridge.py

Workflow to achieve:

  1. User calls the deposit function on the lamden_bridge smart contract. The Tau tokens are transferred from the user to the lamden_bridge. The lamden_bridge then issues a proof. That proof is signed by the LamdenLink services and posted to the Lamden blockchain.
  2. The user then takes that proof and submits it to the Ethereum blockchain. This is done automatically by LamdenLink. If the proof is successful, then it mints those tokens on the Ethereum / EVM chain. Success!
  3. If a user wants to go back, they deposit the tokens on the Ethereum TwoWayBridge.sol contract. The tokens are then burned and an event is issued. This event is picked up by LamdenLink and the Tau is sent from its balance to the user.

Developers must join https://t.me/lamdenchat and message @stuartf to finalize their bounty application.

gitcoinbot commented 3 years ago

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


This issue now has a funding of 1000.0 USD (999.6 USD @ $1.0/USD) attached to it.

gitcoinbot commented 3 years ago

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


This issue now has a funding of 1000.0 USD (999.6 USD @ $1.0/USD) 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 265 years from now. Please review their action plans below:

1) strumster has been approved to start work.

-Create deploy scripts for both contracts -Build local environment of Lamden node, eth node and bridge server to test the current functionality of the full bridge. -Automate. -Add tests.

Learn more on the Gitcoin Issue Details page.

gitcoinbot commented 3 years ago

@strumster Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 3 years ago

@strumster Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 3 years ago

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


Work for 2000.0 USD (1999.2 USD @ $1.0/USD) has been submitted by: