Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor cli folder #1428

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 21 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ polygonpos/
wallet/src/components/Assets/
test/adversary/lazy-optimist/*
test/adversary/adversary-cli/*
test/adversary/adversary-common-files/*
test/adversary/adversary-code/*
test/adversary/bad-client/*
/**/*.d.ts
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ __pycache__
test/adversary/lazy-optimist
test/adversary/bad-client
test/adversary/adversary-cli
test/adversary/adversary-common-files
wallet/tests/e2e/videos
wallet/tests/e2e/screenshots
typechain-types/
Expand Down
6 changes: 6 additions & 0 deletions apps/challenger/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/challenger/src/app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import express from 'express';
import config from 'config';
import { setupHttpDefaults } from 'common-files/utils/httputils.mjs';
import Nf3 from '../cli/lib/nf3.mjs';
import Nf3 from 'common-files/classes/nf3.mjs';
import startChallenger from './challenger.mjs';

const CHALLENGER_PORT = process.env.CHALLENGER_PORT || 8192;
Expand Down
6 changes: 6 additions & 0 deletions apps/proposer/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/proposer/src/app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import express from 'express';
import config from 'config';
import { setupHttpDefaults } from 'common-files/utils/httputils.mjs';
import Nf3 from 'common-files/classes/nf3.mjs';
import { proposer, contracts } from './routes/index.mjs';
import startProposer from './proposer.mjs';
import Nf3 from '../cli/lib/nf3.mjs';

const PROPOSER_PORT = process.env.PROPOSER_PORT || 8092;

Expand Down
6 changes: 6 additions & 0 deletions apps/synchronizer/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/synchronizer/src/app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import express from 'express';
import config from 'config';
import { setupHttpDefaults } from 'common-files/utils/httputils.mjs';
import Nf3 from 'common-files/classes/nf3.mjs';
import { contracts } from './routes/index.mjs';
import Nf3 from '../../../cli/lib/nf3.mjs';
import startSynchronizer from './synchronizer.mjs';

const { SYNCHRONIZER_PORT } = config;
Expand Down
2 changes: 1 addition & 1 deletion bin/liquidity-provider
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# --environment : test environment (such us localhost, docker, testnet). If no argument given
# liquitidty-provider is launched in localhost environment

/usr/bin/env node cli/src/liquidity-provider.mjs "${@:1}"
/usr/bin/env node js-scripts/liquidity-provider.mjs "${@:1}"
1 change: 0 additions & 1 deletion bin/setup-nightfall
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ set -e
if [ "$SKIP_NPM_CI" == "" ]; then
# Install node dependencies
npm ci
cd cli && npm ci && cd ..
cd common-files && npm ci && cd ..
fi

Expand Down
7 changes: 0 additions & 7 deletions cli/.babelrc

This file was deleted.

6 changes: 0 additions & 6 deletions cli/README.md

This file was deleted.

31 changes: 0 additions & 31 deletions cli/babel.config.js

This file was deleted.

8 changes: 0 additions & 8 deletions cli/lib/index.mjs

This file was deleted.

89 changes: 0 additions & 89 deletions cli/lib/units.mjs

This file was deleted.

Loading