Skip to content

Commit 15cac93

Browse files
committed
rm changes to unrelated hex outputs
1 parent c811bfb commit 15cac93

File tree

10 files changed

+101
-97
lines changed

10 files changed

+101
-97
lines changed

src/pages/atomicdex/api/legacy/get_peers_info/index.mdx

+7-7
Original file line numberDiff line numberDiff line change
@@ -39,25 +39,25 @@ The `get_peers_info` method all connected peers with their multiaddresses. See [
3939
{
4040
"result": {
4141
"12D3KooWM8BrDBXc1TVw2vswoqYcQVn7fFvpAvcCfaV2Uqg2L9jU": [
42-
"/ip4/89.248.168.39/tcp/38890"
42+
"/ip4/89.248.168.39/tcp/42845"
4343
],
4444
"12D3KooWJ3dEWK7ym1uwc5SmwbmfFSRmELrA9aPJYxFRrQCCNdwF": [
45-
"/ip4/188.124.46.112/tcp/38890/p2p/12D3KooWJ3dEWK7ym1uwc5SmwbmfFSRmELrA9aPJYxFRrQCCNdwF"
45+
"/ip4/188.124.46.112/tcp/42845/p2p/12D3KooWJ3dEWK7ym1uwc5SmwbmfFSRmELrA9aPJYxFRrQCCNdwF"
4646
],
4747
"12D3KooWL6yrrNACb7t7RPyTEPxKmq8jtrcbkcNd6H5G2hK7bXaL": [
48-
"/ip4/168.119.236.233/tcp/38890/p2p/12D3KooWL6yrrNACb7t7RPyTEPxKmq8jtrcbkcNd6H5G2hK7bXaL"
48+
"/ip4/168.119.236.233/tcp/42845/p2p/12D3KooWL6yrrNACb7t7RPyTEPxKmq8jtrcbkcNd6H5G2hK7bXaL"
4949
],
5050
"12D3KooWPR2RoPi19vQtLugjCdvVmCcGLP2iXAzbDfP3tp81ZL4d": [
51-
"/ip4/168.119.237.13/tcp/38890/p2p/12D3KooWPR2RoPi19vQtLugjCdvVmCcGLP2iXAzbDfP3tp81ZL4d"
51+
"/ip4/168.119.237.13/tcp/42845/p2p/12D3KooWPR2RoPi19vQtLugjCdvVmCcGLP2iXAzbDfP3tp81ZL4d"
5252
],
5353
"12D3KooWKxavLCJVrQ5Gk1kd9m6cohctGQBmiKPS9XQFoXEoyGmS": [
54-
"/ip4/168.119.236.249/tcp/38890/p2p/12D3KooWKxavLCJVrQ5Gk1kd9m6cohctGQBmiKPS9XQFoXEoyGmS"
54+
"/ip4/168.119.236.249/tcp/42845/p2p/12D3KooWKxavLCJVrQ5Gk1kd9m6cohctGQBmiKPS9XQFoXEoyGmS"
5555
],
5656
"12D3KooWDbBdifGp3viDR4dCECEFKepjhwhd2YwAqgNVdXpEeewu": [
57-
"/ip4/80.82.76.214/tcp/38890"
57+
"/ip4/80.82.76.214/tcp/42845"
5858
],
5959
"12D3KooWJDoV9vJdy6PnzwVETZ3fWGMhV41VhSbocR1h2geFqq9Y": [
60-
"/ip4/89.248.173.231/tcp/38890"
60+
"/ip4/89.248.173.231/tcp/42845"
6161
]
6262
}
6363
}

src/pages/atomicdex/api/legacy/orderbook/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ Where `Order` object structure is as follows
863863
]
864864
}
865865
],
866-
"netid": 7777,
866+
"netid": 8762,
867867
"numasks": 2,
868868
"numbids": 6,
869869
"rel": "MARTY",

src/pages/atomicdex/api/v20/add_node_to_version_stat/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The `add_node_to_version_stat` method adds a Node's name, IP address and PeerID
88
`07 09:33:58, atomicdex_behaviour:610] INFO Local peer id: PeerId("12D3KooWReXsTVCKGAna1tzrD1jaUttTSs17ULFuvvzoGD9bqmmA")
99
`
1010

11-
Note: To allow collection of version stats, added nodes must open port 38890.
11+
Note: To allow collection of version stats, added nodes must open ports 42845 (tcp) and 42855 (ws).
1212

1313
## Arguments
1414

src/pages/atomicdex/api/v20/orderbook/index.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The v2 `orderbook` method requests from the network the currently available orde
2222
| rel | string | the name of the coin the user will trade |
2323
| numasks | integer | the number of outstanding asks |
2424
| numbids | integer | the number of outstanding bids |
25-
| netid | integer | the id of the network on which the request is made (default is `7777`) |
25+
| netid | integer | the id of the network on which the request is made (default is `8762`) |
2626
| asks | array of objects | an array of standard `Order` objects containing outstanding asks |
2727
| bids | array of objects | an array of standard `Order` objects containing outstanding bids |
2828
| timestamp | integer | the time the orderbook was requested |
@@ -297,7 +297,7 @@ The v2 `orderbook` method requests from the network the currently available orde
297297
}
298298
}
299299
],
300-
"net_id": 7777,
300+
"net_id": 8762,
301301
"num_asks": 3,
302302
"num_bids": 3,
303303
"rel": "DASH",

