Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

[Frontend] Starbridge Integration #100

Open
wants to merge 92 commits into
base: main
Choose a base branch
from

Conversation

welladam
Copy link
Contributor

@welladam welladam commented Nov 1, 2022

Starbridge - Frontend

The objective of this project is to transfer assets between wallets from different networks.
Currently, the available flows are from Stellar to Ethereum and vice versa, being able to send only ETH from one to the other.
With some initial setup, you will be able to connect your wallets using Freighter for Stellar and Metamask for Ethereum and start the transfer flow.

⚠️ Remember that the refund flow was not implemented in both transfer flows!

Project Architecture

Front: React, Typescript using the Atomic Design

You can check the project architecture here

Environment Variables

The environment variables are in src/config. You can use the .env.example as a base to create your .env.local
config file

Run Locally

Install dependencies

  npm install

Start the server

  npm run start:dev

The project will be running at http://localhost:3000/

If you want you can run it on Docker too.

  docker build -t starbridge-front .   
  docker run -dp 3000:3000 starbridge-front

Using the ngrok

To make transactions on your wallets, you must have a secure connection locally. With ngrok it is possible to create an SSL certificate to be able to continue in the flow without problems.

You need to register, to generate a token and then continue configuring ngrok.

  ngrok config add-authtoken <token>
  ngrok http 3000

FAQ

I disconnected my account through the page, but when I connect again it automatically connects.

You must disconnect from the page through your Wallet as well, so you can connect to another account again.

I'm trying to do the withdraw action on the Ethereum -> Stellar flow but the error "retry later once the transaction has more confirmations" appears.

Confirmations are required to verify and legitimize information that will be recorded in the blockchain and cannot be changed afterward. If some information is assumed fraudulent, it will not get any confirmation. Without a single transaction confirmation Ethereum, the transaction won’t be considered valid by the network. Each confirmation takes less than one minute. Just wait a bit and try to perform the withdraw action again.

Demo

welladam and others added 30 commits August 18, 2022 09:21
…ponent

[SSU-3]: Create typography components
@welladam welladam changed the title [Frontend] Startbridge Integration [Frontend] Starbridge Integration Nov 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants