Orbiter-Finance / OrbiterFE-V2

239 stars 168 forks source link

orbiter

Project

Functional

Design

config - Third-party and global configurations of the CSS

core - Related network processing and interface implementation of the on-rollup.

icons - SVG Image Processing & SVG Image resources

store - vuex data.

util - Implementation of common methods for each module of the project.

views - Implement project page.

components - Implement project components.

Project setup

npm install

Compiles and hot-reloads for development

npm run dev

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

Query Params

Name Type Required Desc
referer String False values:
zksync
source String False From chain, values:
Mainnet
Arbitrum
ZkSync
Polygon

Testnet values:
Rinkeby
Arbitrum(R)
ZkSync(R)
Polygon(R)

When it's empty, use sources first item.
dest String False To chain, values: (Same as source)
sources String False From chains, example: Mainnet,Arbitrum,ZkSync. When it's empty, show all chain.
dests String False To chains, example: ZkSync,Polygon. When it's empty, show all chain (filter source/from chain).
token String False Transfer currency, values:
ETH
USDC. When it's empty, use tokens first item.
tokens String False Transfer currencys, example: ETH,USDC. When it's empty, show all currencys.
amount Float False Transfer out amount. (Notice: when currency's decimal = 18, minimum reserve 6 decimal places, when currency's decimal = 6, minimum reserve 2 decimal places )
fixed Integer False 0: Can transfer from«»to chain (default)
1: Cann't transfer from«»to chain

Example(Rinkeby): https://rinkeby.orbiter.finance/?referer=zksync&source=Polygon%28R%29&sources=Polygon%28R%29,zksync%28R%29&dests=Arbitrum%28R%29&dest=Polygon%28R%29&token=&amount=0.03&fixed=0&tokens=