src/pages/atomicdex/api/v20/telegram_alerts/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ To set this up, you can add some additional parameters to your MM2.json as shown
1010
```json
1111
{
1212
"gui": "MarketMakerBot",
13-
"netid": 7777,
13+
"netid": 8762,
1414
"rpc_password": "YOUR_PASSWORD",
1515
"passphrase": "YOUR SEED PHRASE",
1616
"dbdir": "/path/to/your/atomicdex/DB",

src/pages/atomicdex/setup/configure-mm2-json/index.mdx

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ When running the AtomicDEX API via commandline with the `mm2` binary, some basic
1919
| Parameter | Type | Description |
2020
| ----------------------- | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2121
| gui | string | Information to identify which app, tool or product is using the API, e.g. `AtomicDEX iOS 1.0.1`. Helps developers identify if an issue is related to specific builds or operating systems etc. |
22-
| netid | integer | Nework ID number, telling the AtomicDEX-API which network to join. 7777 is the current main network, though alternative netids can be used for testing or "private" trades as long as seed nodes exist to support it. |
22+
| netid | integer | Nework ID number, telling the AtomicDEX-API which network to join. 8762 is the current main network, though alternative netids can be used for testing or "private" trades as long as seed nodes exist to support it. |
2323
| 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) |
2424
| rpc\_password | string | For RPC requests that need authentication, this will need to match the `userpass` value in the request body. |
2525
| 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 `&`. |
2626
| dbdir | string | Optional, defaults to a subfolder named `DB` in the path of your `mm2` binary. This path will store the AtomicDEX-API database data. |
2727
| rpcip | string | Optional, defaults to `127.0.0.1`. IP address to bind to for RPC server. |
2828
| rpcport | integer | Optional, defaults to `7783`. Port to use for RPC communication. |
2929
| rpc\_local\_only | boolean | Optional, defaults to `true`. If `false` the AtomicDEX 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. |
30-
| i\_am\_seed | boolean | Optional, defaults to `false`. Runs AtomicDEX API as a seed node mode (acting as a relay for AtomicDEX API clients). Use of this mode is not reccomended on the main network (7777) as it could result in a pubkey ban if non-compliant. On alternative testing or private networks, at least one seed node is required to relay information to other AtomicDEX API clients using the same netID. |
30+
| i\_am\_seed | boolean | Optional, defaults to `false`. Runs AtomicDEX API as a seed node mode (acting as a relay for AtomicDEX API clients). Use of this mode is not reccomended on the main network (8762) as it could result in a pubkey ban if non-compliant. On alternative testing or private networks, at least one seed node is required to relay information to other AtomicDEX API clients using the same netID. |
3131
| seednodes | list of strings | Optional. If operating on a test or private netID, the IP address of at least one seed node is required (on the main network, these are already hardcoded) |
3232
| hd\_account\_id | integer | Optional. If this value is set, the AtomicDEX-API will work in only the [HD derivation mode](/atomicdex/api/v20-dev/hd_wallets_overview/), and coins will need to have a coin derivation path entry in the `coins` file for activation. The `hd_account_id` value effectively takes its place in the full derivation as follows: `m/44'/COIN_ID'/<hd_account_id>'/CHAIN/ADDRESS_ID` |
3333
| message\_service\_cfg | object | Optional. This data is used to configure [Telegram](https://telegram.org/) messenger alerts for swap events when running using the [makerbot functionality](/atomicdex/api/v20/start_simple_market_maker_bot/). For more information check out the [telegram alerts guide](/atomicdex/api/v20/telegram_alerts/) |
@@ -40,7 +40,7 @@ When running the AtomicDEX API via commandline with the `mm2` binary, some basic
4040
```json
4141
{
4242
"gui": "DEVDOCS_CLI",
43-
"netid": 7777,
43+
"netid": 8762,
4444
"rpc_password": "ENTER_UNIQUE_PASSWORD",
4545
"passphrase": "ENTER_UNIQUE_SEED_PHRASE_DONT_USE_THIS_CHANGE_IT_OR_FUNDS_NOT_SAFU",
4646
"allow_weak_password": true,
@@ -53,7 +53,7 @@ When running the AtomicDEX API via commandline with the `mm2` binary, some basic
5353
```json
5454
{
5555
"gui": "DEVDOCS_CLI",
56-
"netid": 7777,
56+
"netid": 8762,
5757
"rpc_password": "Ent3r_Un1Qu3_Pa$$w0rd",
5858
"passphrase": "ENTER_UNIQUE_SEED_PHRASE_DONT_USE_THIS_CHANGE_IT_OR_FUNDS_NOT_SAFU",
5959
"allow_weak_password": false,
@@ -78,7 +78,7 @@ If you are using HD wallets, you will need to add the `hd_account_id` value to y
7878
```json
7979
{
8080
"gui": "DEVDOCS_CLI",
81-
"netid": 7777,
81+
"netid": 8762,
8282
"rpc_password": "Ent3r_Un1Qu3_Pa$$w0rd",
8383
"passphrase": "ENTER_UNIQUE_SEED_PHRASE_DONT_USE_THIS_CHANGE_IT_OR_FUNDS_NOT_SAFU",
8484
"allow_weak_password": false,

src/pages/atomicdex/tutorials/atomicdex-walkthrough/index.mdx

+8-8
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ We also need to create an MM2.json file in the same directory as the `coins` fil
7676
| Parameter | Type | Description |
7777
| ------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
7878
| gui | string | Information to identify which app, tool or product is using the API, e.g. `AtomicDEX iOS 1.0.1`. Helps developers identify if an issue is related to specific builds or operating systems etc. |
79-
| netid | integer | Nework ID number, telling the AtomicDEX API which network to join. 7777 is the current main network, though alternative netids can be used for testing or "private" trades as long as seed nodes exist to support it. |
79+
| netid | integer | Nework ID number, telling the AtomicDEX API which network to join. 8762 is the current main network, though alternative netids can be used for testing or "private" trades as long as seed nodes exist to support it. |
8080
| passphrase | string | Your passphrase; this is the source of each of your coins private keys. KEEP IT SAFE! |
8181
| rpc\_password | string | For RPC requests that need authentication, this will need to match the `userpass` value in the request body. |
8282

@@ -92,7 +92,7 @@ We also need to create an MM2.json file in the same directory as the `coins` fil
9292
The MM2.json configuration commands can also be supplied at runtime, as below:
9393

9494
```bash
95-
stdbuf -oL ./mm2 "{\"gui\":\"Docs_Walkthru\",\"netid\":7777, \"passphrase\":\"YOUR_PASSPHRASE_HERE\", \"rpc_password\":\"YOUR_PASSWORD_HERE\"}" &
95+
stdbuf -oL ./mm2 "{\"gui\":\"Docs_Walkthru\",\"netid\":8762, \"passphrase\":\"YOUR_PASSPHRASE_HERE\", \"rpc_password\":\"YOUR_PASSWORD_HERE\"}" &
9696
```
9797

9898
Replace `YOUR_PASSPHRASE_HERE` and `YOUR_PASSWORD_HERE` with your actual passphrase and password, and then execute the command in the terminal.
@@ -120,9 +120,9 @@ You should see output similar to the following:
120120
06 10:26:38, atomicdex_gossipsub::behaviour:147] INFO Adding peer 12D3KooWGrUpCAbkxhPRioNs64sbUmPmpEcou6hYfrqQvxfWDEuf to explicit relay list
121121
06 10:26:38, atomicdex_gossipsub::behaviour:147] INFO Adding peer 12D3KooWEaZpH61H4yuQkaNG5AsyGdpBhKRppaLdAY52a774ab5u to explicit relay list
122122
06 10:26:38, atomicdex_gossipsub::behaviour:147] INFO Adding peer 12D3KooWAd5gPXwX7eDvKWwkr2FZGfoJceKDCA53SHmTFFVkrN7Q to explicit relay list
123-
06 10:26:38, mm2_libp2p::atomicdex_behaviour:762] INFO Dialed /ip4/79.228.173.231/tcp/38890
124-
06 10:26:38, mm2_libp2p::atomicdex_behaviour:762] INFO Dialed /ip4/84.82.76.214/tcp/38890
125-
06 10:26:38, mm2_libp2p::atomicdex_behaviour:762] INFO Dialed /ip4/69.178.128.39/tcp/38890
123+
06 10:26:38, mm2_libp2p::atomicdex_behaviour:762] INFO Dialed /ip4/79.228.173.231/tcp/42845
124+
06 10:26:38, mm2_libp2p::atomicdex_behaviour:762] INFO Dialed /ip4/84.82.76.214/tcp/42845
125+
06 10:26:38, mm2_libp2p::atomicdex_behaviour:762] INFO Dialed /ip4/69.178.128.39/tcp/42845
126126
06 10:26:38, mm2_main::mm2::database:26] INFO Checking the current SQLite migration
127127
06 10:26:38, mm2_main::mm2::database:30] INFO Current migration is 9, skipping the init, trying to migrate
128128
06 10:26:38, mm2_main::mm2::database:119] INFO migrate_sqlite_database, current migration 9
@@ -137,7 +137,7 @@ If you see something similar, the AtomicDEX API is up and running!
137137
When using the AtomicDEX API on a VPS without accompanying tools such as `tmux` or `screen`, it is recommended to use [`nohup`](https://www.digitalocean.com/community/tutorials/nohup-command-in-linux) when launching the AtomicDEX-API. This will ensure that the AtomicDEX-API instance is not shutdown when the user logs out.
138138

139139
```bash
140-
stdbuf -oL nohup ./mm2 "{\"gui\":\"Docs_Walkthru\",\"netid\":7777, \"passphrase\":\"YOUR_PASSPHRASE_HERE\", \"rpc_password\":\"YOUR_PASSWORD_HERE\"}" &
140+
stdbuf -oL nohup ./mm2 "{\"gui\":\"Docs_Walkthru\",\"netid\":8762, \"passphrase\":\"YOUR_PASSPHRASE_HERE\", \"rpc_password\":\"YOUR_PASSWORD_HERE\"}" &
141141
```
142142
</Note>
143143

@@ -301,7 +301,7 @@ The response below shows a list of users willing to send DOC in exchange for MAR
301301

302302
<CollapsibleSection expandedText="Hide Response" collapsedText="Show Response">
303303
```json
304-
{"bids": [],"numbids": 0,"biddepth": 0,"asks": [{"coin": "DOC","address": "RJTYiYeJ8eVvJ53n2YbrVmxWNNMVZjDGLh","price": "0.89999998","price_rat": [[1, [813957463, 471859]],[1, [0, 524288]]],"price_fraction": {"numer": "2026619787280727","denom": "2251799813685248"},"maxvolume": "10855.85028615","max_volume_rat": [[1, [3593286463, 1389548]],[1, [0, 128]]],"max_volume_fraction": {"numer": "5968066809508671","denom": "549755813888"},"pubkey": "5a2f1c468b7083c4f7649bf68a50612ffe7c38b1d62e1ece3829ca88e7e7fd12","age": 5,"uuid": "5bff6021-b086-477e-b874-f45d898933fe","is_mine": false}],"numasks": 1,"askdepth": 0,"base": "DOC","rel": "MARTY","timestamp": 1549319941,"netid": 7777}
304+
{"bids": [],"numbids": 0,"biddepth": 0,"asks": [{"coin": "DOC","address": "RJTYiYeJ8eVvJ53n2YbrVmxWNNMVZjDGLh","price": "0.89999998","price_rat": [[1, [813957463, 471859]],[1, [0, 524288]]],"price_fraction": {"numer": "2026619787280727","denom": "2251799813685248"},"maxvolume": "10855.85028615","max_volume_rat": [[1, [3593286463, 1389548]],[1, [0, 128]]],"max_volume_fraction": {"numer": "5968066809508671","denom": "549755813888"},"pubkey": "5a2f1c468b7083c4f7649bf68a50612ffe7c38b1d62e1ece3829ca88e7e7fd12","age": 5,"uuid": "5bff6021-b086-477e-b874-f45d898933fe","is_mine": false}],"numasks": 1,"askdepth": 0,"base": "DOC","rel": "MARTY","timestamp": 1549319941,"netid": 8762}
305305
```
306306
</CollapsibleSection>
307307

@@ -364,7 +364,7 @@ Try again this time adding ` | jq` to the end of the `bash` example below:
364364
"base": "DOC",
365365
"rel": "MARTY",
366366
"timestamp": 1549320152,
367-
"netid": 7777
367+
"netid": 8762
368368
}
369369
```
370370
</CollapsibleSection>

src/pages/atomicdex/tutorials/how-to-become-a-liquidity-provider/index.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ Display the KMD/LTC Orderbook.
367367
"is_mine": false
368368
}
369369
],
370-
"netid": 7777,
370+
"netid": 8762,
371371
"numasks": 1,
372372
"numbids": 1,
373373
"rel": "LTC",
@@ -448,7 +448,7 @@ Display the LTC/KMD Orderbook.
448448
"is_mine": false
449449
}
450450
],
451-
"netid": 7777,
451+
"netid": 8762,
452452
"numasks": 1,
453453
"numbids": 1,
454454
"rel": "KMD",

src/pages/atomicdex/tutorials/setup-atomicdex-aws/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ apt-get install -y unzip jq curl
1919
wget $(curl --silent https://api.github.com/repos/KomodoPlatform/atomicDEX-API/releases | jq -r '.[0].assets[] | select(.name | endswith("Linux-Release.zip")).browser_download_url')
2020
wget https://raw.githubusercontent.com/KomodoPlatform/coins/master/coins
2121
unzip *Linux-Release.zip
22-
./mm2 "{\"netid\":7777,\"gui\":\"aws_cli\",\"passphrase\":\"SEED_WORDS_PLEASE_REPLACE\",\"rpc_password\":\"RPC_PASS_PLEASE_REPLACE\",\"myipaddr\":\"0.0.0.0\"}"
22+
./mm2 "{\"netid\":8762,\"gui\":\"aws_cli\",\"passphrase\":\"SEED_WORDS_PLEASE_REPLACE\",\"rpc_password\":\"RPC_PASS_PLEASE_REPLACE\",\"myipaddr\":\"0.0.0.0\"}"
2323
```
2424

2525
## Install AWS CLI , get AWS access credentials

0 commit comments

Comments
 (0)