Skip to content

Sifchain/sifchain-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5a58c42 · Sep 17, 2022
Apr 23, 2022
Mar 23, 2022
Jul 26, 2022
Apr 23, 2022
Apr 19, 2022
Sep 16, 2022
Sep 15, 2022
Sep 3, 2021
Apr 23, 2022
Mar 23, 2022
May 24, 2022
Apr 2, 2022
Aug 17, 2022
Apr 23, 2022
Aug 3, 2022
Apr 4, 2022
May 27, 2022
Mar 23, 2022
Apr 23, 2022
Mar 23, 2022
Mar 23, 2022
May 11, 2021
May 7, 2021
Mar 23, 2022
Mar 23, 2022
Mar 23, 2022
Sep 16, 2022
Apr 26, 2022
Mar 23, 2022
Mar 31, 2022
Aug 17, 2022

Repository files navigation

⚡️ T H E    O M N I C H A I N    J A V A S C R I P T    L I B R A R Y ⚡️

FRONTEND 🤝 TRADING BOTS 🤝 ARBITRAGE


✨ Links

Learn how to use Sifchain.js.

Sifchain's User Interface

Development

script description
yarn dev Run the view app in development mode hotloading changes
yarn build Build a deployable app to the app/dist folder
yarn start Serve the deployable app from the app/dist folder
yarn test Run unit and integration tests
yarn test --tag [tag] Run unit and integration tests against a particular tag (develop/master/sifnode commit etc)
yarn stack Run backing services based on the latest sifnode release
yarn lint Lint the code
yarn lint --quick Quick lint staged code (mainly used in our pre-commit hook)
yarn e2e Run end to end tests against code built in app/dist
yarn e2e --debug Run end to end tests in debug mode against the dev server. (Good for writing tests)
yarn e2e --tag [tag] Run end to end tests against a particular tag (develop/master/sifnode commit etc)
yarn storybook Launch storybook
yarn storybook --build Build storybook to the storybook-static folder
yarn advance Advance the blockchain by the given amount of blocks. Eg. yarn advance 51

Running a command with the --help flag will display a help message explaining what the command does.

Deployment

See ./app/README.md.

Testing against environments

Attaching a query string var _env will set cookies to point your build to any environment you want:

url env
http://localhost:8080?_env=mainnet MAINNET
http://localhost:8080?_env=testnet TESTNET
http://localhost:8080?_env=devnet DEVNET
http://localhost:8080?_env=localnet LOCALNET
http://localhost:8080?_env=\_ DEFAULT (Based on url)

We recommend using bookmarklets:

name location
CLEAR javascript:(() => {l=location;l.href=l.pathname+'?_env=_'})()
MAINNET javascript:(() => {l=location;l.href=l.pathname+'?_env=mainnet'})()
TESTNET javascript:(() => {l=location;l.href=l.pathname+'?_env=testnet'})()
DEVNET javascript:(() => {l=location;l.href=l.pathname+'?_env=devnet'})()
LOCALNET javascript:(() => {l=location;l.href=l.pathname+'?_env=localnet'})()