Giter Site home page Giter Site logo

nervosnetwork / force-bridge Goto Github PK

View Code? Open in Web Editor NEW
36.0 13.0 34.0 5.91 MB

General Force Bridge components.

License: MIT License

Makefile 0.26% Shell 1.34% Rust 12.55% JavaScript 10.14% TypeScript 71.57% Solidity 3.90% Dockerfile 0.24%
nervos ckb crosschain ethereum

force-bridge's Introduction

Force Bridge

integration-ci workflow codecov

This project is still in active development.

A general new designed Force Bridge.

  • It can connect to all chains which support multiple signature account and Non-fungible token transfer. We plan to support EOS, TRON, BTC, Cardano and Polkadot in the first stage.
  • You have to trust the committee who runs the bridge.

Quick Start

Install Development Tools

# install capsule with cargo
cargo install capsule --git https://github.com/nervosnetwork/capsule.git --tag v0.2.3
# or download the binary and put it in you PATH
# https://github.com/nervosnetwork/capsule/releases/v0.2.3

Run bridge via CI

# Setup bridge, and run the integration test with docker
make local-ci

Run the bridge cli manually

cd offchain-modules
yarn install
cp config.json.example config.json
# edit the config file on your demands
yarn start

Install force-bridge cli

npm i -g @force-bridge/cli

force-bridge's People

Contributors

ccyanxyz avatar cryptowen avatar daryl-l avatar dfordivam avatar fpchan avatar homura avatar jacobdenver007 avatar leonli000 avatar nolanxyg avatar pygman avatar solargatsby avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

force-bridge's Issues

Is force-bridge-eth repo abandoned?

I saw no code updating of the force-bridge-eth repo. Is it abandoned?
Fore-bridge-eth uses a decentralized and trustless ChainRelay way.
Is the reason the ChainRelay is expensive to maintain block headers of SPV proof and verification cost expensive?

Script Server Error

While trying to use force bridge with Safepal, I receive a script error. I am trying to send Usdc(Nervos L1) to Usdc (erc20) using Nervos --> Eth in the force bridge. I am able to see my usdc/eth. I enter my eth address, click "Bridge" and receive the attached error. I am using eth mainnet
SmartSelect_20220220-170113
SmartSelect_20220220-170151

BNB/ bsc

I have BNB/bsc at Fonte bridge, how do I return them to the wallet at Yokai?

how to connect safepal wallet

Safepal wallet does not support metamask, so if we want to migrate the coins in safepal wallet address there is no way to connect to the DAPP,
how to connect safepal wallet to this dapp and migrate the tokens?

wallet nami

i can't figure out how to open a nami wallet

[用户反馈] 跨链 0.05ETH 到欧易交易所,一直pending,重试之后交易丢失

用户反馈,他在ForceBridge里通过Nervos->ETH桥 跨链提取 0.05ETH 到欧易交易所,底部一直显示为pending状态,到900多区块确认还没到账,过了好几个小时,他点pending右边的retry之后,就什么都没有了(也没到账、History里也没有记录),请帮忙分析排查。

跨链的资产:0.05 ETH。
CKB上交易tx:https://explorer.nervos.org/transaction/0x7f7027a2c5eac02c8ba4c9a114c9570bee2ed78cf99ec9a885954ff1255b6887

用户的以太坊钱包地址:0xF39eA31146Bd1f35a2F3d976195EB4F4F3Ee9554
ForceBridge上CKB的地址:ckb1qz0n46hjl3pe2jwtepcvv5ehf9p6l94qvk9addgmarvfsvvrum6j7qgp7w02xy2xh50ntghnm9mpjh457ne7a925qq967spu
欧易交易所的以太坊地址:0x80c53a5a06a7f06681347b0c23ae041b4239cc8a

相关截图:
image
image

cardano support

With the abilities above, we can transfer between user and multi-signature address with additional information in metadata on cardano.

We can implement the cardano component as long as we implement following functions in typescript:

  • transfer from multi-signature address with metadata.
  • monitor the cardano chain, filter the transactions which is sent to specific multi-signature address, parse the metadata.

Other links which may be useful

USDC Stuck in force bridge

Hello nervos team
I withdrew my usdc to force bridge but the fees is too high so i wanted to withdraw them back to yokai but there is no option to send them back and no way to swap them to other assets . And now my 150$ Usdc is stuck and I cannot do anything.

There are a lot of people who are facing this issue with their 1000’s of USDC stuck if you check ypur discord.

Please help and provide us a solution to withdraw usdc.

