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

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Faust committed Jul 24, 2020
1 parent d54b2be commit e023406
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 489 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,13 @@ jobs:
run: sudo apt-get install libudev-dev libusb-1.0-0-dev

- name: Install (Yarn)
run: yarn install --frozen-lockfile
run: yarn install --ignore-engines --frozen-lockfile

- name: Install (Cypress)
run: yarn cy:install
- name: Start
run: REACT_APP_BUILD_MODE=demo BROWSER=none yarn start &

- name: Test
run: |
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
yarn test:e2e:ci
- name: Wait for App
run: yarn wait-on http://localhost:3000

- name: Upload Screenshots
uses: actions/upload-artifact@v1
if: failure()
with:
name: cypress-screenshots
path: __tests__/e2e/screenshots
- name: Test
run: xvfb-run --server-args="-screen 0 1920x1080x16" yarn test:e2e
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"@arkecosystem/platform-sdk-eos": "^0.9.172",
"@arkecosystem/platform-sdk-eth": "^0.9.172",
"@arkecosystem/platform-sdk-intl": "^0.9.172",
"@arkecosystem/platform-sdk-lsk": "^0.9.172",
"@arkecosystem/platform-sdk-markets": "^0.9.172",
"@arkecosystem/platform-sdk-neo": "^0.9.172",
"@arkecosystem/platform-sdk-news": "^0.9.172",
Expand All @@ -58,7 +57,6 @@
"@arkecosystem/platform-sdk-trx": "^0.9.172",
"@arkecosystem/platform-sdk-xlm": "^0.9.172",
"@arkecosystem/platform-sdk-xmr": "^0.9.172",
"@arkecosystem/platform-sdk-xrp": "^0.9.172",
"@arkecosystem/utils": "^1.1.8",
"@tippyjs/react": "^4.0.5",
"about-window": "^1.13.4",
Expand All @@ -82,7 +80,6 @@
"recharts": "^2.0.0-beta.6",
"styled-components": "^5.1.1",
"swiper": "^6.0.4",
"testcafe": "^1.8.8",
"twin.macro": "^1.3.0"
},
"devDependencies": {
Expand Down Expand Up @@ -163,6 +160,7 @@
"storybook-react-router": "^1.0.8",
"tailwindcss": "^1.4.6",
"tailwindcss-debug-screens": "^0.1.0",
"testcafe": "^1.8.8",
"testcafe-browser-provider-electron": "^0.0.15",
"typescript": "^3.9.5",
"wait-on": "^5.1.0"
Expand Down
40 changes: 20 additions & 20 deletions src/domains/network/data.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ARK } from "@arkecosystem/platform-sdk-ark";
import { BTC } from "@arkecosystem/platform-sdk-btc";
import { LSK } from "@arkecosystem/platform-sdk-lsk";
// import { LSK } from "@arkecosystem/platform-sdk-lsk";
import { NetworkData } from "@arkecosystem/platform-sdk-profiles";
import { XRP } from "@arkecosystem/platform-sdk-xrp";
// import { XRP } from "@arkecosystem/platform-sdk-xrp";

export interface CoinNetworkExtended {
displayName: string;
Expand Down Expand Up @@ -34,28 +34,28 @@ export const coinsNetworkExtendedData: Record<string, Record<string, CoinNetwork
iconName: "Bitcoin",
},
},
LSK: {
Mainnet: {
displayName: "Lisk",
borderClass: "border-theme-primary-400",
textClass: "text-theme-primary",
iconName: "Lisk",
},
},
XRP: {
Mainnet: {
displayName: "Ripple",
borderClass: "border-theme-primary-500",
textClass: "text-theme-primary-dark",
iconName: "Ripple",
},
},
// LSK: {
// Mainnet: {
// displayName: "Lisk",
// borderClass: "border-theme-primary-400",
// textClass: "text-theme-primary",
// iconName: "Lisk",
// },
// },
// XRP: {
// Mainnet: {
// displayName: "Ripple",
// borderClass: "border-theme-primary-500",
// textClass: "text-theme-primary-dark",
// iconName: "Ripple",
// },
// },
};

export const availableNetworksMock: NetworkData[] = [
new NetworkData(ARK.manifest.name, ARK.manifest.networks.mainnet),
new NetworkData(ARK.manifest.name, ARK.manifest.networks.devnet),
new NetworkData(BTC.manifest.name, BTC.manifest.networks.livenet),
new NetworkData(LSK.manifest.name, LSK.manifest.networks.mainnet),
new NetworkData(XRP.manifest.name, XRP.manifest.networks.mainnet),
// new NetworkData(LSK.manifest.name, LSK.manifest.networks.mainnet),
// new NetworkData(XRP.manifest.name, XRP.manifest.networks.mainnet),
];
Loading

0 comments on commit e023406

Please sign in to comment.