Skip to content

Commit

Permalink
Merge pull request #1184 from KomodoPlatform/dev
Browse files Browse the repository at this point in the history
Release SLP, WASM, Maker bot, QTUM delegation.
  • Loading branch information
artemii235 authored Jul 25, 2022
2 parents dbacb81 + e48e0af commit 41f5944
Show file tree
Hide file tree
Showing 433 changed files with 85,762 additions and 21,215 deletions.
3 changes: 2 additions & 1 deletion .cargo/config
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[target.wasm32-unknown-unknown]
runner = 'wasm-bindgen-test-runner'
runner = 'wasm-bindgen-test-runner-0.2.78'
rustflags = ["--cfg=web_sys_unstable_apis"]
140 changes: 140 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: cargo
# Define the location of the package manifests
directory: "/mm2src/coins/"
schedule:
# By default, Dependabot checks for new versions on Monday at a random set time for the repository
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/common/shared_ref_counter/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/coins/lightning_persister/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/coins/lightning_background_processor/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/coins/utxo_signer/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/coins_activation/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/crypto/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/db_common/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/derives/ser_error/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/derives/ser_error_derive/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/floodsub/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/gossipsub/"
schedule:
interval: weekly
open-pull-requests-limit: 10
- package-ecosystem: cargo
directory: "/mm2src/hw_common/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/mm2_bitcoin/crypto/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/mm2_bitcoin/chain/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/mm2_bitcoin/keys/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/mm2_bitcoin/rpc/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/mm2_bitcoin/primitives/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/mm2_bitcoin/script/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/mm2_bitcoin/serialization/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/mm2_bitcoin/serialization_derive/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/mm2_bitcoin/test_helpers/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/mm2_core/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/mm2_db/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/mm2_err_handle/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/mm2_test_helpers/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/mm2_libp2p/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/mm2_main/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/mm2_net/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/mm2_io/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/mm2_rpc/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/rpc_task/"
schedule:
interval: weekly
- package-ecosystem: cargo
directory: "/mm2src/trezor/"
schedule:
interval: weekly
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,12 @@ iguana/exchanges/manychains

# coins configuration file
/coins
# MM2 conf to avoid occasional adding to git by someone
MM2.json

# vim
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
[._]sw[a-p]
42 changes: 33 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Contributing to AtomicDEX Marketmaker
# Contributing to AtomicDEX-API

We welcome contribution from everyone in the form of suggestions, bug reports, pull requests, and feedback.
Please note we have a code of conduct, please follow it in all your interactions with the project.
Expand All @@ -14,16 +14,40 @@ cargo test --all
We also use [Clippy](https://github.com/rust-lang/rust-clippy) to avoid common mistakes
and we use [rustfmt](https://github.com/rust-lang/rustfmt) to make our code clear to everyone.

1. Install these tools (only once):
```
rustup component add rustfmt
rustup component add clippy
```
1. Format the code using rustfmt:
```
```shell
cargo fmt
```
1. Make sure there are no warnings and errors. Run the Clippy:
```
2. Make sure there are no warnings and errors. Run the Clippy:
```shell
cargo clippy -- -D warnings
```
Install cargo udeps
```shell
cargo install cargo-udeps
```
3. Make sure there are no unused dependencies. Run the following check
```shell
cargo udeps
```
Install cargo deny
```shell
cargo install cargo-deny
```
4. Make sure that no new dependencies duplicates appear. Run the following check
```shell
cargo deny check bans
```
5. Make sure that dependencies do not have known vulnerabilities. If they do, update them.
```shell
cargo deny check advisories
```

### Run WASM tests

1. Install Firefox.
1. Download Gecko driver for your OS: https://github.com/mozilla/geckodriver/releases
1. Run the tests
```
WASM_BINDGEN_TEST_TIMEOUT=120 GECKODRIVER=PATH_TO_GECKO_DRIVER_BIN wasm-pack test --firefox --headless mm2src/mm2_main
```
Loading

0 comments on commit 41f5944

Please sign in to comment.