ForceBridge Fee Structure

Are there any plans to modify the ForceBridge fee model to effectively implement this "It might be adjusted according to the average gas price". For example, in Godwoken there is the idea of implementing an oracle to adjust the fees in real time in reference to the dollar, could something similar be implemented to optimize the ForceBridge fees? Especially for bridges with historically more expensive networks, such as Ethereum. In my opinion it would greatly improve the user experience.

In any case, whether there is a roadmap or not, could we increase the information on the fee structure in the https://github.com/nervosnetwork/force-bridge/blob/main/docs/faq.md section? In this way we could show users the reasons that have led to implement that model, the pros and cons, both of this and alternative models. For example, this Nervos Talk post about Godwoken fees is an example that can be followed:

https://talk.nervos.org/t/godwoken-v1-fee-structure/6675

Thank you!

Support CKB/SUDT transfer to Ethereum ERC20

tasks

  • solution documentation
  • offchain module
    • db
    • monitor
  • ETH contract
    • ERC20 contract(support mint with multisig owner)
    • optional: factory contract to create new ERC20 contract. We can also do this in offchain module
    • manage contract: mapping Nervos assets to Ethereum assets, handle committee change, etc
  • #222
  • UI. Should be integrated with existing UI.

history order

History should be ordered by date, from latest to earliest.

CleanShot 2021-10-21 at 16 12 03@2x

Nervos sudt destroy status not updating

I have cross-chained back to BSC and Ethereum from Nervos many times. Although the cross-chain was successful in the end, the susd destruction status display in the first step of cross-chain execution has always been stuck. Although the block has been confirmed successfully, the status display has always been It is pending, which causes these cross-chain records to be stuck there. Please solve this problem. The following is the cross-chain I executed on 2022.1.28. Until now, the records are still there.
截屏2022-02-16 下午8 29 16

Support cross chain to Godwoken directly

The default recipient address right now is PW-lock address. We can add some buttons ( or other components ) to enable users to switch among commonly used recipient.

We can support this UI only.

  • understand the rule of calculating Godwoken deposit address by Ethereum address
  • we may have to write some Godwoken config in the ENV
  • implement the UI to switch recipient, remain the default value pw-lock address

image

Implement a sUDT sender with pw-core

Noob me sent BNB from ForceBrdige to a PW address, I later realized that although the funds are safe however they are stuck due to the PW not supporting sUDT. My question is, will it be possible for someone to help implement a sUDT sender with pw-core, which has a built-in support for transferring sUDT,

 as pw-lock is public and not bound to portal wallet?

Bnb stuck in force bridge?

So I was trying to withdraw BNB from Yokai trying to get some funds from layer 2 to layer 1. When I hit the withdraw button I was assuming it went to the forcebridge but I didn’t see it in the forcebridge. Sooo my forcebridge already had usdc|eth when I withdrew my BNB to the forcebridge. Which I thought could have been the issue so I completed the bridge of usdc|eth and sent it to a cex successfully. After that I still had no BNB in the force bridge. Another blunder I did was that I did not have the BSC network connected to my MetaMask. So thinking that was the issue, I added the BSC network to my meta mask and still did not see my BNB balance on the forcebridge. The transaction did not revert back to Yokai and isn’t in the forcebridge currently. Any help would be appreciated :)

CKB/SUDT to ERC20 offchain MVP

  • lock generator( with asset locked in a secp256k1 address instead of bridge committee )
  • db
  • monitor
  • mint contract,without signature verification

rc lock generator

The new version of rc lock supports changing committee without change the lockscript itself. We should use it instead of normal multisig lock in CKB handler.

PR: nervosnetwork/ckb-production-scripts#38

Write a generator and an associated demo to finish following tasks:

  • generate a multisig lock
  • unlock this lock
  • change multisig committee

Do it separately(or in ckit lib), and integrate with force bridge later.
The rc lock may take some time to understand.
And the implementation may involve SMT proof generation, which lacks of JavaScript library now. We may have to implement one or a wrapper over the rust library.

Force Bridge Screen Blank

I’m still new to new to Nervos Force Bridge. I visited the https://forcebridge.com/bridge/ link to participate in BNB ILO. As per the instructions on the medium article, I selected BSC-> Nervos at the top of the page. But the screen is blank. Nothing shows up below.

I have my BNB on Binance.

image

What am I doing wrong? Please help.

Withdrawal USDC (Nervous)

On Force Bridge I have Nervous USDC, but I don't want to change them to Ethereum USDC. How to withdraw them to my L2 address?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.