GithubHelp home page GithubHelp logo

isabella232 / rskswap-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rsksmart/rskswap-ui

0.0 0.0 0.0 2.12 MB

Shell 0.47% JavaScript 3.72% TypeScript 27.22% HTML 1.13% Vue 53.54% SCSS 13.92%

rskswap-ui's Introduction

rskswap-ui

Project for Swaping RBTC to rWBTC independently from the claim (and the other way round too)

Sequence Diagram

Sequence Diagram

Use Cases

Swap WBTC to rBTC

This use case allows a user that has crossed any token pegged to WBTC pool in multichain.org onto RSK to swap those tokens for RBTC, using a relayer that provides with the necessary liquidity and uses the Swap contract to swap those pegged assets for RBTC and recover the RBTC they sent to the user. The flow is described as in the following sequence diagram.

Environment variables

Duplicate .env.example and rename to .env

Following environment variables description below:

VUE_APP_CHAIN_ID => Chain/Network id.
VUE_APP_NETWORK_NAME => Chain/Network name.
VUE_APP_LOCALSTORAGE_NAME => Localstorage rootKey to access data in browser storage.
VUE_APP_RELAYER_ADDRESS => Relayer contract address, this address is used to find relayer instance in the network.
VUE_APP_SWAP_ADDRESS => Swap contract contract address, this address is used to find swap instance in the network.
VUE_APP_RELAYER_ENDPOINT => Backend URI address.
VUE_APP_ENV => Application Environment.

Project setup

Download and Install dependecies

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Run your unit tests

yarn test:unit

Run your end-to-end tests

yarn test:e2e

Lints and fixes files

yarn lint

Register Bugs and Suggestions

See Register Bugs.

Customize configuration

See Configuration Reference.

rskswap-ui's People

Contributors

aguschirico avatar augustoiov avatar dependabot[bot] avatar gsoares85 avatar joaoiovlabs avatar manfiolp avatar poldo-iov avatar

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.