Skip to content

Commit 4ad1eff

Browse files
authored
[Bot] File and author data updated, validated and updated internal links, formatted md content, checked presence of file and dirs based on sidebar, checked presence of h1 in every file, update Komodo DeFi Framework methods table, adds/updates preview images when base is main
1 parent a9e1cd1 commit 4ad1eff

File tree

172 files changed

+4150
-668
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+4150
-668
lines changed

data-for-gpts/all-content.txt

+1,094-222
Large diffs are not rendered by default.

data-for-gpts/komodefi-api/all-api-content.txt

+962-147
Large diffs are not rendered by default.

data-for-gpts/komodefi-api/legacy-api-content.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3851,7 +3851,7 @@ The `my_swap_status` method returns the data of an atomic swap executed on an Ko
38513851
| error\_events | array of strings | a list of events that fell into an `error` swap state; if at least 1 of the events happens, the swap is considered a failure |
38523852
| type | string | whether the node acted as a market `Maker` or `Taker` |
38533853
| uuid | string | swap uuid |
3854-
| gui | string (optional) | information about gui; copied from Komodo DeFi Framework API configuration (MM2.json) |
3854+
| gui | string (optional) | information about gui; copied from Komodo DeFi Framework API configuration in your [MM2.json file](/komodo-defi-framework/setup/configure-mm2-json/) |
38553855
| mm\_version | string (optional) | Komodo DeFi Framework API version |
38563856
| maker\_coin | string (optional) | ticker of maker coin |
38573857
| taker\_coin | string (optional) | ticker of taker coin |

data-for-gpts/komodefi-api/v20-api-content.txt

+29-5
Original file line numberDiff line numberDiff line change
@@ -1755,7 +1755,7 @@ The response will return the following:
17551755
| .wallet\_balance | object | Information about the addresses of the coin being activated |
17561756
| ..wallet\_type | string | In Trezor mode, this will return `HD` |
17571757
| ..accounts | list | A list of addresses and related information for the coin being activated |
1758-
| ...account\_index | integer | `ACCOUNT_ID` child in the `m/44'/COIN'/ACCOUNT_ID'/CHAIN/ADDRESS_ID` BIP44 derivation path. **Please don't confuse with mm2 global Iguana/HD/HW account.** |
1758+
| ...account\_index | integer | `ACCOUNT_ID` child in the `m/44'/COIN'/ACCOUNT_ID'/CHAIN/ADDRESS_ID` BIP44 derivation path. **Please don't confuse with kdf global Iguana/HD/HW account.** |
17591759
| ...derivation\_path | string | Derivation path up to the `COIN` child. E.g. `"m/44'/141'/0'"` |
17601760
| ...total\_balance | object | Combined total spendable and unconfirmed balances of all account addresses |
17611761
| ....spendable | string(numeric) | Combined total spendable balance of all account addreesses |
@@ -6097,6 +6097,30 @@ the following tables are available in `DB/KOMODEFI.db`:
60976097
* MATIC\_nft\_transfer\_history
60986098
* scanned\_nft\_blocks
60996099

6100+
This SQLite database is located under the DB user data folder with each wallet having its own subfolder represented by a hexadecimal string.
6101+
This string is shown in the runtime logs of the `kdf` binary as `Public key hash` when it starts up.
6102+
6103+
```bash
6104+
30 08:39:23, mm2:269] AtomicDEX API 2.1.0-beta_a81f2a101 DT 2024-07-26T23:24:52+03:00
6105+
30 08:39:23, mm2_main::mm2::lp_native_dex:500] INFO Version: 2.1.0-beta_a81f2a101 DT 2024-07-26T23:24:52+03:00
6106+
30 08:39:23, crypto::crypto_ctx:324] INFO Public key hash: 7d6cbdd91788df3b764247721fe12853ce36b03d
6107+
```
6108+
6109+
The default location of this folder for each operating system is:
6110+
6111+
```bash
6112+
- Linux: $HOME/.kdf/DB/{'{wallet identifying hex string}'}/MM2.db'
6113+
- MacOS: $HOME/.kdf/DB/{'{wallet identifying hex string}'}/MM2.db'
6114+
- Windows: %APPDATA%\kdf\DB\{'{wallet identifying hex string}'}\MM2.db'
6115+
```
6116+
6117+
You can define a different location for the DB folder via the [`dbdir` configuration parameter](/komodo-defi-framework/setup/configure-mm2-json/) in your MM2.json file.
6118+
There is also a sqlite database named `MM2.db` which [can be queried for information related to swaps, transactions and other information](/komodo-defi-framework/tutorials/query-the-mm2-database/).
6119+
6120+
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`.
6121+
6122+
The tables and columns available to query in KOMODEFI.db are as follows:
6123+
61006124
## NFT List tables
61016125

61026126
The COIN\_nft\_list tables contain the NFTs that you own
@@ -9769,11 +9793,11 @@ The request was failed due to a Komodo DeFi Framework API internal error.
97699793
}
97709794
```
97719795
export const title = "Komodo DeFi Framework Method: Add Node to Version Stat";
9772-
export const 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](https://github.com/KomodoPlatform/komodo-defi-framework) it is running.";
9796+
export const 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.";
97739797

97749798
# add\_node\_to\_version\_stat
97759799

9776-
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](https://github.com/KomodoPlatform/komodo-defi-framework) 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:
9800+
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:
97779801

97789802
`07 09:33:58, atomicdex_behaviour:610] INFO Local peer id: PeerId("12D3KooWReXsTVCKGAna1tzrD1jaUttTSs17ULFuvvzoGD9bqmmA")
97799803
`
@@ -10455,11 +10479,11 @@ The `peer_connection_healthcheck` method checks if a peer is connected to the KD
1045510479
}
1045610480
```
1045710481
export const title = "Komodo DeFi Framework Method: Remove Node from Version Stat";
10458-
export const description = "The remove_node_from_version_stat method removes a Node from the local database that tracks which version of [KDF](https://github.com/KomodoPlatform/komodo-defi-framework) it is running.";
10482+
export const description = "The remove_node_from_version_stat method removes a Node from the local database that tracks which version of KDF it is running.";
1045910483

1046010484
# remove\_node\_from\_version\_stat
1046110485

10462-
The `remove_node_from_version_stat` method removes a Node (by name) from the local database which tracks which version of [KDF](https://github.com/KomodoPlatform/komodo-defi-framework) it is running. The name parameter is an arbitrary identifying string, such as "seed\_alpha" or "dragonhound\_DEV".
10486+
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".
1046310487

1046410488
## Arguments
1046510489

0 commit comments

Comments
 (0)