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(cli): all general commands are implemented #1932

Closed
wants to merge 356 commits into from
Closed
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
356 commits
Select commit Hold shift + click to select a range
077dd26
refactor: get rid of redundant error mapping
Jun 26, 2023
75ee54b
refactor: got rid of bare bail! without an error in the adex_proc_imp…
Jun 26, 2023
362cfc0
refactor: introduce MyBalanceRequest to get rid of bare json
Jun 27, 2023
46cb9c1
refactor: get spaces in order in adex_proc_impl.rs
Jun 27, 2023
5abed29
refactor: introduce request_legacy macro to reduce command processing…
Jun 27, 2023
29d0504
fix: made it able to request orderbook and version without a password
Jun 27, 2023
3a12624
refactor: Got read of ridiculous ..."
Jun 27, 2023
888b747
spit and polish
Jun 27, 2023
8d024b2
spit and polish
Jun 27, 2023
db6a07f
refactor: implement from orderbook args to orderbook request
Jun 27, 2023
66c15ed
refactor: introduce BalanceArgs
Jun 27, 2023
af5b3a3
refactor: add publicity restrictions in adex_proc_impl.rs
Jun 27, 2023
13e7d79
refactor: renamed asset to coin where it's met
Jun 27, 2023
0a5f3fd
refactor: got rid of redundant spaces
Jun 27, 2023
66e15f9
refactor: introduce OrderStatusArgs to get order processing uniform
Jun 27, 2023
eaa5b70
refactor: spit and polish
Jun 27, 2023
143f5e7
refactor: spit and polish
Jun 27, 2023
2488970
refactor: move cancel command args into args level
Jun 27, 2023
6531cf6
refactor: rename cli_args
Jun 27, 2023
0c147a2
refactor: match mmrpc version
Jun 27, 2023
7fd00fb
refactor: use tagged rpc data structs instead of explicit method
rozhkovdmitrii Jun 28, 2023
f95d1df
fix: make it able to start adex-cli without a config, it was impossible
rozhkovdmitrii Jun 28, 2023
acc065d
fix: make it able to start adex-cli without a config, it was impossib…
rozhkovdmitrii Jun 28, 2023
c4d6c71
fix: make it able to start adex-cli without a config, it was impossible
rozhkovdmitrii Jun 28, 2023
344424b
fix: got rid of redundant checks
rozhkovdmitrii Jun 28, 2023
efd1a37
fix: spit and polish
rozhkovdmitrii Jun 28, 2023
5e37585
fix: spit and polish
rozhkovdmitrii Jun 28, 2023
8e647b5
fix: spit and polish
rozhkovdmitrii Jun 28, 2023
16e94a4
fix: roll back userpass for version command
rozhkovdmitrii Jun 28, 2023
422b9c1
Merge branch '1786-fix-bug-start-without-config' into 1798-cancel-orders
rozhkovdmitrii Jun 28, 2023
3c2cce5
refactor: renaming
rozhkovdmitrii Jun 28, 2023
8bf44a7
refactor: renaming
rozhkovdmitrii Jun 28, 2023
63f965d
refactor: polish publicity restrictions
rozhkovdmitrii Jun 28, 2023
3cfe802
refactor: introduce SellRequest and BuyRequest
rozhkovdmitrii Jun 28, 2023
904dddc
refactor: spit and polish
rozhkovdmitrii Jun 28, 2023
7c9f386
refactor: command.rs reviewed
Jun 29, 2023
4ddc4be
refactor: command.rs reviewed
Jun 29, 2023
628b108
refactor: shorten history option names
Jun 29, 2023
9df60ae
refactor: got rid of redundant deriving Clone for OrderbookSettings
Jun 29, 2023
11f04bb
refactor: redistribute response handlers
Jun 29, 2023
96781e9
refactor: Move OrderHistorySettings and OrderbookSettings down
Jun 29, 2023
30316c1
refactor: response_handler.rs, spit and polish
Jun 29, 2023
3b47234
refactor: response_handler.rs, spit and polish
Jun 29, 2023
a7d6288
refactor: introduce COMMON_PRECISION
Jun 29, 2023
1751cd2
refactor: polish config options
Jun 29, 2023
8511abb
refactor: reuse term_table blank in best_orders.rs
Jun 29, 2023
c214bc2
Merge branch 'dev' into 1798-cancel-orders
Jun 30, 2023
445dcc5
refactor: use common::log::* but not log::*
Jun 30, 2023
4908cc7
refactor: formatters.rs, reorder functions
Jun 30, 2023
8b9d089
refactor: formatters.rs
Jun 30, 2023
b3277fa
refactor: formatters.rs
Jun 30, 2023
19d6970
refactor: formatters.rs
Jun 30, 2023
6426264
refactor: formatters.rs
Jun 30, 2023
a42e475
refactor: polish command names
Jun 30, 2023
80c2eb2
refactor: got rid of RefMut where it was used
Jun 30, 2023
9b2a6f8
refactor: orderbook_depth.rs
Jun 30, 2023
f07afcd
refactor: spit and polish
Jun 30, 2023
0904cbe
refactor: spit and polish
Jun 30, 2023
4066192
refactor: tests were fixed, last_updated were fixed
Jul 3, 2023
c28ce96
refactor: spit and polish
Jul 3, 2023
68a730f
refactor: commands and args were completely polished
Jul 3, 2023
2e13c1f
refactor: best_orders.rs spit and polish
Jul 3, 2023
5e1b0e7
refactor: rollback some changes
Jul 3, 2023
f7f8fcf
refactor: version2.rs spit and polish
Jul 3, 2023
27eede3
refactor: spit and polish
Jul 4, 2023
4f71106
refactor: optimize output using `matches_rows`
Jul 4, 2023
791e3c7
refactor: spit and polish
Jul 4, 2023
80417cf
refactor: spit and polish
Jul 4, 2023
2ebc21c
refactor: god rid of stupid drop(writer)
Jul 4, 2023
f5be9f3
refactor: order_status.rs checked
Jul 4, 2023
6e6ba01
refactor: orderbook.rs introduce format_ratio
Jul 4, 2023
9059b7f
refactor: fix ridiculous error processing on sending data
Jul 4, 2023
23a76d0
refactor: got rid of one more except
Jul 4, 2023
e35d281
refactor: orderbook_depth.rs - got rid of redundant drain(..)
Jul 4, 2023
befa9be
refactor: orderbook_depth.rs - spit and polish
Jul 4, 2023
c08d4d1
refactor: orders_history.rs spit and polish
Jul 4, 2023
a00fdfc
refactor: orders_history.rs spit and polish
Jul 4, 2023
14ad862
refactor: cli `service status` is `check`
Jul 4, 2023
2c5524c
refactor: cli.rs spit and polish
Jul 4, 2023
6fbced4
refactor: got rid of Copy on cli args structs
Jul 4, 2023
5ef8583
refactor: cmd_my_balance.rs spit and polish
Jul 4, 2023
32ed510
refactor: cmd_best_orders.rs spit and polish
Jul 4, 2023
27f00f6
refactor: cmd_best_orders.rs reorder args
Jul 4, 2023
0aab7b7
refactor: renaming BestOrdersRequest
Jul 4, 2023
22bb043
refactor: publicity restrictions for commands and args
Jul 4, 2023
8333423
refactor: polish cancel command
Jul 4, 2023
9a59e29
refactor: polish status command
Jul 4, 2023
9b4957f
refactor: polish obook command
Jul 4, 2023
051bd57
refactor: polish obook command
Jul 4, 2023
a7510ee
refactor: polish obook command
Jul 4, 2023
1f406ea
refactor: polish depth command
Jul 4, 2023
a88936e
refactor: polish history command
Jul 4, 2023
921f1e8
refactor: polish sell/buy command
Jul 4, 2023
469b20f
refactor: polish sell/buy command
Jul 4, 2023
0aa9eb9
refactor: polish error processing
Jul 4, 2023
bafd5b6
refactor: polish sell/buy cmd
rozhkovdmitrii Jul 5, 2023
1034d53
refactor: got rid of redundant deriving
rozhkovdmitrii Jul 5, 2023
8c44abf
refactor: polish set_price command
rozhkovdmitrii Jul 5, 2023
e50d3f6
refactor: polish options one more time
rozhkovdmitrii Jul 5, 2023
0c196a6
refactor: polish cli args mod
rozhkovdmitrii Jul 5, 2023
71ebf46
refactor: polish main.rs
rozhkovdmitrii Jul 5, 2023
ace4ab6
refactor: polish mm2_proc_mng.rs
rozhkovdmitrii Jul 5, 2023
8eaa127
refactor: polish scenarious mode
rozhkovdmitrii Jul 5, 2023
877982a
refactor: polish tests
rozhkovdmitrii Jul 5, 2023
3ed5eb4
refactor: polish tests
rozhkovdmitrii Jul 5, 2023
b8d5cc5
refactor: transport.rs
rozhkovdmitrii Jul 5, 2023
4ce7342
refactor: polish lp_ordermatch.rs
rozhkovdmitrii Jul 5, 2023
a68b614
refactor: polish lp_ordermatch.rs
rozhkovdmitrii Jul 5, 2023
7adb06e
refactor: polish lp_ordermatch.rs
rozhkovdmitrii Jul 5, 2023
7b53cfd
refactor: polish lp_ordermatch.rs
rozhkovdmitrii Jul 5, 2023
48c1950
refactor: polish lp_ordermatch.rs
rozhkovdmitrii Jul 5, 2023
39c46f3
refactor: polish lp_ordermatch.rs
rozhkovdmitrii Jul 5, 2023
336dcbb
refactor: polish lp_ordermatch.rs
rozhkovdmitrii Jul 5, 2023
a90d07d
refactor: polish lp_ordermatch.rs
rozhkovdmitrii Jul 5, 2023
f84500e
refactor: polish lp_ordermatch.rs
rozhkovdmitrii Jul 5, 2023
fbac43f
refactor: polish dispatcher.rs
rozhkovdmitrii Jul 5, 2023
6f5324b
refactor: polish lp_commands_legacy.rs
rozhkovdmitrii Jul 5, 2023
3d8b208
refactor: polish lp_commands_legacy.rs
rozhkovdmitrii Jul 5, 2023
6636fac
refactor: polish legacy.rs
rozhkovdmitrii Jul 5, 2023
600dd2c
refactor: roll back attempts to enable
rozhkovdmitrii Jul 5, 2023
47f970e
refactor: fix macos build
rozhkovdmitrii Jul 5, 2023
88b1c06
fix macos build
Jul 6, 2023
99456d9
refactor: fix version command
rozhkovdmitrii Jul 6, 2023
dabc7ae
Merge branch 'dev' into 1798-cancel-orders
rozhkovdmitrii Jul 6, 2023
36abaa9
refactor: got rid of useless macro
rozhkovdmitrii Jul 6, 2023
1b9ba98
feat(adex-cli): provide activation request types to prevent malicious…
Jul 12, 2023
b45e9d2
fix: ElectrumRequest::servers were made not able to be deserialized b…
Jul 17, 2023
92a429c
refactor: redistribute legacy datatypes
Jul 17, 2023
4dc23e6
refactor: made `requires_notarization` of electrum method optional
Jul 17, 2023
98101ee
fix tests
Jul 17, 2023
0b2bae8
refactor: redistribute activation related datatypes into eth.rs and u…
Jul 18, 2023
a010bec
spit and polish
Jul 18, 2023
1e5d706
Merge branch 'feature-1682-interoperating' into 1799-swap-commands
Jul 18, 2023
4ea7e31
Merge branch 'dev' into feature-1682-interoperating
Jul 19, 2023
2421046
fix: activation scheme structure presumably was changed, not it do no…
Jul 19, 2023
2263224
feat(adex-cli): active swaps introduced
Jul 19, 2023
cdfa3d5
Merge branch 'feature-1682-interoperating' into 1799-swap-commands
Jul 20, 2023
dabdaf3
feat(adex-cli): recent swaps and swap status were introduced
Jul 20, 2023
f5a65b9
feat(adex-cli): introduce min_trading_vol, max_taker_vol
Jul 20, 2023
7ad7cc1
feat(adex-cli): introduce network commands
Jul 21, 2023
fe1eea8
feat(adex-cli): infroduce disable coin
Jul 21, 2023
c54e6cd
introduce send raw transaction
Jul 23, 2023
fe86494
feat(adex-cli): introduce withdraw, send_raw_transaction
Jul 25, 2023
4bd5c88
feat(cli): active swaps test provided
Jul 25, 2023
55b170e
save intermediary attainments
Jul 26, 2023
e9bcf81
feat(cli): introducer v2 enable commands
Jul 27, 2023
2925742
feat(cli): snapshot
Jul 30, 2023
4c81684
feat(cli): snapshot
Jul 30, 2023
af5f996
refactor: fixes
rozhkovdmitrii Jul 30, 2023
bd9853f
refactor: enable zcoin cancel has been introduced
rozhkovdmitrii Jul 31, 2023
7b190de
feat: redistribute commands
rozhkovdmitrii Aug 1, 2023
4757ba4
feat: introduce version stat commands
rozhkovdmitrii Aug 2, 2023
d3d60e0
feat: introduce message signing
rozhkovdmitrii Aug 2, 2023
0fcb8bb
feat: get current mtp
rozhkovdmitrii Aug 2, 2023
dd17ffb
feat: introduce tx_history legacy
rozhkovdmitrii Aug 2, 2023
f8d9056
feat: introduce tx_history
rozhkovdmitrii Aug 3, 2023
27e2331
feat: introduce tx_history
rozhkovdmitrii Aug 3, 2023
494cd7d
feat: introduce tx_history
rozhkovdmitrii Aug 3, 2023
40ec851
feat: tests were fixed
rozhkovdmitrii Aug 3, 2023
cbf09ca
feat: fit zcoin tx_history requesting
rozhkovdmitrii Aug 3, 2023
d8bfc93
feat: convert-address
rozhkovdmitrii Aug 3, 2023
2dee2dc
feat: convert-utxo-address
rozhkovdmitrii Aug 4, 2023
895fa59
Merge branch 'dev' into 1799-swap-commands
rozhkovdmitrii Aug 4, 2023
899cf43
refactor: rolling back unnecessary changes
rozhkovdmitrii Aug 4, 2023
554db64
refactor: rolling back unnecessary changes
rozhkovdmitrii Aug 4, 2023
3a7fbc7
Revert "refactor: rolling back unnecessary changes"
rozhkovdmitrii Aug 4, 2023
ae06e20
fix: heal clippy warnings
rozhkovdmitrii Aug 4, 2023
6e0303b
refactor: Making tx history request from tx_history_args was optimized
rozhkovdmitrii Aug 7, 2023
5e6019c
feat: provide tx_history redefinition for the rest of methods
rozhkovdmitrii Aug 7, 2023
8c35836
Cargo.lock rollback
rozhkovdmitrii Aug 7, 2023
d5390f2
Spit and polish
rozhkovdmitrii Aug 7, 2023
66f5849
refactor: renaming
rozhkovdmitrii Aug 7, 2023
001abff
Introduce `serde_with::skip_serializing_none`
rozhkovdmitrii Aug 11, 2023
f818cee
get serde(default) back for history request include_details
rozhkovdmitrii Aug 11, 2023
4542946
got rid of fully qualified import
rozhkovdmitrii Aug 14, 2023
0a6d22c
refactor(rpc_data): rename UnbanPubkeysReq to UnbanPubkeysRequest to …
rozhkovdmitrii Aug 14, 2023
b3e346a
Merge branch 'dev' into 1799-swap-commands
rozhkovdmitrii Aug 22, 2023
b703f4b
feat: introduce standalone macro `skip_serializing_none`
rozhkovdmitrii Aug 22, 2023
6cd77d2
fix: downgrade dependency versions
rozhkovdmitrii Aug 22, 2023
c4d661d
fix: MmRpcRequest::params deserialized by default
rozhkovdmitrii Aug 23, 2023
04f4f93
fix: got rid of redundant clippy allowance
rozhkovdmitrii Aug 23, 2023
eae74e5
Merge branch 'dev' into 1799-swap-commands
rozhkovdmitrii Aug 23, 2023
4eddee8
spit and polish
rozhkovdmitrii Aug 23, 2023
3c96319
refactor: move skip_serializing_none into the right place
rozhkovdmitrii Aug 23, 2023
7f04c53
Merge branch 'dev' into 1799-swap-commands
rozhkovdmitrii Aug 25, 2023
e54eb34
fix: correct swap payment instruction row
rozhkovdmitrii Aug 25, 2023
0f0dda9
fix(cli): set the exact dependency versions of `hyper-rustls` and `ru…
Aug 31, 2023
5e7f9a1
fix(cli): warn on insecure cli configuration file mode instead of cha…
Aug 31, 2023
c93b34d
Merge branch 'dev' into 1799-swap-commands
Aug 31, 2023
123fdd9
refactor: fix withdrawing `from` option
Sep 13, 2023
a611ca3
Merge branch 'dev' into 1799-swap-commands
Sep 13, 2023
0e12dda
fix: fix withdrawing from hierarchically derived address
Sep 13, 2023
5f409c0
fix: fix shortcut for get-raw-transaction hash option
Sep 13, 2023
f64941b
fix: fix shortcuts for wallet tx-history command
Sep 13, 2023
bd781b4
fix: polish shortcuts
Sep 13, 2023
5083ef1
doc: introduce cli reference
Sep 15, 2023
c4eb7cb
fix: fix write_base_rel amount
Sep 15, 2023
b5a4dba
fix: update cli reference
Sep 15, 2023
719bca6
fix: get rid of redundant swaps active --uuids-only option
Sep 15, 2023
4e25313
fix: fix date time formatting in some places, update CLI_REFERENCE.md
Sep 15, 2023
f20439f
fix: update CLI_REFERENCE.md
Sep 15, 2023
a5816ec
fix: update cli reference
Sep 15, 2023
de47175
fix: spit and polish
Sep 15, 2023
7b1525e
doc: update CLI_REFERENCE.md
Sep 15, 2023
b38126a
refactor: reorder cli commands
Sep 18, 2023
06b7225
doc: update CLI_REFERENCE.md
Sep 18, 2023
88da2ba
fix: make tests working well
Sep 18, 2023
dea9493
fix: fix get rid of warnings
Sep 19, 2023
48b2620
doc: polish cli documentation
Sep 19, 2023
a09ee5d
doc: polish CLI_REFERENCE.md
Sep 19, 2023
c643142
doc: Add build instruction
Sep 21, 2023
4bd111b
Merge branch 'dev' into 1799-swap-commands
borngraced Nov 17, 2023
4d30e96
fix merged conflicts
borngraced Nov 17, 2023
9ca1e75
Merge remote-tracking branch 'origin/dev' into 1799-swap-commands
borngraced Nov 17, 2023
21b1aa0
fix merged conflicts
borngraced Nov 17, 2023
99144b0
save default rpc_port and ip in MM2.json
borngraced Nov 18, 2023
8832269
write default configs
borngraced Nov 23, 2023
7d0847f
fix config set option (password and uri)
borngraced Nov 24, 2023
b51d70b
update file permission from app
borngraced Nov 24, 2023
9cc5433
Merge remote-tracking branch 'origin/dev' into 1799-swap-commands
borngraced Nov 24, 2023
ef58507
fix merge conflicts
borngraced Nov 24, 2023
54a1ccb
update komodefi-cli
borngraced Nov 24, 2023
1c95744
update tests
borngraced Nov 24, 2023
1d85c4d
add option to hide and unhide password, disallow empty password when …
borngraced Nov 26, 2023
502da43
fix clippy
borngraced Nov 26, 2023
c03bfbe
source config from path and Validate an RPC URL and add base if not p…
borngraced Nov 27, 2023
29256ae
implement download binary functionality
borngraced Nov 27, 2023
8993982
fix code check.
borngraced Nov 27, 2023
dcd1f39
rpc_url fixes and print_config_with_password_on_tty
borngraced Nov 28, 2023
e891b28
cargo clippy
borngraced Nov 28, 2023
45bcff6
rename print_config_with_password
borngraced Nov 30, 2023
9397afb
introduce KOMODEFI_CLI_ROOT for managing cli conf file and binary
borngraced Dec 4, 2023
e113b56
fix clippy
borngraced Dec 4, 2023
5f3e2ab
update docs
borngraced Dec 5, 2023
336930e
update docs
borngraced Dec 5, 2023
49dc94b
fix docs
borngraced Dec 5, 2023
859808c
import std::env for non macos target
borngraced Dec 5, 2023
71cbad1
fix windows ci
borngraced Dec 5, 2023
8a225b3
use correct rpc port and minor changes
borngraced Dec 12, 2023
b686ce5
revert deps
borngraced Dec 13, 2023
18d300b
downgrade syn dep
borngraced Dec 13, 2023
39d1e11
improve skip_serializing_none_add_attr_to_field
borngraced Dec 18, 2023
581b735
Merge remote-tracking branch 'origin/dev' into 1799-swap-commands
borngraced Dec 21, 2023
259a04e
fix merge conflicts
borngraced Dec 21, 2023
23c6a7c
fix solana merge conflicts
borngraced Dec 21, 2023
e598241
improve SetConfigArgs::from_path arg message
borngraced Jan 6, 2024
9199fdb
Merge remote-tracking branch 'origin/dev' into 1799-swap-commands
borngraced Feb 15, 2024
1c7697f
update lock file after fix conflicts
borngraced Feb 15, 2024
1ca860f
fix merge conflict
borngraced Mar 22, 2024
3a21e71
fix merge conflicts
borngraced Apr 4, 2024
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: adex-cli
name: komodefi-cli
on: [push]

concurrency:
Expand Down Expand Up @@ -38,8 +38,8 @@ jobs:

- name: Start checking code format and lint
run: |
cargo fmt --manifest-path ./mm2src/adex_cli/Cargo.toml --all -- --check
cargo clippy --manifest-path ./mm2src/adex_cli/Cargo.toml --all-targets --all-features -- --D warnings
cargo fmt --manifest-path ./mm2src/komodefi_cli/Cargo.toml --all -- --check
cargo clippy --manifest-path ./mm2src/komodefi_cli/Cargo.toml --all-targets --all-features -- --D warnings

test:
timeout-minutes: 60
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:

- name: Start testing
run: |
cargo test --manifest-path ./mm2src/adex_cli/Cargo.toml --no-fail-fast
cargo test --manifest-path ./mm2src/komodefi_cli/Cargo.toml --no-fail-fast

build:
timeout-minutes: 60
Expand Down Expand Up @@ -101,4 +101,4 @@ jobs:

- name: Start building
run: |
cargo build --manifest-path ./mm2src/adex_cli/Cargo.toml
cargo build --manifest-path ./mm2src/komodefi_cli/Cargo.toml
10 changes: 10 additions & 0 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ members = [
]

exclude = [
"mm2src/adex_cli",
"mm2src/floodsub",
"mm2src/gossipsub",
"mm2src/komodefi_cli",
"mm2src/mm2_libp2p",
]

Expand Down
181 changes: 0 additions & 181 deletions mm2src/adex_cli/src/adex_config.rs

This file was deleted.

Loading
Loading