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

feat: add cli #14

Merged
merged 4 commits into from Apr 14, 2021
Merged

feat: add cli #14

merged 4 commits into from Apr 14, 2021

Conversation

solargatsby
Copy link
Contributor

add cli

@codecov-io
Copy link

codecov-io commented Mar 25, 2021

Codecov Report

Merging #14 (b3ff82c) into main (77695e2) will decrease coverage by 39.46%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##             main      #14       +/-   ##
===========================================
- Coverage   79.82%   40.36%   -39.47%     
===========================================
  Files          19       23        +4     
  Lines         233     1905     +1672     
  Branches        3       40       +37     
===========================================
+ Hits          186      769      +583     
- Misses         47     1136     +1089     
Impacted Files Coverage Δ
...chain-modules/src/packages/db/entity/TronUnlock.ts
...fchain-modules/src/packages/db/entity/EthUnlock.ts
offchain-modules/src/packages/db/model.ts
offchain-modules/src/packages/db/index.ts
offchain-modules/src/packages/db/ckb.ts
offchain-modules/src/packages/db/entity/BtcLock.ts
offchain-modules/src/packages/db/test/db.ts
offchain-modules/src/packages/db/entity/CkbBurn.ts
offchain-modules/src/packages/db/entity/CkbMint.ts
...ffchain-modules/src/packages/db/entity/TronLock.ts
... and 32 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 77695e2...b3ff82c. Read the comment docs.

@@ -1,7 +1,7 @@
import { Config } from './config';
// eslint-disable-next-line @typescript-eslint/no-var-requires
const CKB = require('@nervosnetwork/ckb-sdk-core').default;
import { CkbIndexer } from '@force-bridge/ckb/tx-helper/indexer';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add import 'module-alias/register'; in the beginning of cli/index.ts should fix this problem.

* feat: add cli

* fix(cli): eth unlock amount bug

* chore(cli): fix forcecli-guide.md

* feat: add btc cli

* feat: update btc cli amount

* feat: update btc amount

* test: update btc test

* test: update btc test

* chore: change func name

Co-authored-by: wangbing <wangbing@cryptape.com>
Co-authored-by: Eric.Wang <136147966@qq.com>
@solargatsby solargatsby merged commit 41c6a0e into nervosnetwork:main Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants