From c18430ac408892accca6f4f53e4b2378c30c7b68 Mon Sep 17 00:00:00 2001 From: ozkanonur Date: Thu, 11 May 2023 11:29:47 +0300 Subject: [PATCH 1/2] create CI flows for `adex-cli` Signed-off-by: ozkanonur --- .github/workflows/adex-cli.yml | 68 + CHANGELOG.md | 1 + mm2src/adex_cli/Cargo.lock | 3249 ++++++++++++++++++++++++++++++++ 3 files changed, 3318 insertions(+) create mode 100644 .github/workflows/adex-cli.yml create mode 100644 mm2src/adex_cli/Cargo.lock diff --git a/.github/workflows/adex-cli.yml b/.github/workflows/adex-cli.yml new file mode 100644 index 0000000000..1f5635c73e --- /dev/null +++ b/.github/workflows/adex-cli.yml @@ -0,0 +1,68 @@ +name: adex-cli +on: [push] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +env: + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + +jobs: + code-check: + timeout-minutes: 60 + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + steps: + - uses: actions/checkout@v3 + + - name: pre scripts for ci container + run: | + git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API + echo "/bin" >> $GITHUB_PATH + echo "/usr/bin" >> $GITHUB_PATH + echo "/root/.cargo/bin" >> $GITHUB_PATH + + - name: Calculate commit hash for PR commit + if: github.event_name == 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV + + - name: Calculate commit hash for merge commit + if: github.event_name != 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV + + - 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 + + build: + timeout-minutes: 60 + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + steps: + - uses: actions/checkout@v3 + + - name: pre scripts for ci container + run: | + git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API + echo "/bin" >> $GITHUB_PATH + echo "/usr/bin" >> $GITHUB_PATH + echo "/root/.cargo/bin" >> $GITHUB_PATH + + - name: Calculate commit hash for PR commit + if: github.event_name == 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV + + - name: Calculate commit hash for merge commit + if: github.event_name != 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV + + - name: Start building + run: | + cargo build --manifest-path ./mm2src/adex_cli/Cargo.toml + \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 147f2bd490..89222a674c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - PoC for ETH/UTXO and ERC20/UTXO swaps with rewards - Improved protocol to let only the taker pay the reward - Add passive parent coin state for keeping tokens active when platform is disabled [#1763](https://github.com/KomodoPlatform/atomicDEX-API/pull/1763) +- CI flows for `adex-cli` added [#1818](https://github.com/KomodoPlatform/atomicDEX-API/pull/1818) ## v1.0.3-beta - 2023-04-28 diff --git a/mm2src/adex_cli/Cargo.lock b/mm2src/adex_cli/Cargo.lock new file mode 100644 index 0000000000..e4f904a958 --- /dev/null +++ b/mm2src/adex_cli/Cargo.lock @@ -0,0 +1,3249 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "addr2line" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97" +dependencies = [ + "gimli", +] + +[[package]] +name = "adex-cli" +version = "0.1.0" +dependencies = [ + "clap", + "common", + "derive_more", + "env_logger 0.7.1", + "gstuff", + "inquire", + "log 0.4.17", + "mm2_net", + "passwords", + "serde", + "serde_json", + "sysinfo", + "tiny-bip39", + "tokio", + "winapi", +] + +[[package]] +name = "adler" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" + +[[package]] +name = "ahash" +version = "0.4.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "739f4a8db6605981345c5654f3a85b056ce52f37a39d34da03f25bf2151ea16e" + +[[package]] +name = "ahash" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" +dependencies = [ + "getrandom 0.2.9", + "once_cell", + "version_check", +] + +[[package]] +name = "aho-corasick" +version = "0.7.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac" +dependencies = [ + "memchr", +] + +[[package]] +name = "aho-corasick" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67fc08ce920c31afb70f013dcce1bfc3a3195de6a228474e45e1f145b36f8d04" +dependencies = [ + "memchr", +] + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] +name = "ansi_term" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" +dependencies = [ + "winapi", +] + +[[package]] +name = "anyhow" +version = "1.0.71" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c7d0618f0e0b7e8ff11427422b64564d5fb0be1940354bfe2e0529b18a9d9b8" + +[[package]] +name = "arrayref" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b4930d2cb77ce62f89ee5d5289b4ac049559b1c45539271f5ed4fdc7db34545" + +[[package]] +name = "arrayvec" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" + +[[package]] +name = "async-trait" +version = "0.1.68" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9ccdd8f2a161be9bd5c023df56f1b2a0bd1d83872ae53b71a84a12c9bf6e842" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.15", +] + +[[package]] +name = "atomic-shim" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67cd4b51d303cf3501c301e8125df442128d3c6d7c69f71b27833d253de47e77" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "atty" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" +dependencies = [ + "hermit-abi 0.1.19", + "libc", + "winapi", +] + +[[package]] +name = "autocfg" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0dde43e75fd43e8a1bf86103336bc699aa8d17ad1be60c76c0bdfd4828e19b78" +dependencies = [ + "autocfg 1.1.0", +] + +[[package]] +name = "autocfg" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" + +[[package]] +name = "backtrace" +version = "0.3.67" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "233d376d6d185f2a3093e58f283f60f880315b6c60075b01f36b3b85154564ca" +dependencies = [ + "addr2line", + "cc", + "cfg-if 1.0.0", + "libc", + "miniz_oxide", + "object", + "rustc-demangle", +] + +[[package]] +name = "base64" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b25d992356d2eb0ed82172f5248873db5560c4721f564b13cb5193bda5e668e" +dependencies = [ + "byteorder", +] + +[[package]] +name = "bech32" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d86b93f97252c47b41663388e6d155714a9d0c398b99f1005cbc5f978b29f445" + +[[package]] +name = "bitcoin" +version = "0.29.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0694ea59225b0c5f3cb405ff3f670e4828358ed26aec49dc352f730f0cb1a8a3" +dependencies = [ + "bech32", + "bitcoin_hashes", + "secp256k1 0.24.3", +] + +[[package]] +name = "bitcoin_hashes" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90064b8dee6815a6470d60bad07bbbaee885c0e12d04177138fa3291a01b7bc4" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitvec" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c" +dependencies = [ + "funty", + "radium", + "tap", + "wyz", +] + +[[package]] +name = "block-buffer" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" +dependencies = [ + "generic-array", +] + +[[package]] +name = "bumpalo" +version = "3.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c6ed94e98ecff0c12dd1b04c15ec0d7d9458ca8fe806cea6f12954efe74c63b" + +[[package]] +name = "byte-slice-cast" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3ac9f8b63eca6fd385229b3675f6cc0dc5c8a5c8a54a59d4f52ffd670d87b0c" + +[[package]] +name = "byteorder" +version = "1.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" + +[[package]] +name = "bytes" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c" +dependencies = [ + "byteorder", + "iovec", +] + +[[package]] +name = "bytes" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be" + +[[package]] +name = "cc" +version = "1.0.79" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" + +[[package]] +name = "cfg-if" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "chrono" +version = "0.4.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e3c5919066adf22df73762e50cffcde3a758f2a848b113b586d1f86728b673b" +dependencies = [ + "iana-time-zone", + "js-sys", + "num-integer", + "num-traits", + "time", + "wasm-bindgen", + "winapi", +] + +[[package]] +name = "clap" +version = "2.34.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c" +dependencies = [ + "ansi_term", + "atty", + "bitflags", + "strsim", + "textwrap", + "unicode-width", + "vec_map", +] + +[[package]] +name = "cloudabi" +version = "0.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" +dependencies = [ + "bitflags", +] + +[[package]] +name = "codespan-reporting" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3538270d33cc669650c4b093848450d380def10c331d38c768e34cac80576e6e" +dependencies = [ + "termcolor", + "unicode-width", +] + +[[package]] +name = "common" +version = "0.1.0" +dependencies = [ + "anyhow", + "arrayref", + "async-trait", + "backtrace", + "bytes 1.4.0", + "cc", + "cfg-if 1.0.0", + "chrono", + "crossbeam", + "derive_more", + "env_logger 0.9.3", + "findshlibs", + "fnv", + "futures 0.1.31", + "futures 0.3.28", + "futures-timer", + "getrandom 0.2.9", + "gstuff", + "hex", + "http 0.2.9", + "http-body 0.1.0", + "hyper", + "hyper-rustls", + "itertools", + "js-sys", + "lazy_static", + "libc", + "lightning", + "log 0.4.17", + "parking_lot 0.12.1", + "parking_lot_core 0.6.3", + "primitive-types", + "rand 0.7.3", + "regex", + "ser_error", + "ser_error_derive", + "serde", + "serde-wasm-bindgen", + "serde_derive", + "serde_json", + "serde_repr", + "sha2", + "tokio", + "uuid", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-bindgen-test", + "wasm-timer", + "web-sys", + "winapi", +] + +[[package]] +name = "console_error_panic_hook" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a06aeb73f470f66dcdbf7223caeebb85984942f22f1adb2a088cf9668146bbbc" +dependencies = [ + "cfg-if 1.0.0", + "wasm-bindgen", +] + +[[package]] +name = "convert_case" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" + +[[package]] +name = "core-foundation-sys" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" + +[[package]] +name = "cpufeatures" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e4c1eaa2012c47becbbad2ab175484c2a84d1185b566fb2cc5b8707343dfe58" +dependencies = [ + "libc", +] + +[[package]] +name = "crossbeam" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2801af0d36612ae591caa9568261fddce32ce6e08a7275ea334a06a4ad021a2c" +dependencies = [ + "cfg-if 1.0.0", + "crossbeam-channel", + "crossbeam-deque", + "crossbeam-epoch", + "crossbeam-queue", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-channel" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a33c2bf77f2df06183c3aa30d1e96c0695a313d4f9c453cc3762a6db39f99200" +dependencies = [ + "cfg-if 1.0.0", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-deque" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef" +dependencies = [ + "cfg-if 1.0.0", + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46bd5f3f85273295a9d14aedfb86f6aadbff6d8f5295c4a9edb08e819dcf5695" +dependencies = [ + "autocfg 1.1.0", + "cfg-if 1.0.0", + "crossbeam-utils", + "memoffset", + "scopeguard", +] + +[[package]] +name = "crossbeam-queue" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1cfb3ea8a53f37c40dea2c7bedcbd88bdfae54f5e2175d6ecaff1c988353add" +dependencies = [ + "cfg-if 1.0.0", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c063cd8cc95f5c377ed0d4b49a4b21f632396ff690e8470c29b3359b346984b" +dependencies = [ + "cfg-if 1.0.0", +] + +[[package]] +name = "crossterm" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e64e6c0fbe2c17357405f7c758c1ef960fce08bdfb2c03d88d2a18d7e09c4b67" +dependencies = [ + "bitflags", + "crossterm_winapi", + "libc", + "mio", + "parking_lot 0.12.1", + "signal-hook", + "signal-hook-mio", + "winapi", +] + +[[package]] +name = "crossterm_winapi" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ae1b35a484aa10e07fe0638d02301c5ad24de82d310ccbd2f3693da5f09bf1c" +dependencies = [ + "winapi", +] + +[[package]] +name = "crunchy" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" + +[[package]] +name = "crypto-mac" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" +dependencies = [ + "generic-array", + "subtle", +] + +[[package]] +name = "cxx" +version = "1.0.94" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f61f1b6389c3fe1c316bf8a4dccc90a38208354b330925bce1f74a6c4756eb93" +dependencies = [ + "cc", + "cxxbridge-flags", + "cxxbridge-macro", + "link-cplusplus", +] + +[[package]] +name = "cxx-build" +version = "1.0.94" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12cee708e8962df2aeb38f594aae5d827c022b6460ac71a7a3e2c3c2aae5a07b" +dependencies = [ + "cc", + "codespan-reporting", + "once_cell", + "proc-macro2", + "quote", + "scratch", + "syn 2.0.15", +] + +[[package]] +name = "cxxbridge-flags" +version = "1.0.94" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7944172ae7e4068c533afbb984114a56c46e9ccddda550499caa222902c7f7bb" + +[[package]] +name = "cxxbridge-macro" +version = "1.0.94" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2345488264226bf682893e25de0769f3360aac9957980ec49361b083ddaa5bc5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.15", +] + +[[package]] +name = "db_common" +version = "0.1.0" +dependencies = [ + "common", + "hex", + "log 0.4.17", + "rusqlite", + "sql-builder", + "uuid", +] + +[[package]] +name = "derive_more" +version = "0.99.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fb810d30a7c1953f91334de7244731fc3f3c10d7fe163338a35b9f640960321" +dependencies = [ + "convert_case", + "proc-macro2", + "quote", + "rustc_version 0.4.0", + "syn 1.0.109", +] + +[[package]] +name = "digest" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" +dependencies = [ + "generic-array", +] + +[[package]] +name = "dyn-clone" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68b0cf012f1230e43cd00ebb729c6bb58707ecfa8ad08b52ef3a4ccd2697fc30" + +[[package]] +name = "edit-distance" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbbaaaf38131deb9ca518a274a45bfdb8771f139517b073b16c2d3d32ae5037b" + +[[package]] +name = "either" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91" + +[[package]] +name = "endian-type" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" + +[[package]] +name = "env_logger" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36" +dependencies = [ + "atty", + "humantime 1.3.0", + "log 0.4.17", + "regex", + "termcolor", +] + +[[package]] +name = "env_logger" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" +dependencies = [ + "atty", + "humantime 2.1.0", + "log 0.4.17", + "regex", + "termcolor", +] + +[[package]] +name = "ethbloom" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11da94e443c60508eb62cf256243a64da87304c2802ac2528847f79d750007ef" +dependencies = [ + "crunchy", + "fixed-hash", + "impl-rlp", + "impl-serde", + "tiny-keccak 2.0.2", +] + +[[package]] +name = "ethereum-types" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2827b94c556145446fcce834ca86b7abf0c39a805883fe20e72c5bfdb5a0dc6" +dependencies = [ + "ethbloom", + "fixed-hash", + "impl-rlp", + "impl-serde", + "primitive-types", + "uint", +] + +[[package]] +name = "ethkey" +version = "0.3.0" +source = "git+https://github.com/KomodoPlatform/mm2-parity-ethereum.git#223da7972113a548531804510708f87b629a48fd" +dependencies = [ + "byteorder", + "edit-distance", + "ethereum-types", + "log 0.3.9", + "mem", + "rand 0.6.5", + "rustc-hex", + "secp256k1 0.20.3", + "serde", + "serde_derive", + "tiny-keccak 1.4.4", +] + +[[package]] +name = "fallible-iterator" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" + +[[package]] +name = "fallible-streaming-iterator" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7360491ce676a36bf9bb3c56c1aa791658183a54d2744120f27285738d90465a" + +[[package]] +name = "findshlibs" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1260d61e4fe2a6ab845ffdc426a0bd68ffb240b91cf0ec5a8d1170cec535bd8" +dependencies = [ + "lazy_static", + "libc", +] + +[[package]] +name = "fixed-hash" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcf0ed7fe52a17a03854ec54a9f76d6d84508d1c0e66bc1793301c73fc8493c" +dependencies = [ + "byteorder", + "rand 0.8.5", + "rustc-hex", + "static_assertions", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "fuchsia-cprng" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba" + +[[package]] +name = "funty" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" + +[[package]] +name = "futures" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a471a38ef8ed83cd6e40aa59c1ffe17db6855c18e3604d9c4ed8c08ebc28678" + +[[package]] +name = "futures" +version = "0.3.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23342abe12aba583913b2e62f22225ff9c950774065e4bfb61a19cd9770fec40" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c" + +[[package]] +name = "futures-executor" +version = "0.3.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccecee823288125bd88b4d7f565c9e58e41858e47ab72e8ea2d64e93624386e0" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", + "num_cpus", +] + +[[package]] +name = "futures-io" +version = "0.3.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964" + +[[package]] +name = "futures-macro" +version = "0.3.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.15", +] + +[[package]] +name = "futures-sink" +version = "0.3.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e" + +[[package]] +name = "futures-task" +version = "0.3.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65" + +[[package]] +name = "futures-timer" +version = "3.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c" + +[[package]] +name = "futures-util" +version = "0.3.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533" +dependencies = [ + "futures 0.1.31", + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "pin-utils", + "slab", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" +dependencies = [ + "cfg-if 1.0.0", + "js-sys", + "libc", + "wasi 0.9.0+wasi-snapshot-preview1", + "wasm-bindgen", +] + +[[package]] +name = "getrandom" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c85e1d9ab2eadba7e5040d4e09cbd6d072b76a557ad64e797c2cb9d4da21d7e4" +dependencies = [ + "cfg-if 1.0.0", + "js-sys", + "libc", + "wasi 0.11.0+wasi-snapshot-preview1", + "wasm-bindgen", +] + +[[package]] +name = "gimli" +version = "0.27.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad0a93d233ebf96623465aad4046a8d3aa4da22d4f4beba5388838c8a434bbb4" + +[[package]] +name = "gstuff" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e38a0ee5e8e3debd1336135939e6615d283b8375fab2f99d8b89dba718502212" +dependencies = [ + "lazy_static", + "libc", +] + +[[package]] +name = "h2" +version = "0.3.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17f8a914c2987b688368b5138aa05321db91f4090cf26118185672ad588bce21" +dependencies = [ + "bytes 1.4.0", + "fnv", + "futures-core", + "futures-sink", + "futures-util", + "http 0.2.9", + "indexmap", + "slab", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "hashbrown" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04" +dependencies = [ + "ahash 0.4.7", +] + +[[package]] +name = "hashbrown" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" +dependencies = [ + "ahash 0.7.6", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + +[[package]] +name = "hashlink" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d99cf782f0dc4372d26846bec3de7804ceb5df083c2d4462c0b8d2330e894fa8" +dependencies = [ + "hashbrown 0.9.1", +] + +[[package]] +name = "hermit-abi" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" +dependencies = [ + "libc", +] + +[[package]] +name = "hermit-abi" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" +dependencies = [ + "libc", +] + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "hmac" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840" +dependencies = [ + "crypto-mac", + "digest", +] + +[[package]] +name = "http" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6ccf5ede3a895d8856620237b2f02972c1bbc78d2965ad7fe8838d4a0ed41f0" +dependencies = [ + "bytes 0.4.12", + "fnv", + "itoa 0.4.8", +] + +[[package]] +name = "http" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd6effc99afb63425aff9b05836f029929e345a6148a14b7ecd5ab67af944482" +dependencies = [ + "bytes 1.4.0", + "fnv", + "itoa 1.0.6", +] + +[[package]] +name = "http-body" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6741c859c1b2463a423a1dbce98d418e6c3c3fc720fb0d45528657320920292d" +dependencies = [ + "bytes 0.4.12", + "futures 0.1.31", + "http 0.1.21", + "tokio-buf", +] + +[[package]] +name = "http-body" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1" +dependencies = [ + "bytes 1.4.0", + "http 0.2.9", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904" + +[[package]] +name = "httpdate" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421" + +[[package]] +name = "humantime" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f" +dependencies = [ + "quick-error", +] + +[[package]] +name = "humantime" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" + +[[package]] +name = "hyper" +version = "0.14.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab302d72a6f11a3b910431ff93aae7e773078c769f0a3ef15fb9ec692ed147d4" +dependencies = [ + "bytes 1.4.0", + "futures-channel", + "futures-core", + "futures-util", + "h2", + "http 0.2.9", + "http-body 0.4.5", + "httparse", + "httpdate", + "itoa 1.0.6", + "pin-project-lite", + "socket2", + "tokio", + "tower-service", + "tracing", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.23.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1788965e61b367cd03a62950836d5cd41560c3577d90e40e0819373194d1661c" +dependencies = [ + "http 0.2.9", + "hyper", + "rustls", + "tokio", + "tokio-rustls", + "webpki-roots", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.56" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0722cd7114b7de04316e7ea5456a0bbb20e4adb46fd27a3697adb812cff0f37c" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "wasm-bindgen", + "windows", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0703ae284fc167426161c2e3f1da3ea71d94b21bedbcc9494e92b28e334e3dca" +dependencies = [ + "cxx", + "cxx-build", +] + +[[package]] +name = "impl-codec" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba6a270039626615617f3f36d15fc827041df3b78c439da2cadfa47455a77f2f" +dependencies = [ + "parity-scale-codec", +] + +[[package]] +name = "impl-rlp" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f28220f89297a075ddc7245cd538076ee98b01f2a9c23a53a4f1105d5a322808" +dependencies = [ + "rlp", +] + +[[package]] +name = "impl-serde" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4551f042f3438e64dbd6226b20527fc84a6e1fe65688b58746a2f53623f25f5c" +dependencies = [ + "serde", +] + +[[package]] +name = "impl-trait-for-tuples" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11d7a9f6330b71fea57921c9b61c47ee6e84f72d394754eff6163ae67e7395eb" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "indexmap" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +dependencies = [ + "autocfg 1.1.0", + "hashbrown 0.12.3", +] + +[[package]] +name = "inquire" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c33e7c1ddeb15c9abcbfef6029d8e29f69b52b6d6c891031b88ed91b5065803b" +dependencies = [ + "bitflags", + "crossterm", + "dyn-clone", + "lazy_static", + "newline-converter", + "thiserror", + "unicode-segmentation", + "unicode-width", +] + +[[package]] +name = "instant" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" +dependencies = [ + "cfg-if 1.0.0", +] + +[[package]] +name = "iovec" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e" +dependencies = [ + "libc", +] + +[[package]] +name = "ipnet" +version = "2.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12b6ee2129af8d4fb011108c73d99a1b83a85977f23b82460c0ae2e25bb4b57f" + +[[package]] +name = "itertools" +version = "0.10.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" + +[[package]] +name = "itoa" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6" + +[[package]] +name = "js-sys" +version = "0.3.57" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "671a26f820db17c2a2750743f1dd03bafd15b98c9f30c7c2628c024c05d73397" +dependencies = [ + "wasm-bindgen", +] + +[[package]] +name = "lazy_static" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" + +[[package]] +name = "libc" +version = "0.2.144" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b00cc1c228a6782d0f076e7b232802e0c5689d41bb5df366f2a6b6621cfdfe1" + +[[package]] +name = "libsqlite3-sys" +version = "0.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64d31059f22935e6c31830db5249ba2b7ecd54fd73a9909286f0a67aa55c2fbd" +dependencies = [ + "cc", + "pkg-config", + "vcpkg", +] + +[[package]] +name = "lightning" +version = "0.0.113" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "087add70f81d2fdc6d4409bc0cef69e11ad366ef1d0068550159bd22b3ac8664" +dependencies = [ + "bitcoin", +] + +[[package]] +name = "link-cplusplus" +version = "1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecd207c9c713c34f95a097a5b029ac2ce6010530c7b49d7fea24d977dede04f5" +dependencies = [ + "cc", +] + +[[package]] +name = "lock_api" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" +dependencies = [ + "autocfg 1.1.0", + "scopeguard", +] + +[[package]] +name = "log" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b" +dependencies = [ + "log 0.4.17", +] + +[[package]] +name = "log" +version = "0.4.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" +dependencies = [ + "cfg-if 1.0.0", +] + +[[package]] +name = "mach" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa" +dependencies = [ + "libc", +] + +[[package]] +name = "maybe-uninit" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" + +[[package]] +name = "mem" +version = "0.1.0" +source = "git+https://github.com/KomodoPlatform/mm2-parity-ethereum.git#223da7972113a548531804510708f87b629a48fd" + +[[package]] +name = "memchr" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" + +[[package]] +name = "memoffset" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1" +dependencies = [ + "autocfg 1.1.0", +] + +[[package]] +name = "metrics" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "142c53885123b68d94108295a09d4afe1a1388ed95b54d5dacd9a454753030f2" +dependencies = [ + "ahash 0.7.6", + "metrics-macros", +] + +[[package]] +name = "metrics-exporter-prometheus" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "953cbbb6f9ba4b9304f4df79b98cdc9d14071ed93065a9fca11c00c5d9181b66" +dependencies = [ + "hyper", + "indexmap", + "ipnet", + "metrics", + "metrics-util", + "parking_lot 0.11.2", + "quanta", + "thiserror", + "tokio", + "tracing", +] + +[[package]] +name = "metrics-macros" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49e30813093f757be5cf21e50389a24dc7dbb22c49f23b7e8f51d69b508a5ffa" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "metrics-util" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd1f4b69bef1e2b392b2d4a12902f2af90bb438ba4a66aa222d1023fa6561b50" +dependencies = [ + "aho-corasick 0.7.20", + "atomic-shim", + "crossbeam-epoch", + "crossbeam-utils", + "hashbrown 0.11.2", + "indexmap", + "metrics", + "num_cpus", + "ordered-float", + "parking_lot 0.11.2", + "quanta", + "radix_trie", + "sketches-ddsketch", +] + +[[package]] +name = "miniz_oxide" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b275950c28b37e794e8c55d88aeb5e139d0ce23fdbbeda68f8d7174abdf9e8fa" +dependencies = [ + "adler", +] + +[[package]] +name = "mio" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b9d9a46eff5b4ff64b45a9e316a6d1e0bc719ef429cbec4dc630684212bfdf9" +dependencies = [ + "libc", + "log 0.4.17", + "wasi 0.11.0+wasi-snapshot-preview1", + "windows-sys 0.45.0", +] + +[[package]] +name = "mm2_core" +version = "0.1.0" +dependencies = [ + "arrayref", + "async-trait", + "cfg-if 1.0.0", + "common", + "db_common", + "derive_more", + "futures 0.3.28", + "gstuff", + "hex", + "lazy_static", + "mm2_metrics", + "mm2_rpc", + "primitives", + "rand 0.7.3", + "serde", + "serde_json", + "shared_ref_counter", + "uuid", +] + +[[package]] +name = "mm2_err_handle" +version = "0.1.0" +dependencies = [ + "common", + "derive_more", + "futures 0.1.31", + "http 0.2.9", + "itertools", + "ser_error", + "ser_error_derive", + "serde", + "serde_json", +] + +[[package]] +name = "mm2_metrics" +version = "0.1.0" +dependencies = [ + "base64", + "common", + "derive_more", + "futures 0.3.28", + "hyper", + "hyper-rustls", + "itertools", + "metrics", + "metrics-exporter-prometheus", + "metrics-util", + "mm2_err_handle", + "serde", + "serde_derive", + "serde_json", + "wasm-timer", +] + +[[package]] +name = "mm2_net" +version = "0.1.0" +dependencies = [ + "async-trait", + "bytes 1.4.0", + "cfg-if 1.0.0", + "common", + "derive_more", + "ethkey", + "futures 0.3.28", + "gstuff", + "http 0.2.9", + "hyper", + "js-sys", + "lazy_static", + "mm2_core", + "mm2_err_handle", + "prost", + "rand 0.7.3", + "serde", + "serde_json", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-bindgen-test", + "web-sys", +] + +[[package]] +name = "mm2_rpc" +version = "0.1.0" +dependencies = [ + "common", + "derive_more", + "futures 0.3.28", + "gstuff", + "http 0.2.9", + "mm2_err_handle", + "ser_error", + "ser_error_derive", + "serde", + "serde_json", +] + +[[package]] +name = "newline-converter" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f71d09d5c87634207f894c6b31b6a2b2c64ea3bdcf71bd5599fdbbe1600c00f" +dependencies = [ + "unicode-segmentation", +] + +[[package]] +name = "nibble_vec" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77a5d83df9f36fe23f0c3648c6bbb8b0298bb5f1939c8f2704431371f4b84d43" +dependencies = [ + "smallvec 1.10.0", +] + +[[package]] +name = "ntapi" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8a3895c6391c39d7fe7ebc444a87eb2991b2a0bc718fdabd071eec617fc68e4" +dependencies = [ + "winapi", +] + +[[package]] +name = "num-integer" +version = "0.1.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9" +dependencies = [ + "autocfg 1.1.0", + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" +dependencies = [ + "autocfg 1.1.0", +] + +[[package]] +name = "num_cpus" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" +dependencies = [ + "hermit-abi 0.2.6", + "libc", +] + +[[package]] +name = "object" +version = "0.30.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea86265d3d3dcb6a27fc51bd29a4bf387fae9d2986b823079d4986af253eb439" +dependencies = [ + "memchr", +] + +[[package]] +name = "once_cell" +version = "1.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" + +[[package]] +name = "opaque-debug" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" + +[[package]] +name = "ordered-float" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7940cf2ca942593318d07fcf2596cdca60a85c9e7fab408a5e21a4f9dcd40d87" +dependencies = [ + "num-traits", +] + +[[package]] +name = "parity-scale-codec" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ddb756ca205bd108aee3c62c6d3c994e1df84a59b9d6d4a5ea42ee1fd5a9a28" +dependencies = [ + "arrayvec", + "bitvec", + "byte-slice-cast", + "impl-trait-for-tuples", + "parity-scale-codec-derive", + "serde", +] + +[[package]] +name = "parity-scale-codec-derive" +version = "3.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86b26a931f824dd4eca30b3e43bb4f31cd5f0d3a403c5f5ff27106b805bfde7b" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "parking_lot" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99" +dependencies = [ + "instant", + "lock_api", + "parking_lot_core 0.8.6", +] + +[[package]] +name = "parking_lot" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" +dependencies = [ + "lock_api", + "parking_lot_core 0.9.7", +] + +[[package]] +name = "parking_lot_core" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bda66b810a62be75176a80873726630147a5ca780cd33921e0b5709033e66b0a" +dependencies = [ + "cfg-if 0.1.10", + "cloudabi", + "libc", + "redox_syscall 0.1.57", + "rustc_version 0.2.3", + "smallvec 0.6.14", + "winapi", +] + +[[package]] +name = "parking_lot_core" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60a2cfe6f0ad2bfc16aefa463b497d5c7a5ecd44a23efa72aa342d90177356dc" +dependencies = [ + "cfg-if 1.0.0", + "instant", + "libc", + "redox_syscall 0.2.16", + "smallvec 1.10.0", + "winapi", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9069cbb9f99e3a5083476ccb29ceb1de18b9118cafa53e90c9551235de2b9521" +dependencies = [ + "cfg-if 1.0.0", + "libc", + "redox_syscall 0.2.16", + "smallvec 1.10.0", + "windows-sys 0.45.0", +] + +[[package]] +name = "passwords" +version = "3.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ca743e019c2c679e1d92b329214cb4ffc4312200ca5ae60227aad1425c0aac8" +dependencies = [ + "random-pick", +] + +[[package]] +name = "pbkdf2" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd" +dependencies = [ + "crypto-mac", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "pkg-config" +version = "0.3.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964" + +[[package]] +name = "ppv-lite86" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" + +[[package]] +name = "primitive-types" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e28720988bff275df1f51b171e1b2a18c30d194c4d2b61defdacecd625a5d94a" +dependencies = [ + "fixed-hash", + "impl-codec", + "impl-rlp", + "impl-serde", + "uint", +] + +[[package]] +name = "primitives" +version = "0.1.0" +dependencies = [ + "bitcoin_hashes", + "byteorder", + "rustc-hex", + "uint", +] + +[[package]] +name = "proc-macro-crate" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" +dependencies = [ + "once_cell", + "toml_edit", +] + +[[package]] +name = "proc-macro-hack" +version = "0.5.20+deprecated" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" + +[[package]] +name = "proc-macro2" +version = "1.0.56" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b63bdb0cd06f1f4dedf69b254734f9b45af66e4a031e42a7480257d9898b435" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "prost" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71adf41db68aa0daaefc69bb30bcd68ded9b9abaad5d1fbb6304c4fb390e083e" +dependencies = [ + "bytes 1.4.0", + "prost-derive", +] + +[[package]] +name = "prost-derive" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b670f45da57fb8542ebdbb6105a925fe571b67f9e7ed9f47a06a84e72b4e7cc" +dependencies = [ + "anyhow", + "itertools", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "quanta" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20afe714292d5e879d8b12740aa223c6a88f118af41870e8b6196e39a02238a8" +dependencies = [ + "crossbeam-utils", + "libc", + "mach", + "once_cell", + "raw-cpuid", + "wasi 0.10.2+wasi-snapshot-preview1", + "web-sys", + "winapi", +] + +[[package]] +name = "quick-error" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" + +[[package]] +name = "quote" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f4f29d145265ec1c483c7c654450edde0bfe043d3938d6972630663356d9500" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "radium" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" + +[[package]] +name = "radix_trie" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c069c179fcdc6a2fe24d8d18305cf085fdbd4f922c041943e203685d6a1c58fd" +dependencies = [ + "endian-type", + "nibble_vec", +] + +[[package]] +name = "rand" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d71dacdc3c88c1fde3885a3be3fbab9f35724e6ce99467f7d9c5026132184ca" +dependencies = [ + "autocfg 0.1.8", + "libc", + "rand_chacha 0.1.1", + "rand_core 0.4.2", + "rand_hc 0.1.0", + "rand_isaac", + "rand_jitter", + "rand_os", + "rand_pcg 0.1.2", + "rand_xorshift", + "winapi", +] + +[[package]] +name = "rand" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" +dependencies = [ + "getrandom 0.1.16", + "libc", + "rand_chacha 0.2.2", + "rand_core 0.5.1", + "rand_hc 0.2.0", + "rand_pcg 0.2.1", +] + +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "556d3a1ca6600bfcbab7c7c91ccb085ac7fbbcd70e008a98742e7847f4f7bcef" +dependencies = [ + "autocfg 0.1.8", + "rand_core 0.3.1", +] + +[[package]] +name = "rand_chacha" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" +dependencies = [ + "ppv-lite86", + "rand_core 0.5.1", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_core" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b" +dependencies = [ + "rand_core 0.4.2", +] + +[[package]] +name = "rand_core" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc" + +[[package]] +name = "rand_core" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" +dependencies = [ + "getrandom 0.1.16", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.9", +] + +[[package]] +name = "rand_hc" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b40677c7be09ae76218dc623efbf7b18e34bced3f38883af07bb75630a21bc4" +dependencies = [ + "rand_core 0.3.1", +] + +[[package]] +name = "rand_hc" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +dependencies = [ + "rand_core 0.5.1", +] + +[[package]] +name = "rand_isaac" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ded997c9d5f13925be2a6fd7e66bf1872597f759fd9dd93513dd7e92e5a5ee08" +dependencies = [ + "rand_core 0.3.1", +] + +[[package]] +name = "rand_jitter" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1166d5c91dc97b88d1decc3285bb0a99ed84b05cfd0bc2341bdf2d43fc41e39b" +dependencies = [ + "libc", + "rand_core 0.4.2", + "winapi", +] + +[[package]] +name = "rand_os" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b75f676a1e053fc562eafbb47838d67c84801e38fc1ba459e8f180deabd5071" +dependencies = [ + "cloudabi", + "fuchsia-cprng", + "libc", + "rand_core 0.4.2", + "rdrand", + "winapi", +] + +[[package]] +name = "rand_pcg" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abf9b09b01790cfe0364f52bf32995ea3c39f4d2dd011eac241d2914146d0b44" +dependencies = [ + "autocfg 0.1.8", + "rand_core 0.4.2", +] + +[[package]] +name = "rand_pcg" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" +dependencies = [ + "rand_core 0.5.1", +] + +[[package]] +name = "rand_xorshift" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbf7e9e623549b0e21f6e97cf8ecf247c1a8fd2e8a992ae265314300b2455d5c" +dependencies = [ + "rand_core 0.3.1", +] + +[[package]] +name = "random-number" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a3da5cbb4c27c5150c03a54a7e4745437cd90f9e329ae657c0b889a144bb7be" +dependencies = [ + "proc-macro-hack", + "rand 0.8.5", + "random-number-macro-impl", +] + +[[package]] +name = "random-number-macro-impl" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b86292cf41ccfc96c5de7165c1c53d5b4ac540c5bab9d1857acbe9eba5f1a0b" +dependencies = [ + "proc-macro-hack", + "quote", + "syn 2.0.15", +] + +[[package]] +name = "random-pick" +version = "1.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c179499072da789afe44127d5f4aa6012de2c2f96ef759990196b37387a2a0f8" +dependencies = [ + "random-number", +] + +[[package]] +name = "raw-cpuid" +version = "10.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c297679cb867470fa8c9f67dbba74a78d78e3e98d7cf2b08d6d71540f797332" +dependencies = [ + "bitflags", +] + +[[package]] +name = "rayon" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d2df5196e37bcc87abebc0053e20787d73847bb33134a69841207dd0a47f03b" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b8f95bd6966f5c87776639160a66bd8ab9895d9d4ab01ddba9fc60661aebe8d" +dependencies = [ + "crossbeam-channel", + "crossbeam-deque", + "crossbeam-utils", + "num_cpus", +] + +[[package]] +name = "rdrand" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2" +dependencies = [ + "rand_core 0.3.1", +] + +[[package]] +name = "redox_syscall" +version = "0.1.57" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce" + +[[package]] +name = "redox_syscall" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" +dependencies = [ + "bitflags", +] + +[[package]] +name = "regex" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af83e617f331cc6ae2da5443c602dfa5af81e517212d9d611a5b3ba1777b5370" +dependencies = [ + "aho-corasick 1.0.1", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5996294f19bd3aae0453a862ad728f60e6600695733dd5df01da90c54363a3c" + +[[package]] +name = "ring" +version = "0.16.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc" +dependencies = [ + "cc", + "libc", + "once_cell", + "spin", + "untrusted", + "web-sys", + "winapi", +] + +[[package]] +name = "rlp" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb919243f34364b6bd2fc10ef797edbfa75f33c252e7998527479c6d6b47e1ec" +dependencies = [ + "bytes 1.4.0", + "rustc-hex", +] + +[[package]] +name = "rusqlite" +version = "0.24.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5f38ee71cbab2c827ec0ac24e76f82eca723cee92c509a65f67dee393c25112" +dependencies = [ + "bitflags", + "fallible-iterator", + "fallible-streaming-iterator", + "hashlink", + "libsqlite3-sys", + "memchr", + "smallvec 1.10.0", +] + +[[package]] +name = "rustc-demangle" +version = "0.1.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" + +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + +[[package]] +name = "rustc-hex" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e75f6a532d0fd9f7f13144f392b6ad56a32696bfcd9c78f797f16bbb6f072d6" + +[[package]] +name = "rustc_version" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" +dependencies = [ + "semver 0.9.0", +] + +[[package]] +name = "rustc_version" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" +dependencies = [ + "semver 1.0.17", +] + +[[package]] +name = "rustls" +version = "0.20.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fff78fc74d175294f4e83b28343315ffcfb114b156f0185e9741cb5570f50e2f" +dependencies = [ + "ring", + "sct", + "webpki", +] + +[[package]] +name = "ryu" +version = "1.0.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041" + +[[package]] +name = "scoped-tls" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" + +[[package]] +name = "scopeguard" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" + +[[package]] +name = "scratch" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1792db035ce95be60c3f8853017b3999209281c24e2ba5bc8e59bf97a0c590c1" + +[[package]] +name = "sct" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d53dcdb7c9f8158937a7981b48accfd39a43af418591a5d008c7b22b5e1b7ca4" +dependencies = [ + "ring", + "untrusted", +] + +[[package]] +name = "secp256k1" +version = "0.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97d03ceae636d0fed5bae6a7f4f664354c5f4fcedf6eef053fef17e49f837d0a" +dependencies = [ + "rand 0.6.5", + "secp256k1-sys 0.4.2", +] + +[[package]] +name = "secp256k1" +version = "0.24.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b1629c9c557ef9b293568b338dddfc8208c98a18c59d722a9d53f859d9c9b62" +dependencies = [ + "bitcoin_hashes", + "secp256k1-sys 0.6.1", +] + +[[package]] +name = "secp256k1-sys" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "957da2573cde917463ece3570eab4a0b3f19de6f1646cde62e6fd3868f566036" +dependencies = [ + "cc", +] + +[[package]] +name = "secp256k1-sys" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83080e2c2fc1006e625be82e5d1eb6a43b7fd9578b617fcc55814daf286bba4b" +dependencies = [ + "cc", +] + +[[package]] +name = "semver" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" +dependencies = [ + "semver-parser", +] + +[[package]] +name = "semver" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bebd363326d05ec3e2f532ab7660680f3b02130d780c299bca73469d521bc0ed" + +[[package]] +name = "semver-parser" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" + +[[package]] +name = "ser_error" +version = "0.1.0" +dependencies = [ + "serde", +] + +[[package]] +name = "ser_error_derive" +version = "0.1.0" +dependencies = [ + "proc-macro2", + "quote", + "ser_error", + "syn 1.0.109", +] + +[[package]] +name = "serde" +version = "1.0.163" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2113ab51b87a539ae008b5c6c02dc020ffa39afd2d83cffcb3f4eb2722cebec2" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde-wasm-bindgen" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1cfc62771e7b829b517cb213419236475f434fb480eddd76112ae182d274434a" +dependencies = [ + "js-sys", + "serde", + "wasm-bindgen", +] + +[[package]] +name = "serde_derive" +version = "1.0.163" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c805777e3930c8883389c602315a24224bcc738b63905ef87cd1420353ea93e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.15", +] + +[[package]] +name = "serde_json" +version = "1.0.96" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "057d394a50403bcac12672b2b18fb387ab6d289d957dab67dd201875391e52f1" +dependencies = [ + "indexmap", + "itoa 1.0.6", + "ryu", + "serde", +] + +[[package]] +name = "serde_repr" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bcec881020c684085e55a25f7fd888954d56609ef363479dc5a1305eb0d40cab" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.15", +] + +[[package]] +name = "sha2" +version = "0.9.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" +dependencies = [ + "block-buffer", + "cfg-if 1.0.0", + "cpufeatures", + "digest", + "opaque-debug", +] + +[[package]] +name = "shared_ref_counter" +version = "0.1.0" + +[[package]] +name = "signal-hook" +version = "0.3.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "732768f1176d21d09e076c23a93123d40bba92d50c4058da34d45c8de8e682b9" +dependencies = [ + "libc", + "signal-hook-registry", +] + +[[package]] +name = "signal-hook-mio" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29ad2e15f37ec9a6cc544097b78a1ec90001e9f71b81338ca39f430adaca99af" +dependencies = [ + "libc", + "mio", + "signal-hook", +] + +[[package]] +name = "signal-hook-registry" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1" +dependencies = [ + "libc", +] + +[[package]] +name = "sketches-ddsketch" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04d2ecae5fcf33b122e2e6bd520a57ccf152d2dde3b38c71039df1a6867264ee" + +[[package]] +name = "slab" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6528351c9bc8ab22353f9d776db39a20288e8d6c37ef8cfe3317cf875eecfc2d" +dependencies = [ + "autocfg 1.1.0", +] + +[[package]] +name = "smallvec" +version = "0.6.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b97fcaeba89edba30f044a10c6a3cc39df9c3f17d7cd829dd1446cab35f890e0" +dependencies = [ + "maybe-uninit", +] + +[[package]] +name = "smallvec" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" + +[[package]] +name = "socket2" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64a4a911eed85daf18834cfaa86a79b7d266ff93ff5ba14005426219480ed662" +dependencies = [ + "libc", + "winapi", +] + +[[package]] +name = "spin" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" + +[[package]] +name = "sql-builder" +version = "3.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1008d95d2ec2d062959352527be30e10fec42a1aa5e5a48d990a5ff0fb9bdc0" +dependencies = [ + "anyhow", + "thiserror", +] + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "strsim" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" + +[[package]] +name = "subtle" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a34fcf3e8b60f57e6a14301a2e916d323af98b0ea63c599441eec8558660c822" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sysinfo" +version = "0.28.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4c2f3ca6693feb29a89724516f016488e9aafc7f37264f898593ee4b942f31b" +dependencies = [ + "cfg-if 1.0.0", + "core-foundation-sys", + "libc", + "ntapi", + "once_cell", + "rayon", + "winapi", +] + +[[package]] +name = "tap" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" + +[[package]] +name = "termcolor" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be55cf8942feac5c765c2c993422806843c9a9a45d4d5c407ad6dd2ea95eb9b6" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "textwrap" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" +dependencies = [ + "unicode-width", +] + +[[package]] +name = "thiserror" +version = "1.0.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "978c9a314bd8dc99be594bc3c175faaa9794be04a5a5e153caba6915336cebac" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.15", +] + +[[package]] +name = "time" +version = "0.1.43" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438" +dependencies = [ + "libc", + "winapi", +] + +[[package]] +name = "tiny-bip39" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffc59cb9dfc85bb312c3a78fd6aa8a8582e310b0fa885d5bb877f6dcc601839d" +dependencies = [ + "anyhow", + "hmac", + "once_cell", + "pbkdf2", + "rand 0.7.3", + "rustc-hash", + "sha2", + "thiserror", + "unicode-normalization", + "wasm-bindgen", + "zeroize", +] + +[[package]] +name = "tiny-keccak" +version = "1.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f11c56c1b46016bb1129db9399f905385490f3e17907e4a8430e57f9a5b979c" +dependencies = [ + "crunchy", +] + +[[package]] +name = "tiny-keccak" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237" +dependencies = [ + "crunchy", +] + +[[package]] +name = "tinyvec" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "tokio" +version = "1.28.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0aa32867d44e6f2ce3385e89dceb990188b8bb0fb25b0cf576647a6f98ac5105" +dependencies = [ + "autocfg 1.1.0", + "bytes 1.4.0", + "libc", + "mio", + "num_cpus", + "pin-project-lite", + "socket2", + "tokio-macros", + "windows-sys 0.48.0", +] + +[[package]] +name = "tokio-buf" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fb220f46c53859a4b7ec083e41dec9778ff0b1851c0942b211edb89e0ccdc46" +dependencies = [ + "bytes 0.4.12", + "futures 0.1.31", +] + +[[package]] +name = "tokio-macros" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.15", +] + +[[package]] +name = "tokio-rustls" +version = "0.23.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c43ee83903113e03984cb9e5cebe6c04a5116269e900e3ddba8f068a62adda59" +dependencies = [ + "rustls", + "tokio", + "webpki", +] + +[[package]] +name = "tokio-util" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "806fe8c2c87eccc8b3267cbae29ed3ab2d0bd37fca70ab622e46aaa9375ddb7d" +dependencies = [ + "bytes 1.4.0", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", + "tracing", +] + +[[package]] +name = "toml_datetime" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ab8ed2edee10b50132aed5f331333428b011c99402b5a534154ed15746f9622" + +[[package]] +name = "toml_edit" +version = "0.19.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "239410c8609e8125456927e6707163a3b1fdb40561e4b803bc041f466ccfdc13" +dependencies = [ + "indexmap", + "toml_datetime", + "winnow", +] + +[[package]] +name = "tower-service" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" + +[[package]] +name = "tracing" +version = "0.1.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" +dependencies = [ + "cfg-if 1.0.0", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f57e3ca2a01450b1a921183a9c9cbfda207fd822cef4ccb00a65402cbba7a74" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.15", +] + +[[package]] +name = "tracing-core" +version = "0.1.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24eb03ba0eab1fd845050058ce5e616558e8f8d8fca633e6b163fe25c797213a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "try-lock" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" + +[[package]] +name = "typenum" +version = "1.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba" + +[[package]] +name = "uint" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76f64bba2c53b04fcab63c01a7d7427eadc821e3bc48c34dc9ba29c501164b52" +dependencies = [ + "byteorder", + "crunchy", + "hex", + "static_assertions", +] + +[[package]] +name = "unicode-ident" +version = "1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5464a87b239f13a63a501f2701565754bae92d243d4bb7eb12f6d57d2269bf4" + +[[package]] +name = "unicode-normalization" +version = "0.1.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "unicode-segmentation" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36" + +[[package]] +name = "unicode-width" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b" + +[[package]] +name = "untrusted" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" + +[[package]] +name = "uuid" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4dad5567ad0cf5b760e5665964bec1b47dfd077ba8a2544b513f3556d3d239a2" +dependencies = [ + "getrandom 0.2.9", + "rand 0.8.5", + "serde", +] + +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + +[[package]] +name = "vec_map" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" + +[[package]] +name = "version_check" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" + +[[package]] +name = "want" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" +dependencies = [ + "log 0.4.17", + "try-lock", +] + +[[package]] +name = "wasi" +version = "0.9.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" + +[[package]] +name = "wasi" +version = "0.10.2+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" + +[[package]] +name = "wasi" +version = "0.11.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" + +[[package]] +name = "wasm-bindgen" +version = "0.2.80" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27370197c907c55e3f1a9fbe26f44e937fe6451368324e009cba39e139dc08ad" +dependencies = [ + "cfg-if 1.0.0", + "wasm-bindgen-macro", +] + +[[package]] +name = "wasm-bindgen-backend" +version = "0.2.80" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53e04185bfa3a779273da532f5025e33398409573f348985af9a1cbf3774d3f4" +dependencies = [ + "bumpalo", + "lazy_static", + "log 0.4.17", + "proc-macro2", + "quote", + "syn 1.0.109", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f741de44b75e14c35df886aff5f1eb73aa114fa5d4d00dcd37b5e01259bf3b2" +dependencies = [ + "cfg-if 1.0.0", + "js-sys", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.80" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17cae7ff784d7e83a2fe7611cfe766ecf034111b49deb850a3dc7699c08251f5" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.80" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99ec0dc7a4756fffc231aab1b9f2f578d23cd391390ab27f952ae0c9b3ece20b" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", + "wasm-bindgen-backend", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.80" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d554b7f530dee5964d9a9468d95c1f8b8acae4f282807e7d27d4b03099a46744" + +[[package]] +name = "wasm-bindgen-test" +version = "0.3.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4464b3f74729a25f42b1a0cd9e6a515d2f25001f3535a6cfaf35d34a4de3bab" +dependencies = [ + "console_error_panic_hook", + "js-sys", + "scoped-tls", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-bindgen-test-macro", +] + +[[package]] +name = "wasm-bindgen-test-macro" +version = "0.3.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a77c5a6f82cc6093a321ca5fb3dc9327fe51675d477b3799b4a9375bac3b7b4c" +dependencies = [ + "proc-macro2", + "quote", +] + +[[package]] +name = "wasm-timer" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f" +dependencies = [ + "futures 0.3.28", + "js-sys", + "parking_lot 0.11.2", + "pin-utils", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "web-sys" +version = "0.3.57" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b17e741662c70c8bd24ac5c5b18de314a2c26c32bf8346ee1e6f53de919c283" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "webpki" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f095d78192e208183081cc07bc5515ef55216397af48b873e5edcd72637fa1bd" +dependencies = [ + "ring", + "untrusted", +] + +[[package]] +name = "webpki-roots" +version = "0.22.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c71e40d7d2c34a5106301fb632274ca37242cd0c9d3e64dbece371a40a2d87" +dependencies = [ + "webpki", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" +dependencies = [ + "winapi", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "windows" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f" +dependencies = [ + "windows-targets 0.48.0", +] + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets 0.42.2", +] + +[[package]] +name = "windows-sys" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +dependencies = [ + "windows-targets 0.48.0", +] + +[[package]] +name = "windows-targets" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +dependencies = [ + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", +] + +[[package]] +name = "windows-targets" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b1eb6f0cd7c80c79759c929114ef071b87354ce476d9d94271031c0497adfd5" +dependencies = [ + "windows_aarch64_gnullvm 0.48.0", + "windows_aarch64_msvc 0.48.0", + "windows_i686_gnu 0.48.0", + "windows_i686_msvc 0.48.0", + "windows_x86_64_gnu 0.48.0", + "windows_x86_64_gnullvm 0.48.0", + "windows_x86_64_msvc 0.48.0", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3" + +[[package]] +name = "windows_i686_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" + +[[package]] +name = "windows_i686_gnu" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241" + +[[package]] +name = "windows_i686_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" + +[[package]] +name = "windows_i686_msvc" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" + +[[package]] +name = "winnow" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61de7bac303dc551fe038e2b3cef0f571087a47571ea6e79a87692ac99b99699" +dependencies = [ + "memchr", +] + +[[package]] +name = "wyz" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed" +dependencies = [ + "tap", +] + +[[package]] +name = "zeroize" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a0956f1ba7c7909bfb66c2e9e4124ab6f6482560f6628b5aaeba39207c9aad9" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.15", +] From 19bca5ca7b2eae0cb165fe71882c1fc7b465fafc Mon Sep 17 00:00:00 2001 From: ozkanonur Date: Thu, 11 May 2023 11:31:06 +0300 Subject: [PATCH 2/2] format CI files Signed-off-by: ozkanonur --- .github/dependabot.yml | 2 +- .github/workflows/adex-cli.yml | 69 ++- .github/workflows/dev-build.yml | 811 +++++++++++++------------- .github/workflows/fmt-and-lint.yml | 44 +- .github/workflows/release-build.yml | 712 +++++++++++----------- .github/workflows/test.yml | 169 +++--- .github/workflows/virustotal_scan.yml | 3 +- 7 files changed, 903 insertions(+), 907 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 563b2172b0..c104f0f5bf 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,4 +13,4 @@ updates: open-pull-requests-limit: 2 schedule: # By default, Dependabot checks for new versions on Monday at a random set time for the repository - interval: weekly \ No newline at end of file + interval: weekly diff --git a/.github/workflows/adex-cli.yml b/.github/workflows/adex-cli.yml index 1f5635c73e..a2b4332677 100644 --- a/.github/workflows/adex-cli.yml +++ b/.github/workflows/adex-cli.yml @@ -6,7 +6,7 @@ concurrency: cancel-in-progress: true env: - BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} jobs: code-check: @@ -16,27 +16,27 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - - name: pre scripts for ci container - run: | - git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API - echo "/bin" >> $GITHUB_PATH - echo "/usr/bin" >> $GITHUB_PATH - echo "/root/.cargo/bin" >> $GITHUB_PATH + - name: pre scripts for ci container + run: | + git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API + echo "/bin" >> $GITHUB_PATH + echo "/usr/bin" >> $GITHUB_PATH + echo "/root/.cargo/bin" >> $GITHUB_PATH - - name: Calculate commit hash for PR commit - if: github.event_name == 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV + - name: Calculate commit hash for PR commit + if: github.event_name == 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV - - name: Calculate commit hash for merge commit - if: github.event_name != 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV + - name: Calculate commit hash for merge commit + if: github.event_name != 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV - - 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 + - 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 build: timeout-minutes: 60 @@ -45,24 +45,23 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - - name: pre scripts for ci container - run: | - git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API - echo "/bin" >> $GITHUB_PATH - echo "/usr/bin" >> $GITHUB_PATH - echo "/root/.cargo/bin" >> $GITHUB_PATH + - name: pre scripts for ci container + run: | + git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API + echo "/bin" >> $GITHUB_PATH + echo "/usr/bin" >> $GITHUB_PATH + echo "/root/.cargo/bin" >> $GITHUB_PATH - - name: Calculate commit hash for PR commit - if: github.event_name == 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV + - name: Calculate commit hash for PR commit + if: github.event_name == 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV - - name: Calculate commit hash for merge commit - if: github.event_name != 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV + - name: Calculate commit hash for merge commit + if: github.event_name != 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV - - name: Start building - run: | - cargo build --manifest-path ./mm2src/adex_cli/Cargo.toml - \ No newline at end of file + - name: Start building + run: | + cargo build --manifest-path ./mm2src/adex_cli/Cargo.toml diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index c9c354ae01..82818d2e95 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -9,9 +9,9 @@ concurrency: cancel-in-progress: true env: - BRANCH_NAME: ${{ github.head_ref || github.ref_name }} - MANUAL_MM_VERSION: true - JEMALLOC_SYS_WITH_MALLOC_CONF: 'background_thread:true,narenas:1,tcache:false,dirty_decay_ms:0,muzzy_decay_ms:0,metadata_thp:auto' + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + MANUAL_MM_VERSION: true + JEMALLOC_SYS_WITH_MALLOC_CONF: "background_thread:true,narenas:1,tcache:false,dirty_decay_ms:0,muzzy_decay_ms:0,metadata_thp:auto" jobs: linux-x86-64: @@ -19,448 +19,447 @@ jobs: runs-on: ubuntu-latest container: komodoofficial/ci-container:latest steps: - - uses: actions/checkout@v3 - - - name: pre scripts for ci container - run: | - git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API - echo "/bin" >> $GITHUB_PATH - echo "/usr/bin" >> $GITHUB_PATH - echo "/root/.cargo/bin" >> $GITHUB_PATH - - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 - - - name: Calculate commit hash for PR commit - if: github.event_name == 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV - - - name: Calculate commit hash for merge commit - if: github.event_name != 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV - - - name: Build - run: | - rm -f ./MM_VERSION - echo $COMMIT_HASH > ./MM_VERSION - cargo build --bin mm2 --release - - - name: Compress build output - env: - AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} - if: ${{ env.AVAILABLE != '' }} - run: | - NAME="mm2_$COMMIT_HASH-linux-x86-64.zip" - zip $NAME target/release/mm2 -j - mkdir $BRANCH_NAME - mv $NAME ./$BRANCH_NAME/ - - - name: Upload output - env: - AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} - if: ${{ env.AVAILABLE != '' }} - uses: garygrossgarten/github-action-scp@release - with: - host: ${{ secrets.FILE_SERVER_HOST }} - username: ${{ secrets.FILE_SERVER_USERNAME }} - port: ${{ secrets.FILE_SERVER_PORT }} - privateKey: ${{ secrets.FILE_SERVER_KEY }} - local: ${{ env.BRANCH_NAME }} - remote: "/uploads/${{ env.BRANCH_NAME }}" - - - name: Login to dockerhub - if: github.event_name != 'pull_request' && github.ref == 'refs/heads/dev' - run: docker login --username ${{ secrets.DOCKER_HUB_USERNAME }} --password ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} docker.io - - - name: Build and push container image - if: github.event_name != 'pull_request' && github.ref == 'refs/heads/dev' - run: | - CONTAINER_TAG="dev-$COMMIT_HASH" - docker build -t komodoofficial/atomicdexapi:"$CONTAINER_TAG" -t komodoofficial/atomicdexapi:dev-latest -f .docker/Dockerfile.dev-release . - docker push komodoofficial/atomicdexapi:"$CONTAINER_TAG" - docker push komodoofficial/atomicdexapi:dev-latest + - uses: actions/checkout@v3 + + - name: pre scripts for ci container + run: | + git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API + echo "/bin" >> $GITHUB_PATH + echo "/usr/bin" >> $GITHUB_PATH + echo "/root/.cargo/bin" >> $GITHUB_PATH + + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 + + - name: Calculate commit hash for PR commit + if: github.event_name == 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV + + - name: Calculate commit hash for merge commit + if: github.event_name != 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV + + - name: Build + run: | + rm -f ./MM_VERSION + echo $COMMIT_HASH > ./MM_VERSION + cargo build --bin mm2 --release + + - name: Compress build output + env: + AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} + if: ${{ env.AVAILABLE != '' }} + run: | + NAME="mm2_$COMMIT_HASH-linux-x86-64.zip" + zip $NAME target/release/mm2 -j + mkdir $BRANCH_NAME + mv $NAME ./$BRANCH_NAME/ + + - name: Upload output + env: + AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} + if: ${{ env.AVAILABLE != '' }} + uses: garygrossgarten/github-action-scp@release + with: + host: ${{ secrets.FILE_SERVER_HOST }} + username: ${{ secrets.FILE_SERVER_USERNAME }} + port: ${{ secrets.FILE_SERVER_PORT }} + privateKey: ${{ secrets.FILE_SERVER_KEY }} + local: ${{ env.BRANCH_NAME }} + remote: "/uploads/${{ env.BRANCH_NAME }}" + + - name: Login to dockerhub + if: github.event_name != 'pull_request' && github.ref == 'refs/heads/dev' + run: docker login --username ${{ secrets.DOCKER_HUB_USERNAME }} --password ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} docker.io + + - name: Build and push container image + if: github.event_name != 'pull_request' && github.ref == 'refs/heads/dev' + run: | + CONTAINER_TAG="dev-$COMMIT_HASH" + docker build -t komodoofficial/atomicdexapi:"$CONTAINER_TAG" -t komodoofficial/atomicdexapi:dev-latest -f .docker/Dockerfile.dev-release . + docker push komodoofficial/atomicdexapi:"$CONTAINER_TAG" + docker push komodoofficial/atomicdexapi:dev-latest mac-x86-64: timeout-minutes: 60 runs-on: macos-latest steps: - - uses: actions/checkout@v3 - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 - - - name: Calculate commit hash for PR commit - if: github.event_name == 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV - - - name: Calculate commit hash for merge commit - if: github.event_name != 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV - - - name: Build - run: | - rm -f ./MM_VERSION - echo $COMMIT_HASH > ./MM_VERSION - cargo build --bin mm2 --release --target x86_64-apple-darwin - - - name: Compress build output - env: - AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} - if: ${{ env.AVAILABLE != '' }} - run: | - NAME="mm2_$COMMIT_HASH-mac-x86-64.zip" - zip $NAME target/x86_64-apple-darwin/release/mm2 -j - mkdir $BRANCH_NAME - mv $NAME ./$BRANCH_NAME/ - - - name: Upload output - env: - AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} - if: ${{ env.AVAILABLE != '' }} - uses: garygrossgarten/github-action-scp@release - with: - host: ${{ secrets.FILE_SERVER_HOST }} - username: ${{ secrets.FILE_SERVER_USERNAME }} - port: ${{ secrets.FILE_SERVER_PORT }} - privateKey: ${{ secrets.FILE_SERVER_KEY }} - local: ${{ env.BRANCH_NAME }} - remote: "/uploads/${{ env.BRANCH_NAME }}" + - uses: actions/checkout@v3 + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 + + - name: Calculate commit hash for PR commit + if: github.event_name == 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV + + - name: Calculate commit hash for merge commit + if: github.event_name != 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV + + - name: Build + run: | + rm -f ./MM_VERSION + echo $COMMIT_HASH > ./MM_VERSION + cargo build --bin mm2 --release --target x86_64-apple-darwin + + - name: Compress build output + env: + AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} + if: ${{ env.AVAILABLE != '' }} + run: | + NAME="mm2_$COMMIT_HASH-mac-x86-64.zip" + zip $NAME target/x86_64-apple-darwin/release/mm2 -j + mkdir $BRANCH_NAME + mv $NAME ./$BRANCH_NAME/ + + - name: Upload output + env: + AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} + if: ${{ env.AVAILABLE != '' }} + uses: garygrossgarten/github-action-scp@release + with: + host: ${{ secrets.FILE_SERVER_HOST }} + username: ${{ secrets.FILE_SERVER_USERNAME }} + port: ${{ secrets.FILE_SERVER_PORT }} + privateKey: ${{ secrets.FILE_SERVER_KEY }} + local: ${{ env.BRANCH_NAME }} + remote: "/uploads/${{ env.BRANCH_NAME }}" win-x86-64: timeout-minutes: 60 runs-on: windows-latest steps: - - uses: actions/checkout@v3 - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 - - - name: Calculate commit hash for PR commit - if: github.event_name == 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $Env:GITHUB_ENV - - - name: Calculate commit hash for merge commit - if: github.event_name != 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $Env:GITHUB_ENV - - - name: Build - run: | - if (test-path "./MM_VERSION") { - remove-item "./MM_VERSION" - } - echo $Env:COMMIT_HASH > ./MM_VERSION - cargo build --bin mm2 --release - - - name: Compress build output - env: - AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} - if: ${{ env.AVAILABLE != '' }} - run: | - $NAME="mm2_$Env:COMMIT_HASH-win-x86-64.zip" - 7z a $NAME .\target\release\mm2.exe .\target\release\*.dll - mkdir $Env:BRANCH_NAME - mv $NAME ./$Env:BRANCH_NAME/ - - - name: Upload output - env: - AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} - if: ${{ env.AVAILABLE != '' }} - uses: garygrossgarten/github-action-scp@release - with: - host: ${{ secrets.FILE_SERVER_HOST }} - username: ${{ secrets.FILE_SERVER_USERNAME }} - port: ${{ secrets.FILE_SERVER_PORT }} - privateKey: ${{ secrets.FILE_SERVER_KEY }} - local: ${{ env.BRANCH_NAME }} - remote: "/uploads/${{ env.BRANCH_NAME }}" + - uses: actions/checkout@v3 + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 + + - name: Calculate commit hash for PR commit + if: github.event_name == 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $Env:GITHUB_ENV + + - name: Calculate commit hash for merge commit + if: github.event_name != 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $Env:GITHUB_ENV + + - name: Build + run: | + if (test-path "./MM_VERSION") { + remove-item "./MM_VERSION" + } + echo $Env:COMMIT_HASH > ./MM_VERSION + cargo build --bin mm2 --release + + - name: Compress build output + env: + AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} + if: ${{ env.AVAILABLE != '' }} + run: | + $NAME="mm2_$Env:COMMIT_HASH-win-x86-64.zip" + 7z a $NAME .\target\release\mm2.exe .\target\release\*.dll + mkdir $Env:BRANCH_NAME + mv $NAME ./$Env:BRANCH_NAME/ + + - name: Upload output + env: + AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} + if: ${{ env.AVAILABLE != '' }} + uses: garygrossgarten/github-action-scp@release + with: + host: ${{ secrets.FILE_SERVER_HOST }} + username: ${{ secrets.FILE_SERVER_USERNAME }} + port: ${{ secrets.FILE_SERVER_PORT }} + privateKey: ${{ secrets.FILE_SERVER_KEY }} + local: ${{ env.BRANCH_NAME }} + remote: "/uploads/${{ env.BRANCH_NAME }}" mac-dylib-x86-64: timeout-minutes: 60 runs-on: macos-latest steps: - - uses: actions/checkout@v3 - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 - - - name: Calculate commit hash for PR commit - if: github.event_name == 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV - - - name: Calculate commit hash for merge commit - if: github.event_name != 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV - - - name: Build - run: | - rm -f ./MM_VERSION - echo $COMMIT_HASH > ./MM_VERSION - cargo rustc --target x86_64-apple-darwin --lib --release --package mm2_bin_lib --crate-type=staticlib - - - name: Compress build output - env: - AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} - if: ${{ env.AVAILABLE != '' }} - run: | - NAME="mm2_$COMMIT_HASH-mac-dylib-x86-64.zip" - mv target/x86_64-apple-darwin/release/libmm2lib.a target/x86_64-apple-darwin/release/libmm2.a - zip $NAME target/x86_64-apple-darwin/release/libmm2.a -j - mkdir $BRANCH_NAME - mv $NAME ./$BRANCH_NAME/ - - - name: Upload output - env: - AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} - if: ${{ env.AVAILABLE != '' }} - uses: garygrossgarten/github-action-scp@release - with: - host: ${{ secrets.FILE_SERVER_HOST }} - username: ${{ secrets.FILE_SERVER_USERNAME }} - port: ${{ secrets.FILE_SERVER_PORT }} - privateKey: ${{ secrets.FILE_SERVER_KEY }} - local: ${{ env.BRANCH_NAME }} - remote: "/uploads/${{ env.BRANCH_NAME }}" + - uses: actions/checkout@v3 + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 + + - name: Calculate commit hash for PR commit + if: github.event_name == 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV + + - name: Calculate commit hash for merge commit + if: github.event_name != 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV + + - name: Build + run: | + rm -f ./MM_VERSION + echo $COMMIT_HASH > ./MM_VERSION + cargo rustc --target x86_64-apple-darwin --lib --release --package mm2_bin_lib --crate-type=staticlib + + - name: Compress build output + env: + AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} + if: ${{ env.AVAILABLE != '' }} + run: | + NAME="mm2_$COMMIT_HASH-mac-dylib-x86-64.zip" + mv target/x86_64-apple-darwin/release/libmm2lib.a target/x86_64-apple-darwin/release/libmm2.a + zip $NAME target/x86_64-apple-darwin/release/libmm2.a -j + mkdir $BRANCH_NAME + mv $NAME ./$BRANCH_NAME/ + + - name: Upload output + env: + AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} + if: ${{ env.AVAILABLE != '' }} + uses: garygrossgarten/github-action-scp@release + with: + host: ${{ secrets.FILE_SERVER_HOST }} + username: ${{ secrets.FILE_SERVER_USERNAME }} + port: ${{ secrets.FILE_SERVER_PORT }} + privateKey: ${{ secrets.FILE_SERVER_KEY }} + local: ${{ env.BRANCH_NAME }} + remote: "/uploads/${{ env.BRANCH_NAME }}" wasm: timeout-minutes: 60 runs-on: ubuntu-latest container: komodoofficial/ci-container:latest steps: - - uses: actions/checkout@v3 - - - name: pre scripts for ci container - run: | - git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API - echo "/bin" >> $GITHUB_PATH - echo "/usr/bin" >> $GITHUB_PATH - echo "/root/.cargo/bin" >> $GITHUB_PATH - - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 - rustup target add wasm32-unknown-unknown - - - name: Install wasm-pack - run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | bash -s -- -y - - - name: Calculate commit hash for PR commit - if: github.event_name == 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV - - - name: Calculate commit hash for merge commit - if: github.event_name != 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV - - - name: Build - run: | - rm -f ./MM_VERSION - echo $COMMIT_HASH > ./MM_VERSION - wasm-pack build --release mm2src/mm2_bin_lib --target web --out-dir ../../target/target-wasm-release - - - name: Compress build output - env: - AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} - if: ${{ env.AVAILABLE != '' }} - run: | - NAME="mm2_$COMMIT_HASH-wasm.zip" - (cd ./target/target-wasm-release && zip -r - .) > $NAME - mkdir $BRANCH_NAME - mv $NAME ./$BRANCH_NAME/ - - - name: Upload output - env: - AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} - if: ${{ env.AVAILABLE != '' }} - uses: garygrossgarten/github-action-scp@release - with: - host: ${{ secrets.FILE_SERVER_HOST }} - username: ${{ secrets.FILE_SERVER_USERNAME }} - port: ${{ secrets.FILE_SERVER_PORT }} - privateKey: ${{ secrets.FILE_SERVER_KEY }} - local: ${{ env.BRANCH_NAME }} - remote: "/uploads/${{ env.BRANCH_NAME }}" + - uses: actions/checkout@v3 + + - name: pre scripts for ci container + run: | + git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API + echo "/bin" >> $GITHUB_PATH + echo "/usr/bin" >> $GITHUB_PATH + echo "/root/.cargo/bin" >> $GITHUB_PATH + + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 + rustup target add wasm32-unknown-unknown + + - name: Install wasm-pack + run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | bash -s -- -y + + - name: Calculate commit hash for PR commit + if: github.event_name == 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV + + - name: Calculate commit hash for merge commit + if: github.event_name != 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV + + - name: Build + run: | + rm -f ./MM_VERSION + echo $COMMIT_HASH > ./MM_VERSION + wasm-pack build --release mm2src/mm2_bin_lib --target web --out-dir ../../target/target-wasm-release + + - name: Compress build output + env: + AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} + if: ${{ env.AVAILABLE != '' }} + run: | + NAME="mm2_$COMMIT_HASH-wasm.zip" + (cd ./target/target-wasm-release && zip -r - .) > $NAME + mkdir $BRANCH_NAME + mv $NAME ./$BRANCH_NAME/ + + - name: Upload output + env: + AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} + if: ${{ env.AVAILABLE != '' }} + uses: garygrossgarten/github-action-scp@release + with: + host: ${{ secrets.FILE_SERVER_HOST }} + username: ${{ secrets.FILE_SERVER_USERNAME }} + port: ${{ secrets.FILE_SERVER_PORT }} + privateKey: ${{ secrets.FILE_SERVER_KEY }} + local: ${{ env.BRANCH_NAME }} + remote: "/uploads/${{ env.BRANCH_NAME }}" ios-aarch64: timeout-minutes: 60 runs-on: macos-latest steps: - - uses: actions/checkout@v3 - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 - rustup target add aarch64-apple-ios - - - name: Calculate commit hash for PR commit - if: github.event_name == 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV - - - name: Calculate commit hash for merge commit - if: github.event_name != 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV - - - name: Build - run: | - rm -f ./MM_VERSION - echo $COMMIT_HASH > ./MM_VERSION - cargo rustc --target aarch64-apple-ios --lib --release --package mm2_bin_lib --crate-type=staticlib - - - name: Compress build output - env: - AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} - if: ${{ env.AVAILABLE != '' }} - run: | - NAME="mm2_$COMMIT_HASH-ios-aarch64.zip" - mv target/aarch64-apple-ios/release/libmm2lib.a target/aarch64-apple-ios/release/libmm2.a - zip $NAME target/aarch64-apple-ios/release/libmm2.a -j - mkdir $BRANCH_NAME - mv $NAME ./$BRANCH_NAME/ - - - name: Upload output - env: - AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} - if: ${{ env.AVAILABLE != '' }} - uses: garygrossgarten/github-action-scp@release - with: - host: ${{ secrets.FILE_SERVER_HOST }} - username: ${{ secrets.FILE_SERVER_USERNAME }} - port: ${{ secrets.FILE_SERVER_PORT }} - privateKey: ${{ secrets.FILE_SERVER_KEY }} - local: ${{ env.BRANCH_NAME }} - remote: "/uploads/${{ env.BRANCH_NAME }}" + - uses: actions/checkout@v3 + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 + rustup target add aarch64-apple-ios + + - name: Calculate commit hash for PR commit + if: github.event_name == 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV + + - name: Calculate commit hash for merge commit + if: github.event_name != 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV + + - name: Build + run: | + rm -f ./MM_VERSION + echo $COMMIT_HASH > ./MM_VERSION + cargo rustc --target aarch64-apple-ios --lib --release --package mm2_bin_lib --crate-type=staticlib + + - name: Compress build output + env: + AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} + if: ${{ env.AVAILABLE != '' }} + run: | + NAME="mm2_$COMMIT_HASH-ios-aarch64.zip" + mv target/aarch64-apple-ios/release/libmm2lib.a target/aarch64-apple-ios/release/libmm2.a + zip $NAME target/aarch64-apple-ios/release/libmm2.a -j + mkdir $BRANCH_NAME + mv $NAME ./$BRANCH_NAME/ + + - name: Upload output + env: + AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} + if: ${{ env.AVAILABLE != '' }} + uses: garygrossgarten/github-action-scp@release + with: + host: ${{ secrets.FILE_SERVER_HOST }} + username: ${{ secrets.FILE_SERVER_USERNAME }} + port: ${{ secrets.FILE_SERVER_PORT }} + privateKey: ${{ secrets.FILE_SERVER_KEY }} + local: ${{ env.BRANCH_NAME }} + remote: "/uploads/${{ env.BRANCH_NAME }}" android-aarch64: timeout-minutes: 60 runs-on: ubuntu-latest container: komodoofficial/ci-container:latest steps: - - uses: actions/checkout@v3 - - - name: pre scripts for ci container - run: | - git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API - echo "/bin" >> $GITHUB_PATH - echo "/usr/bin" >> $GITHUB_PATH - echo "/root/.cargo/bin" >> $GITHUB_PATH - - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 - rustup target add aarch64-linux-android - - - name: Setup NDK - run: ./scripts/ci/android-ndk.sh x86 21 - - - name: Calculate commit hash for PR commit - if: github.event_name == 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV - - - name: Calculate commit hash for merge commit - if: github.event_name != 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV - - - name: Build - run: | - rm -f ./MM_VERSION - echo $COMMIT_HASH > ./MM_VERSION - - export PATH=$PATH:/android-ndk/bin - CC_aarch64_linux_android=aarch64-linux-android21-clang CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=aarch64-linux-android21-clang cargo rustc --target=aarch64-linux-android --lib --release --crate-type=staticlib --package mm2_bin_lib - - - name: Compress build output - env: - AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} - if: ${{ env.AVAILABLE != '' }} - run: | - NAME="mm2_$COMMIT_HASH-android-aarch64.zip" - mv target/aarch64-linux-android/release/libmm2lib.a target/aarch64-linux-android/release/libmm2.a - zip $NAME target/aarch64-linux-android/release/libmm2.a -j - mkdir $BRANCH_NAME - mv $NAME ./$BRANCH_NAME/ - - - name: Upload output - env: - AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} - if: ${{ env.AVAILABLE != '' }} - uses: garygrossgarten/github-action-scp@release - with: - host: ${{ secrets.FILE_SERVER_HOST }} - username: ${{ secrets.FILE_SERVER_USERNAME }} - port: ${{ secrets.FILE_SERVER_PORT }} - privateKey: ${{ secrets.FILE_SERVER_KEY }} - local: ${{ env.BRANCH_NAME }} - remote: "/uploads/${{ env.BRANCH_NAME }}" + - uses: actions/checkout@v3 + + - name: pre scripts for ci container + run: | + git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API + echo "/bin" >> $GITHUB_PATH + echo "/usr/bin" >> $GITHUB_PATH + echo "/root/.cargo/bin" >> $GITHUB_PATH + + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 + rustup target add aarch64-linux-android + + - name: Setup NDK + run: ./scripts/ci/android-ndk.sh x86 21 + + - name: Calculate commit hash for PR commit + if: github.event_name == 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV + + - name: Calculate commit hash for merge commit + if: github.event_name != 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV + + - name: Build + run: | + rm -f ./MM_VERSION + echo $COMMIT_HASH > ./MM_VERSION + + export PATH=$PATH:/android-ndk/bin + CC_aarch64_linux_android=aarch64-linux-android21-clang CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=aarch64-linux-android21-clang cargo rustc --target=aarch64-linux-android --lib --release --crate-type=staticlib --package mm2_bin_lib + + - name: Compress build output + env: + AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} + if: ${{ env.AVAILABLE != '' }} + run: | + NAME="mm2_$COMMIT_HASH-android-aarch64.zip" + mv target/aarch64-linux-android/release/libmm2lib.a target/aarch64-linux-android/release/libmm2.a + zip $NAME target/aarch64-linux-android/release/libmm2.a -j + mkdir $BRANCH_NAME + mv $NAME ./$BRANCH_NAME/ + + - name: Upload output + env: + AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} + if: ${{ env.AVAILABLE != '' }} + uses: garygrossgarten/github-action-scp@release + with: + host: ${{ secrets.FILE_SERVER_HOST }} + username: ${{ secrets.FILE_SERVER_USERNAME }} + port: ${{ secrets.FILE_SERVER_PORT }} + privateKey: ${{ secrets.FILE_SERVER_KEY }} + local: ${{ env.BRANCH_NAME }} + remote: "/uploads/${{ env.BRANCH_NAME }}" android-armv7: timeout-minutes: 60 runs-on: ubuntu-latest container: komodoofficial/ci-container:latest steps: - - uses: actions/checkout@v3 - - - name: pre scripts for ci container - run: | - git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API - echo "/bin" >> $GITHUB_PATH - echo "/usr/bin" >> $GITHUB_PATH - echo "/root/.cargo/bin" >> $GITHUB_PATH - - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 - rustup target add armv7-linux-androideabi - - - name: Setup NDK - run: ./scripts/ci/android-ndk.sh x86 21 - - - name: Calculate commit hash for PR commit - if: github.event_name == 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV - - - name: Calculate commit hash for merge commit - if: github.event_name != 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV - - - name: Build - run: | - rm -f ./MM_VERSION - echo $COMMIT_HASH > ./MM_VERSION - - export PATH=$PATH:/android-ndk/bin - CC_armv7_linux_androideabi=armv7a-linux-androideabi21-clang CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER=armv7a-linux-androideabi21-clang cargo rustc --target=armv7-linux-androideabi --lib --release --crate-type=staticlib --package mm2_bin_lib - - - name: Compress build output - env: - AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} - if: ${{ env.AVAILABLE != '' }} - run: | - NAME="mm2_$COMMIT_HASH-android-armv7.zip" - mv target/armv7-linux-androideabi/release/libmm2lib.a target/armv7-linux-androideabi/release/libmm2.a - zip $NAME target/armv7-linux-androideabi/release/libmm2.a -j - mkdir $BRANCH_NAME - mv $NAME ./$BRANCH_NAME/ - - - name: Upload output - env: - AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} - if: ${{ env.AVAILABLE != '' }} - uses: garygrossgarten/github-action-scp@release - with: - host: ${{ secrets.FILE_SERVER_HOST }} - username: ${{ secrets.FILE_SERVER_USERNAME }} - port: ${{ secrets.FILE_SERVER_PORT }} - privateKey: ${{ secrets.FILE_SERVER_KEY }} - local: ${{ env.BRANCH_NAME }} - remote: "/uploads/${{ env.BRANCH_NAME }}" + - uses: actions/checkout@v3 + - name: pre scripts for ci container + run: | + git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API + echo "/bin" >> $GITHUB_PATH + echo "/usr/bin" >> $GITHUB_PATH + echo "/root/.cargo/bin" >> $GITHUB_PATH + + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 + rustup target add armv7-linux-androideabi + + - name: Setup NDK + run: ./scripts/ci/android-ndk.sh x86 21 + + - name: Calculate commit hash for PR commit + if: github.event_name == 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV + + - name: Calculate commit hash for merge commit + if: github.event_name != 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV + + - name: Build + run: | + rm -f ./MM_VERSION + echo $COMMIT_HASH > ./MM_VERSION + + export PATH=$PATH:/android-ndk/bin + CC_armv7_linux_androideabi=armv7a-linux-androideabi21-clang CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER=armv7a-linux-androideabi21-clang cargo rustc --target=armv7-linux-androideabi --lib --release --crate-type=staticlib --package mm2_bin_lib + + - name: Compress build output + env: + AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} + if: ${{ env.AVAILABLE != '' }} + run: | + NAME="mm2_$COMMIT_HASH-android-armv7.zip" + mv target/armv7-linux-androideabi/release/libmm2lib.a target/armv7-linux-androideabi/release/libmm2.a + zip $NAME target/armv7-linux-androideabi/release/libmm2.a -j + mkdir $BRANCH_NAME + mv $NAME ./$BRANCH_NAME/ + + - name: Upload output + env: + AVAILABLE: ${{ secrets.FILE_SERVER_KEY }} + if: ${{ env.AVAILABLE != '' }} + uses: garygrossgarten/github-action-scp@release + with: + host: ${{ secrets.FILE_SERVER_HOST }} + username: ${{ secrets.FILE_SERVER_USERNAME }} + port: ${{ secrets.FILE_SERVER_PORT }} + privateKey: ${{ secrets.FILE_SERVER_KEY }} + local: ${{ env.BRANCH_NAME }} + remote: "/uploads/${{ env.BRANCH_NAME }}" deployment-commitment: if: github.event_name != 'pull_request' && github.ref == 'refs/heads/dev' diff --git a/.github/workflows/fmt-and-lint.yml b/.github/workflows/fmt-and-lint.yml index 2eb992bc8b..b00adec115 100644 --- a/.github/workflows/fmt-and-lint.yml +++ b/.github/workflows/fmt-and-lint.yml @@ -13,34 +13,34 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] steps: - - uses: actions/checkout@v3 - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal --component rustfmt clippy - rustup default nightly-2022-10-29 + - uses: actions/checkout@v3 + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal --component rustfmt clippy + rustup default nightly-2022-10-29 - - name: Install OS dependencies - run: | - sudo apt-get update - sudo apt-get -y install libudev-dev - if: matrix.os == 'ubuntu-latest' + - name: Install OS dependencies + run: | + sudo apt-get update + sudo apt-get -y install libudev-dev + if: matrix.os == 'ubuntu-latest' - - name: fmt check - run: cargo fmt -- --check + - name: fmt check + run: cargo fmt -- --check - - name: x86-64 code lint - run: cargo clippy --all-targets --all-features -- --D warnings + - name: x86-64 code lint + run: cargo clippy --all-targets --all-features -- --D warnings wasm-lint: timeout-minutes: 45 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal --component clippy - rustup default nightly-2022-10-29 - rustup target add wasm32-unknown-unknown + - uses: actions/checkout@v3 + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal --component clippy + rustup default nightly-2022-10-29 + rustup target add wasm32-unknown-unknown - - name: wasm code lint - run: cargo clippy --target wasm32-unknown-unknown -- --D warnings + - name: wasm code lint + run: cargo clippy --target wasm32-unknown-unknown -- --D warnings diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 482b426ce3..c97b4d2f1c 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -9,9 +9,9 @@ concurrency: cancel-in-progress: true env: - BRANCH_NAME: ${{ github.head_ref || github.ref_name }} - MANUAL_MM_VERSION: true - JEMALLOC_SYS_WITH_MALLOC_CONF: 'background_thread:true,narenas:1,tcache:false,dirty_decay_ms:0,muzzy_decay_ms:0,metadata_thp:auto' + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + MANUAL_MM_VERSION: true + JEMALLOC_SYS_WITH_MALLOC_CONF: "background_thread:true,narenas:1,tcache:false,dirty_decay_ms:0,muzzy_decay_ms:0,metadata_thp:auto" jobs: linux-x86-64: @@ -19,394 +19,394 @@ jobs: runs-on: ubuntu-latest container: komodoofficial/ci-container:latest steps: - - uses: actions/checkout@v3 - - - name: pre scripts for ci container - run: | - git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API - echo "/bin" >> $GITHUB_PATH - echo "/usr/bin" >> $GITHUB_PATH - echo "/root/.cargo/bin" >> $GITHUB_PATH - - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 - - - name: Calculate commit hash for PR commit - if: github.event_name == 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV - - - name: Calculate commit hash for merge commit - if: github.event_name != 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV - - - name: Build - run: | - rm -f ./MM_VERSION - echo $COMMIT_HASH > ./MM_VERSION - cargo build --bin mm2 --release - - - name: Compress build output - run: | - NAME="mm2_$COMMIT_HASH-linux-x86-64.zip" - zip $NAME target/release/mm2 -j - mkdir $BRANCH_NAME - mv $NAME ./$BRANCH_NAME/ - - - name: Upload output - uses: garygrossgarten/github-action-scp@release - with: - host: ${{ secrets.FILE_SERVER_HOST }} - username: ${{ secrets.FILE_SERVER_USERNAME }} - port: ${{ secrets.FILE_SERVER_PORT }} - privateKey: ${{ secrets.FILE_SERVER_KEY }} - local: ${{ env.BRANCH_NAME }} - remote: "/uploads/${{ env.BRANCH_NAME }}" - - - name: Login to dockerhub - run: docker login --username ${{ secrets.DOCKER_HUB_USERNAME }} --password ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} docker.io - - - name: Build and push container image - run: | - export CONTAINER_TAG=$(./target/release/mm2 --version | awk '{print $3}') - docker build -t komodoofficial/atomicdexapi:"$CONTAINER_TAG" -t komodoofficial/atomicdexapi:main-latest -f .docker/Dockerfile.release . - docker push komodoofficial/atomicdexapi:"$CONTAINER_TAG" - docker push komodoofficial/atomicdexapi:main-latest + - uses: actions/checkout@v3 + + - name: pre scripts for ci container + run: | + git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API + echo "/bin" >> $GITHUB_PATH + echo "/usr/bin" >> $GITHUB_PATH + echo "/root/.cargo/bin" >> $GITHUB_PATH + + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 + + - name: Calculate commit hash for PR commit + if: github.event_name == 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV + + - name: Calculate commit hash for merge commit + if: github.event_name != 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV + + - name: Build + run: | + rm -f ./MM_VERSION + echo $COMMIT_HASH > ./MM_VERSION + cargo build --bin mm2 --release + + - name: Compress build output + run: | + NAME="mm2_$COMMIT_HASH-linux-x86-64.zip" + zip $NAME target/release/mm2 -j + mkdir $BRANCH_NAME + mv $NAME ./$BRANCH_NAME/ + + - name: Upload output + uses: garygrossgarten/github-action-scp@release + with: + host: ${{ secrets.FILE_SERVER_HOST }} + username: ${{ secrets.FILE_SERVER_USERNAME }} + port: ${{ secrets.FILE_SERVER_PORT }} + privateKey: ${{ secrets.FILE_SERVER_KEY }} + local: ${{ env.BRANCH_NAME }} + remote: "/uploads/${{ env.BRANCH_NAME }}" + + - name: Login to dockerhub + run: docker login --username ${{ secrets.DOCKER_HUB_USERNAME }} --password ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} docker.io + + - name: Build and push container image + run: | + export CONTAINER_TAG=$(./target/release/mm2 --version | awk '{print $3}') + docker build -t komodoofficial/atomicdexapi:"$CONTAINER_TAG" -t komodoofficial/atomicdexapi:main-latest -f .docker/Dockerfile.release . + docker push komodoofficial/atomicdexapi:"$CONTAINER_TAG" + docker push komodoofficial/atomicdexapi:main-latest mac-x86-64: timeout-minutes: 60 runs-on: macos-latest steps: - - uses: actions/checkout@v3 - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 - - - name: Calculate commit hash for PR commit - if: github.event_name == 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV - - - name: Calculate commit hash for merge commit - if: github.event_name != 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV - - - name: Build - run: | - rm -f ./MM_VERSION - echo $COMMIT_HASH > ./MM_VERSION - cargo build --bin mm2 --release --target x86_64-apple-darwin - - - name: Compress build output - run: | - NAME="mm2_$COMMIT_HASH-mac-x86-64.zip" - zip $NAME target/x86_64-apple-darwin/release/mm2 -j - mkdir $BRANCH_NAME - mv $NAME ./$BRANCH_NAME/ - - - name: Upload output - uses: garygrossgarten/github-action-scp@release - with: - host: ${{ secrets.FILE_SERVER_HOST }} - username: ${{ secrets.FILE_SERVER_USERNAME }} - port: ${{ secrets.FILE_SERVER_PORT }} - privateKey: ${{ secrets.FILE_SERVER_KEY }} - local: ${{ env.BRANCH_NAME }} - remote: "/uploads/${{ env.BRANCH_NAME }}" + - uses: actions/checkout@v3 + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 + + - name: Calculate commit hash for PR commit + if: github.event_name == 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV + + - name: Calculate commit hash for merge commit + if: github.event_name != 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV + + - name: Build + run: | + rm -f ./MM_VERSION + echo $COMMIT_HASH > ./MM_VERSION + cargo build --bin mm2 --release --target x86_64-apple-darwin + + - name: Compress build output + run: | + NAME="mm2_$COMMIT_HASH-mac-x86-64.zip" + zip $NAME target/x86_64-apple-darwin/release/mm2 -j + mkdir $BRANCH_NAME + mv $NAME ./$BRANCH_NAME/ + + - name: Upload output + uses: garygrossgarten/github-action-scp@release + with: + host: ${{ secrets.FILE_SERVER_HOST }} + username: ${{ secrets.FILE_SERVER_USERNAME }} + port: ${{ secrets.FILE_SERVER_PORT }} + privateKey: ${{ secrets.FILE_SERVER_KEY }} + local: ${{ env.BRANCH_NAME }} + remote: "/uploads/${{ env.BRANCH_NAME }}" win-x86-64: timeout-minutes: 60 runs-on: windows-latest steps: - - uses: actions/checkout@v3 - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 - - - name: Calculate commit hash for PR commit - if: github.event_name == 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $Env:GITHUB_ENV - - - name: Calculate commit hash for merge commit - if: github.event_name != 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $Env:GITHUB_ENV - - - name: Build - run: | - if (test-path "./MM_VERSION") { - remove-item "./MM_VERSION" - } - echo $Env:COMMIT_HASH > ./MM_VERSION - cargo build --bin mm2 --release - - - name: Compress build output - run: | - $NAME="mm2_$Env:COMMIT_HASH-win-x86-64.zip" - 7z a $NAME .\target\release\mm2.exe .\target\release\*.dll - mkdir $Env:BRANCH_NAME - mv $NAME ./$Env:BRANCH_NAME/ - - - name: Upload output - uses: garygrossgarten/github-action-scp@release - with: - host: ${{ secrets.FILE_SERVER_HOST }} - username: ${{ secrets.FILE_SERVER_USERNAME }} - port: ${{ secrets.FILE_SERVER_PORT }} - privateKey: ${{ secrets.FILE_SERVER_KEY }} - local: ${{ env.BRANCH_NAME }} - remote: "/uploads/${{ env.BRANCH_NAME }}" + - uses: actions/checkout@v3 + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 + + - name: Calculate commit hash for PR commit + if: github.event_name == 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $Env:GITHUB_ENV + + - name: Calculate commit hash for merge commit + if: github.event_name != 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $Env:GITHUB_ENV + + - name: Build + run: | + if (test-path "./MM_VERSION") { + remove-item "./MM_VERSION" + } + echo $Env:COMMIT_HASH > ./MM_VERSION + cargo build --bin mm2 --release + + - name: Compress build output + run: | + $NAME="mm2_$Env:COMMIT_HASH-win-x86-64.zip" + 7z a $NAME .\target\release\mm2.exe .\target\release\*.dll + mkdir $Env:BRANCH_NAME + mv $NAME ./$Env:BRANCH_NAME/ + + - name: Upload output + uses: garygrossgarten/github-action-scp@release + with: + host: ${{ secrets.FILE_SERVER_HOST }} + username: ${{ secrets.FILE_SERVER_USERNAME }} + port: ${{ secrets.FILE_SERVER_PORT }} + privateKey: ${{ secrets.FILE_SERVER_KEY }} + local: ${{ env.BRANCH_NAME }} + remote: "/uploads/${{ env.BRANCH_NAME }}" mac-dylib-x86-64: timeout-minutes: 60 runs-on: macos-latest steps: - - uses: actions/checkout@v3 - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 - - - name: Calculate commit hash for PR commit - if: github.event_name == 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV - - - name: Calculate commit hash for merge commit - if: github.event_name != 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV - - - name: Build - run: | - rm -f ./MM_VERSION - echo $COMMIT_HASH > ./MM_VERSION - cargo rustc --target x86_64-apple-darwin --lib --release --package mm2_bin_lib --crate-type=staticlib - - - name: Compress build output - run: | - NAME="mm2_$COMMIT_HASH-mac-dylib-x86-64.zip" - mv target/x86_64-apple-darwin/release/libmm2lib.a target/x86_64-apple-darwin/release/libmm2.a - zip $NAME target/x86_64-apple-darwin/release/libmm2.a -j - mkdir $BRANCH_NAME - mv $NAME ./$BRANCH_NAME/ - - - name: Upload output - uses: garygrossgarten/github-action-scp@release - with: - host: ${{ secrets.FILE_SERVER_HOST }} - username: ${{ secrets.FILE_SERVER_USERNAME }} - port: ${{ secrets.FILE_SERVER_PORT }} - privateKey: ${{ secrets.FILE_SERVER_KEY }} - local: ${{ env.BRANCH_NAME }} - remote: "/uploads/${{ env.BRANCH_NAME }}" + - uses: actions/checkout@v3 + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 + + - name: Calculate commit hash for PR commit + if: github.event_name == 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV + + - name: Calculate commit hash for merge commit + if: github.event_name != 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV + + - name: Build + run: | + rm -f ./MM_VERSION + echo $COMMIT_HASH > ./MM_VERSION + cargo rustc --target x86_64-apple-darwin --lib --release --package mm2_bin_lib --crate-type=staticlib + + - name: Compress build output + run: | + NAME="mm2_$COMMIT_HASH-mac-dylib-x86-64.zip" + mv target/x86_64-apple-darwin/release/libmm2lib.a target/x86_64-apple-darwin/release/libmm2.a + zip $NAME target/x86_64-apple-darwin/release/libmm2.a -j + mkdir $BRANCH_NAME + mv $NAME ./$BRANCH_NAME/ + + - name: Upload output + uses: garygrossgarten/github-action-scp@release + with: + host: ${{ secrets.FILE_SERVER_HOST }} + username: ${{ secrets.FILE_SERVER_USERNAME }} + port: ${{ secrets.FILE_SERVER_PORT }} + privateKey: ${{ secrets.FILE_SERVER_KEY }} + local: ${{ env.BRANCH_NAME }} + remote: "/uploads/${{ env.BRANCH_NAME }}" wasm: timeout-minutes: 60 runs-on: ubuntu-latest container: komodoofficial/ci-container:latest steps: - - uses: actions/checkout@v3 - - - name: pre scripts for ci container - run: | - git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API - echo "/bin" >> $GITHUB_PATH - echo "/usr/bin" >> $GITHUB_PATH - echo "/root/.cargo/bin" >> $GITHUB_PATH - - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 - rustup target add wasm32-unknown-unknown - - - name: Install wasm-pack - run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | bash -s -- -y - - - name: Calculate commit hash for PR commit - if: github.event_name == 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV - - - name: Calculate commit hash for merge commit - if: github.event_name != 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV - - - name: Build - run: | - rm -f ./MM_VERSION - echo $COMMIT_HASH > ./MM_VERSION - wasm-pack build --release mm2src/mm2_bin_lib --target web --out-dir ../../target/target-wasm-release - - - name: Compress build output - run: | - NAME="mm2_$COMMIT_HASH-wasm.zip" - (cd ./target/target-wasm-release && zip -r - .) > $NAME - mkdir $BRANCH_NAME - mv $NAME ./$BRANCH_NAME/ - - - name: Upload output - uses: garygrossgarten/github-action-scp@release - with: - host: ${{ secrets.FILE_SERVER_HOST }} - username: ${{ secrets.FILE_SERVER_USERNAME }} - port: ${{ secrets.FILE_SERVER_PORT }} - privateKey: ${{ secrets.FILE_SERVER_KEY }} - local: ${{ env.BRANCH_NAME }} - remote: "/uploads/${{ env.BRANCH_NAME }}" + - uses: actions/checkout@v3 + + - name: pre scripts for ci container + run: | + git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API + echo "/bin" >> $GITHUB_PATH + echo "/usr/bin" >> $GITHUB_PATH + echo "/root/.cargo/bin" >> $GITHUB_PATH + + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 + rustup target add wasm32-unknown-unknown + + - name: Install wasm-pack + run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | bash -s -- -y + + - name: Calculate commit hash for PR commit + if: github.event_name == 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV + + - name: Calculate commit hash for merge commit + if: github.event_name != 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV + + - name: Build + run: | + rm -f ./MM_VERSION + echo $COMMIT_HASH > ./MM_VERSION + wasm-pack build --release mm2src/mm2_bin_lib --target web --out-dir ../../target/target-wasm-release + + - name: Compress build output + run: | + NAME="mm2_$COMMIT_HASH-wasm.zip" + (cd ./target/target-wasm-release && zip -r - .) > $NAME + mkdir $BRANCH_NAME + mv $NAME ./$BRANCH_NAME/ + + - name: Upload output + uses: garygrossgarten/github-action-scp@release + with: + host: ${{ secrets.FILE_SERVER_HOST }} + username: ${{ secrets.FILE_SERVER_USERNAME }} + port: ${{ secrets.FILE_SERVER_PORT }} + privateKey: ${{ secrets.FILE_SERVER_KEY }} + local: ${{ env.BRANCH_NAME }} + remote: "/uploads/${{ env.BRANCH_NAME }}" ios-aarch64: timeout-minutes: 60 runs-on: macos-latest steps: - - uses: actions/checkout@v3 - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 - rustup target add aarch64-apple-ios - - - name: Calculate commit hash for PR commit - if: github.event_name == 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV - - - name: Calculate commit hash for merge commit - if: github.event_name != 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV - - - name: Build - run: | - rm -f ./MM_VERSION - echo $COMMIT_HASH > ./MM_VERSION - cargo rustc --target aarch64-apple-ios --lib --release --package mm2_bin_lib --crate-type=staticlib - - - name: Compress build output - run: | - NAME="mm2_$COMMIT_HASH-ios-aarch64.zip" - mv target/aarch64-apple-ios/release/libmm2lib.a target/aarch64-apple-ios/release/libmm2.a - zip $NAME target/aarch64-apple-ios/release/libmm2.a -j - mkdir $BRANCH_NAME - mv $NAME ./$BRANCH_NAME/ - - - name: Upload output - uses: garygrossgarten/github-action-scp@release - with: - host: ${{ secrets.FILE_SERVER_HOST }} - username: ${{ secrets.FILE_SERVER_USERNAME }} - port: ${{ secrets.FILE_SERVER_PORT }} - privateKey: ${{ secrets.FILE_SERVER_KEY }} - local: ${{ env.BRANCH_NAME }} - remote: "/uploads/${{ env.BRANCH_NAME }}" + - uses: actions/checkout@v3 + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 + rustup target add aarch64-apple-ios + + - name: Calculate commit hash for PR commit + if: github.event_name == 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV + + - name: Calculate commit hash for merge commit + if: github.event_name != 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV + + - name: Build + run: | + rm -f ./MM_VERSION + echo $COMMIT_HASH > ./MM_VERSION + cargo rustc --target aarch64-apple-ios --lib --release --package mm2_bin_lib --crate-type=staticlib + + - name: Compress build output + run: | + NAME="mm2_$COMMIT_HASH-ios-aarch64.zip" + mv target/aarch64-apple-ios/release/libmm2lib.a target/aarch64-apple-ios/release/libmm2.a + zip $NAME target/aarch64-apple-ios/release/libmm2.a -j + mkdir $BRANCH_NAME + mv $NAME ./$BRANCH_NAME/ + + - name: Upload output + uses: garygrossgarten/github-action-scp@release + with: + host: ${{ secrets.FILE_SERVER_HOST }} + username: ${{ secrets.FILE_SERVER_USERNAME }} + port: ${{ secrets.FILE_SERVER_PORT }} + privateKey: ${{ secrets.FILE_SERVER_KEY }} + local: ${{ env.BRANCH_NAME }} + remote: "/uploads/${{ env.BRANCH_NAME }}" android-aarch64: timeout-minutes: 60 runs-on: ubuntu-latest container: komodoofficial/ci-container:latest steps: - - uses: actions/checkout@v3 - - - name: pre scripts for ci container - run: | - git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API - echo "/bin" >> $GITHUB_PATH - echo "/usr/bin" >> $GITHUB_PATH - echo "/root/.cargo/bin" >> $GITHUB_PATH - - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 - rustup target add aarch64-linux-android - - - name: Setup NDK - run: ./scripts/ci/android-ndk.sh x86 21 - - - name: Calculate commit hash for PR commit - if: github.event_name == 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV - - - name: Calculate commit hash for merge commit - if: github.event_name != 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV - - - name: Build - run: | - rm -f ./MM_VERSION - echo $COMMIT_HASH > ./MM_VERSION - - export PATH=$PATH:/android-ndk/bin - CC_aarch64_linux_android=aarch64-linux-android21-clang CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=aarch64-linux-android21-clang cargo rustc --target=aarch64-linux-android --lib --release --crate-type=staticlib --package mm2_bin_lib - - - name: Compress build output - run: | - NAME="mm2_$COMMIT_HASH-android-aarch64.zip" - mv target/aarch64-linux-android/release/libmm2lib.a target/aarch64-linux-android/release/libmm2.a - zip $NAME target/aarch64-linux-android/release/libmm2.a -j - mkdir $BRANCH_NAME - mv $NAME ./$BRANCH_NAME/ - - - name: Upload output - uses: garygrossgarten/github-action-scp@release - with: - host: ${{ secrets.FILE_SERVER_HOST }} - username: ${{ secrets.FILE_SERVER_USERNAME }} - port: ${{ secrets.FILE_SERVER_PORT }} - privateKey: ${{ secrets.FILE_SERVER_KEY }} - local: ${{ env.BRANCH_NAME }} - remote: "/uploads/${{ env.BRANCH_NAME }}" + - uses: actions/checkout@v3 + + - name: pre scripts for ci container + run: | + git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API + echo "/bin" >> $GITHUB_PATH + echo "/usr/bin" >> $GITHUB_PATH + echo "/root/.cargo/bin" >> $GITHUB_PATH + + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 + rustup target add aarch64-linux-android + + - name: Setup NDK + run: ./scripts/ci/android-ndk.sh x86 21 + + - name: Calculate commit hash for PR commit + if: github.event_name == 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV + + - name: Calculate commit hash for merge commit + if: github.event_name != 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV + + - name: Build + run: | + rm -f ./MM_VERSION + echo $COMMIT_HASH > ./MM_VERSION + + export PATH=$PATH:/android-ndk/bin + CC_aarch64_linux_android=aarch64-linux-android21-clang CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=aarch64-linux-android21-clang cargo rustc --target=aarch64-linux-android --lib --release --crate-type=staticlib --package mm2_bin_lib + + - name: Compress build output + run: | + NAME="mm2_$COMMIT_HASH-android-aarch64.zip" + mv target/aarch64-linux-android/release/libmm2lib.a target/aarch64-linux-android/release/libmm2.a + zip $NAME target/aarch64-linux-android/release/libmm2.a -j + mkdir $BRANCH_NAME + mv $NAME ./$BRANCH_NAME/ + + - name: Upload output + uses: garygrossgarten/github-action-scp@release + with: + host: ${{ secrets.FILE_SERVER_HOST }} + username: ${{ secrets.FILE_SERVER_USERNAME }} + port: ${{ secrets.FILE_SERVER_PORT }} + privateKey: ${{ secrets.FILE_SERVER_KEY }} + local: ${{ env.BRANCH_NAME }} + remote: "/uploads/${{ env.BRANCH_NAME }}" android-armv7: timeout-minutes: 60 runs-on: ubuntu-latest container: komodoofficial/ci-container:latest steps: - - uses: actions/checkout@v3 - - - name: pre scripts for ci container - run: | - git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API - echo "/bin" >> $GITHUB_PATH - echo "/usr/bin" >> $GITHUB_PATH - echo "/root/.cargo/bin" >> $GITHUB_PATH - - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 - rustup target add armv7-linux-androideabi - - - name: Setup NDK - run: ./scripts/ci/android-ndk.sh x86 21 - - - name: Calculate commit hash for PR commit - if: github.event_name == 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV - - - name: Calculate commit hash for merge commit - if: github.event_name != 'pull_request' - run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV - - - name: Build - run: | - rm -f ./MM_VERSION - echo $COMMIT_HASH > ./MM_VERSION - - export PATH=$PATH:/android-ndk/bin - CC_armv7_linux_androideabi=armv7a-linux-androideabi21-clang CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER=armv7a-linux-androideabi21-clang cargo rustc --target=armv7-linux-androideabi --lib --release --crate-type=staticlib --package mm2_bin_lib - - - name: Compress build output - run: | - NAME="mm2_$COMMIT_HASH-android-armv7.zip" - mv target/armv7-linux-androideabi/release/libmm2lib.a target/armv7-linux-androideabi/release/libmm2.a - zip $NAME target/armv7-linux-androideabi/release/libmm2.a -j - mkdir $BRANCH_NAME - mv $NAME ./$BRANCH_NAME/ - - - name: Upload output - uses: garygrossgarten/github-action-scp@release - with: - host: ${{ secrets.FILE_SERVER_HOST }} - username: ${{ secrets.FILE_SERVER_USERNAME }} - port: ${{ secrets.FILE_SERVER_PORT }} - privateKey: ${{ secrets.FILE_SERVER_KEY }} - local: ${{ env.BRANCH_NAME }} - remote: "/uploads/${{ env.BRANCH_NAME }}" \ No newline at end of file + - uses: actions/checkout@v3 + + - name: pre scripts for ci container + run: | + git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API + echo "/bin" >> $GITHUB_PATH + echo "/usr/bin" >> $GITHUB_PATH + echo "/root/.cargo/bin" >> $GITHUB_PATH + + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 + rustup target add armv7-linux-androideabi + + - name: Setup NDK + run: ./scripts/ci/android-ndk.sh x86 21 + + - name: Calculate commit hash for PR commit + if: github.event_name == 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV + + - name: Calculate commit hash for merge commit + if: github.event_name != 'pull_request' + run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV + + - name: Build + run: | + rm -f ./MM_VERSION + echo $COMMIT_HASH > ./MM_VERSION + + export PATH=$PATH:/android-ndk/bin + CC_armv7_linux_androideabi=armv7a-linux-androideabi21-clang CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER=armv7a-linux-androideabi21-clang cargo rustc --target=armv7-linux-androideabi --lib --release --crate-type=staticlib --package mm2_bin_lib + + - name: Compress build output + run: | + NAME="mm2_$COMMIT_HASH-android-armv7.zip" + mv target/armv7-linux-androideabi/release/libmm2lib.a target/armv7-linux-androideabi/release/libmm2.a + zip $NAME target/armv7-linux-androideabi/release/libmm2.a -j + mkdir $BRANCH_NAME + mv $NAME ./$BRANCH_NAME/ + + - name: Upload output + uses: garygrossgarten/github-action-scp@release + with: + host: ${{ secrets.FILE_SERVER_HOST }} + username: ${{ secrets.FILE_SERVER_USERNAME }} + port: ${{ secrets.FILE_SERVER_PORT }} + privateKey: ${{ secrets.FILE_SERVER_KEY }} + local: ${{ env.BRANCH_NAME }} + remote: "/uploads/${{ env.BRANCH_NAME }}" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 23f3b3d107..0101ea30cc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ concurrency: cancel-in-progress: true env: - FROM_SHARED_RUNNER: true + FROM_SHARED_RUNNER: true jobs: linux-x86-64-unit: @@ -19,16 +19,16 @@ jobs: ALICE_USERPASS: ${{ secrets.ALICE_USERPASS_LINUX }} TELEGRAM_API_KEY: ${{ secrets.TELEGRAM_API_KEY }} steps: - - uses: actions/checkout@v3 - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 + - uses: actions/checkout@v3 + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 - - name: Test - run: | - # wget -O - https://raw.githubusercontent.com/KomodoPlatform/komodo/master/zcutil/fetch-params-alt.sh | bash - cargo test --bins --lib + - name: Test + run: | + # wget -O - https://raw.githubusercontent.com/KomodoPlatform/komodo/master/zcutil/fetch-params-alt.sh | bash + cargo test --bins --lib mac-x86-64-unit: timeout-minutes: 90 @@ -40,17 +40,17 @@ jobs: ALICE_USERPASS: ${{ secrets.ALICE_USERPASS_MACOS }} TELEGRAM_API_KEY: ${{ secrets.TELEGRAM_API_KEY }} steps: - - uses: actions/checkout@v3 - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 - rustup target add x86_64-apple-darwin - - - name: Test - run: | - # wget -O - https://raw.githubusercontent.com/KomodoPlatform/komodo/master/zcutil/fetch-params-alt.sh | bash - cargo test --bins --lib --target x86_64-apple-darwin + - uses: actions/checkout@v3 + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 + rustup target add x86_64-apple-darwin + + - name: Test + run: | + # wget -O - https://raw.githubusercontent.com/KomodoPlatform/komodo/master/zcutil/fetch-params-alt.sh | bash + cargo test --bins --lib --target x86_64-apple-darwin win-x86-64-unit: timeout-minutes: 90 @@ -62,32 +62,32 @@ jobs: ALICE_USERPASS: ${{ secrets.ALICE_USERPASS_WIN }} TELEGRAM_API_KEY: ${{ secrets.TELEGRAM_API_KEY }} steps: - - uses: actions/checkout@v3 - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 + - uses: actions/checkout@v3 + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 - - name: Test - run: | - # Invoke-WebRequest -Uri https://github.com/KomodoPlatform/komodo/raw/d456be35acd1f8584e1e4f971aea27bd0644d5c5/zcutil/wget64.exe -OutFile \wget64.exe - # Invoke-WebRequest -Uri https://raw.githubusercontent.com/KomodoPlatform/komodo/master/zcutil/fetch-params-alt.bat -OutFile \cmd.bat && \cmd.bat + - name: Test + run: | + # Invoke-WebRequest -Uri https://github.com/KomodoPlatform/komodo/raw/d456be35acd1f8584e1e4f971aea27bd0644d5c5/zcutil/wget64.exe -OutFile \wget64.exe + # Invoke-WebRequest -Uri https://raw.githubusercontent.com/KomodoPlatform/komodo/master/zcutil/fetch-params-alt.bat -OutFile \cmd.bat && \cmd.bat - # Set Path in variable - # $config = "C:\ProgramData\Docker\config\daemon.json" + # Set Path in variable + # $config = "C:\ProgramData\Docker\config\daemon.json" - # $json = Get-Content $config | Out-String | ConvertFrom-Json - # $json | Add-Member -Type NoteProperty -Name 'experimental' -Value $True - # $json | ConvertTo-Json | Set-Content $config + # $json = Get-Content $config | Out-String | ConvertFrom-Json + # $json | Add-Member -Type NoteProperty -Name 'experimental' -Value $True + # $json | ConvertTo-Json | Set-Content $config - # Check the file content - # type $config + # Check the file content + # type $config - # Restart-Service docker - # Get-Service docker + # Restart-Service docker + # Get-Service docker + + cargo test --bins --lib - cargo test --bins --lib - linux-x86-64-mm2-integration: timeout-minutes: 90 runs-on: ubuntu-latest @@ -98,14 +98,14 @@ jobs: ALICE_USERPASS: ${{ secrets.ALICE_USERPASS_LINUX }} TELEGRAM_API_KEY: ${{ secrets.TELEGRAM_API_KEY }} steps: - - uses: actions/checkout@v3 - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 + - uses: actions/checkout@v3 + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 - - name: Test - run: cargo test --test 'mm2_tests_main' + - name: Test + run: cargo test --test 'mm2_tests_main' # https://docs.github.com/en/actions/learn-github-actions/usage-limits-billing-and-administration#usage-limits # https://github.com/KomodoPlatform/atomicDEX-API/actions/runs/4419618128/jobs/7748266141#step:4:1790 @@ -139,14 +139,14 @@ jobs: ALICE_USERPASS: ${{ secrets.ALICE_USERPASS_WIN }} TELEGRAM_API_KEY: ${{ secrets.TELEGRAM_API_KEY }} steps: - - uses: actions/checkout@v3 - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 + - uses: actions/checkout@v3 + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 - - name: Test - run: cargo test --test 'mm2_tests_main' + - name: Test + run: cargo test --test 'mm2_tests_main' docker-tests: timeout-minutes: 90 @@ -158,16 +158,16 @@ jobs: ALICE_USERPASS: ${{ secrets.ALICE_USERPASS_LINUX }} TELEGRAM_API_KEY: ${{ secrets.TELEGRAM_API_KEY }} steps: - - uses: actions/checkout@v3 - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 + - uses: actions/checkout@v3 + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 - - name: Test - run: | - wget -O - https://raw.githubusercontent.com/KomodoPlatform/komodo/master/zcutil/fetch-params-alt.sh | bash - cargo test --test 'docker_tests_main' --features run-docker-tests + - name: Test + run: | + wget -O - https://raw.githubusercontent.com/KomodoPlatform/komodo/master/zcutil/fetch-params-alt.sh | bash + cargo test --test 'docker_tests_main' --features run-docker-tests wasm: timeout-minutes: 90 @@ -179,24 +179,23 @@ jobs: ALICE_USERPASS: ${{ secrets.ALICE_USERPASS_LINUX }} TELEGRAM_API_KEY: ${{ secrets.TELEGRAM_API_KEY }} steps: - - uses: actions/checkout@v3 - - name: Install toolchain - run: | - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal - rustup default nightly-2022-10-29 - rustup target add wasm32-unknown-unknown - - - name: Install wasm-pack - run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - - - name: Install firefox and geckodriver - run: | - sudo apt-get update -y - sudo apt-get install -y firefox - wget https://github.com/mozilla/geckodriver/releases/download/v0.32.2/geckodriver-v0.32.2-linux64.tar.gz - sudo tar -xzvf geckodriver-v0.32.2-linux64.tar.gz -C /bin - sudo chmod +x /bin/geckodriver - - - name: Test - run: WASM_BINDGEN_TEST_TIMEOUT=360 GECKODRIVER=/bin/geckodriver wasm-pack test --firefox --headless mm2src/mm2_main - + - uses: actions/checkout@v3 + - name: Install toolchain + run: | + rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal + rustup default nightly-2022-10-29 + rustup target add wasm32-unknown-unknown + + - name: Install wasm-pack + run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh + + - name: Install firefox and geckodriver + run: | + sudo apt-get update -y + sudo apt-get install -y firefox + wget https://github.com/mozilla/geckodriver/releases/download/v0.32.2/geckodriver-v0.32.2-linux64.tar.gz + sudo tar -xzvf geckodriver-v0.32.2-linux64.tar.gz -C /bin + sudo chmod +x /bin/geckodriver + + - name: Test + run: WASM_BINDGEN_TEST_TIMEOUT=360 GECKODRIVER=/bin/geckodriver wasm-pack test --firefox --headless mm2src/mm2_main diff --git a/.github/workflows/virustotal_scan.yml b/.github/workflows/virustotal_scan.yml index b292e47050..a612fc64fb 100644 --- a/.github/workflows/virustotal_scan.yml +++ b/.github/workflows/virustotal_scan.yml @@ -12,8 +12,7 @@ jobs: virustotal: runs-on: ubuntu-latest steps: - - - name: VirusTotal Scan + - name: VirusTotal Scan uses: crazy-max/ghaction-virustotal@v3 with: vt_api_key: ${{ secrets.VT_API_KEY }}