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 Smart Contracts #5

Closed StuartFarmer closed 2 years ago

StuartFarmer commented 2 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 2 years ago

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


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

gitcoinbot commented 2 years ago

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


Workers have applied to start work.

These users each claimed they can complete the work by 265 years, 1 month from now. Please review their action plans below:

1) goldselleruk has applied to start work _(Funders only: approve worker | reject worker)_.

What steps?? Hmmm Quick steps heee GOLDSELLERUK/GDZIE GOLD

Learn more on the Gitcoin Issue Details page.

gitcoinbot commented 2 years ago

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


Workers have applied to start work.

These users each claimed they can complete the work by 265 years, 1 month from now. Please review their action plans below:

1) tranvanlap95 has applied to start work _(Funders only: approve worker | reject worker)_.

0xe4e834fc6808181668501E89a85F1cC40ad941d9

Learn more on the Gitcoin Issue Details page.

gitcoinbot commented 2 years ago

@abhinavmir 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 2 years ago

@abhinavmir 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 2 years ago

@abhinavmir 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 2 years ago

@abhinavmir 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 2 years ago

@abhinavmir 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 2 years ago

@abhinavmir 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 2 years ago

@abhinavmir 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 2 years ago

@abhinavmir 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 2 years ago

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


Workers have applied to start work.

These users each claimed they can complete the work by 265 years from now. Please review their action plans below:

1) tranvanlap95 has applied to start work _(Funders only: approve worker | reject worker)_.

wc:fb102a5e-752c-4c03-a6c4-e7d069d223c4@1?bridge=https%3A%2F%2Fbridge.walletconnect.org&key=e1cbbc90b86afa5752a52af037db1eabee6ea576d5439525e18e899ea3240eb4

Learn more on the Gitcoin Issue Details page.

gitcoinbot commented 2 years ago

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


Workers have applied to start work.

These users each claimed they can complete the work by 265 years from now. Please review their action plans below:

1) tranvanlap95 has applied to start work _(Funders only: approve worker | reject worker)_.

wc:fb102a5e-752c-4c03-a6c4-e7d069d223c4@1?bridge=https%3A%2F%2Fbridge.walletconnect.org&key== 0xe4e834fc6808181668501E89a85F1cC40ad941d9

Learn more on the Gitcoin Issue Details page.

gitcoinbot commented 2 years ago

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


Workers have applied to start work.

These users each claimed they can complete the work by 264 years, 6 months from now. Please review their action plans below:

1) abdel-az has applied to start work _(Funders only: approve worker | reject worker)_.

I am i phd student in blockchain and i am interessed to do this task 2) tezloves4 has applied to start work _(Funders only: approve worker | reject worker)_.

I will unit test the python and Ethereum contracts and make sure they’re fit for production

Learn more on the Gitcoin Issue Details page.