You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/pages/komodo-defi-framework/api/v20/add_node_to_version_stat/index.mdx
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
exportconst title ="Komodo DeFi Framework Method: Add Node to Version Stat";
2
-
exportconst description ="The add_node_to_version_stat method adds a Node's name, IP address and PeerID to a local database to track which version of MM2 it is running.";
2
+
exportconst description ="The add_node_to_version_stat method adds a Node's name, IP address and PeerID to a local database to track which version of KDF it is running.";
3
3
4
4
# add\_node\_to\_version\_stat
5
5
6
-
The `add_node_to_version_stat` method adds a Node's name, IP address and PeerID to a local database to track which version of MM2 it is running. The name parameter is an arbitrary identifying string, such as "seed\_alpha" or "dragonhound\_DEV". The address parameter is the node's IP address or domain names. The Peer ID can be found in the MM2 log file after a connection has been initiated, and looks like the below:
6
+
The `add_node_to_version_stat` method adds a Node's name, IP address and PeerID to a local database to track which version of KDF it is running. The name parameter is an arbitrary identifying string, such as "seed\_alpha" or "dragonhound\_DEV". The address parameter is the node's IP address or domain names. The Peer ID can be found in the KDF log file after a connection has been initiated, and looks like the below:
7
7
8
8
`07 09:33:58, atomicdex_behaviour:610] INFO Local peer id: PeerId("12D3KooWReXsTVCKGAna1tzrD1jaUttTSs17ULFuvvzoGD9bqmmA")
Copy file name to clipboardexpand all lines: src/pages/komodo-defi-framework/api/v20/remove_node_from_version_stat/index.mdx
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
exportconst title ="Komodo DeFi Framework Method: Remove Node from Version Stat";
2
-
exportconst description ="The remove_node_from_version_stat method removes a Node from the local database that tracks which version of MM2 it is running.";
2
+
exportconst description ="The remove_node_from_version_stat method removes a Node from the local database that tracks which version of KDF it is running.";
3
3
4
4
# remove\_node\_from\_version\_stat
5
5
6
-
The `remove_node_from_version_stat` method removes a Node (by name) from the local database which tracks which version of MM2 it is running. The name parameter is an arbitrary identifying string, such as "seed\_alpha" or "dragonhound\_DEV".
6
+
The `remove_node_from_version_stat` method removes a Node (by name) from the local database which tracks which version of KDF it is running. The name parameter is an arbitrary identifying string, such as "seed\_alpha" or "dragonhound\_DEV".
Copy file name to clipboardexpand all lines: src/pages/komodo-defi-framework/setup/configure-mm2-json/index.mdx
+4-4
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,11 @@ export const description =
4
4
5
5
# Komodo DeFi API configuration
6
6
7
-
Komodo DeFi-API configuration parameters, along with additional runtime flags, and per-process environment variables are [listed in the source code](https://github.com/KomodoPlatform/komodo-defi-framework/blob/main/mm2src/mm2_main/src/mm2.rs#L151-L205), and can be viewed by running the `./mm2 --help`.
7
+
Komodo DeFi-API configuration parameters, along with additional runtime flags, and per-process environment variables are [listed in the source code](https://github.com/KomodoPlatform/komodo-defi-framework/blob/main/mm2src/mm2_main/src/mm2.rs#L151-L205), and can be viewed by running the `./kdf --help`.
8
8
9
9
## MM2.json
10
10
11
-
When running the Komodo DeFi API via commandline with the `mm2` binary, some basic configuration parameters need to be defined in either an `MM2.json` file, or at runtime.
11
+
When running the Komodo DeFi API via commandline with the `kdf` binary, some basic configuration parameters need to be defined in either an `MM2.json` file, or at runtime.
12
12
13
13
### Configuration Parameters
14
14
@@ -19,7 +19,7 @@ When running the Komodo DeFi API via commandline with the `mm2` binary, some bas
19
19
| passphrase | string | Your passphrase; this is the source of each of your coins private keys. [**KEEP IT SAFE!**](https://www.youtube.com/watch?v=WFpxVbTqhB8)|
20
20
| rpc\_password | string | For RPC requests that need authentication, this will need to match the `userpass` value in the request body. |
21
21
| allow\_weak\_password | boolean | Optional, defaults to `false`. If `true`, will allow low entropy rpc\_password. If `false` rpc\_password must not have 3 of the same characters in a row, must be between 8-32 characters in length, must contain at least one of each of the following: numeric, uppercase, lowercase, special character (e.g. !#$\*). It also can not contain the word "password", or the chars `<`, `>`, or `&`. |
22
-
| dbdir | string | Optional, defaults to a subfolder named `DB` in the path of your `mm2` binary. This path will store the Komodo DeFi-API database data. |
22
+
| dbdir | string | Optional, defaults to a subfolder named `DB` in the path of your `kdf` binary. This path will store the Komodo DeFi-API database data. |
23
23
| rpcip | string | Optional, defaults to `127.0.0.1`. IP address to bind to for RPC server. |
24
24
| rpcport | integer | Optional, defaults to `7783`. Port to use for RPC communication. |
25
25
| rpc\_local\_only | boolean | Optional, defaults to `true`. If `false` the Komodo DeFi Framework API will allow rpc methods sent from external IP addresses. **Warning:** Only use this if you know what you are doing, and have put the appropriate security measures in place. |
@@ -111,7 +111,7 @@ The structure for adding additional coins can vary, please refer to the [listing
| MM2\_CONF\_PATH | string | A file path to load the `MM2.json` configuration file. Defaults to `MM2.json` in the same folder as the `mm2` binary. |
114
+
| MM2\_CONF\_PATH | string | A file path to load the `MM2.json` configuration file. Defaults to `MM2.json` in the same folder as the `kdf` binary. |
115
115
| MM\_COINS\_PATH | string | A file path to load the `coins` configuration file. A comprehensive version for public use is maintained in the [Komodo Platform coins github repository](https://github.com/KomodoPlatform/coins/blob/master/coins)|
116
116
| MM\_LOG | string | A file path to store the Komodo DeFi-API logs. |
117
117
| USERPASS | string | For convenience, this variable can store the value of your `rpc_password` to be referenced in any shell scripts |
Then you can proceed to [download the coins configuration file](/komodo-defi-framework/tutorials/how-to-become-a-liquidity-provider/#step-2-download-the-coins-configuration-file).
@@ -187,7 +187,7 @@ We now have basic scripts to use the Komodo DeFi Framework API as a liquidity pr
Copy file name to clipboardexpand all lines: src/pages/komodo-defi-framework/tutorials/query-the-mm2-database/index.mdx
+2-2
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ export const description = "This guide describes how to query the MM2 SQLite dat
3
3
4
4
# How to Query the MM2 SQLite Database
5
5
6
-
The Komodo DeFi Framework API stores historical information such as swaps and orders within an SQLite database, located under the DB user data folder (e.g. {'{folder continaing mm2 binary}'}/DB/{'{wallet identifying hex string}'}/MM2.db').
6
+
The Komodo DeFi Framework API stores historical information such as swaps and orders within an SQLite database, located under the DB user data folder (e.g. {'{folder continaing kdf binary}'}/DB/{'{wallet identifying hex string}'}/MM2.db').
7
7
8
8
There are a variety of methods to query sqlite databases. Examples below show how to do a sqlite query in Linux terminal, but first you might need to install sqlite with `sudo apt install sqlite3`.
9
9
@@ -124,7 +124,7 @@ This table stores a record of results returned by registered nodes [tracked for
0 commit comments