Skip to content

Commit 43310ae

Browse files
authored
Merge pull request #185 from KomodoPlatform/lint-fix-patches/add-gas-atom
[BOT] PR to add-gas-atom. Lints file structure, file contents, gets author data, Updates AtomicDEX API Methods Table
2 parents 91849db + cac1551 commit 43310ae

File tree

6 files changed

+372
-97
lines changed

6 files changed

+372
-97
lines changed

data-for-gpts/all-content.txt

+104-21
Original file line numberDiff line numberDiff line change
@@ -27036,10 +27036,54 @@ The `FeeInfo` response object includes the following items for [withdraw (v2)](/
2703627036

2703727037
| Parameter | Type | Description |
2703827038
| ---------- | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
27039-
| type | string | Type of transaction fee; possible values: `UtxoFixed`, `UtxoPerKbyte`, `EthGas` |
27039+
| type | string | Type of transaction fee; possible values: `UtxoFixed`, `UtxoPerKbyte`, `EthGas`, `Qrc20Gas`, `CosmosGas` |
2704027040
| amount | string (numeric) | Fee amount in coin units, used only when type is `UtxoFixed` (fixed amount not depending on tx size) or `UtxoPerKbyte` (amount per Kbyte) |
27041-
| gas\_price | string (numeric) | Used only when fee type is EthGas; sets the gas price in `gwei` units |
27042-
| gas | number (integer) | Used only when fee type is EthGas; sets the gas limit for transaction |
27041+
| gas\_price | string (numeric) | Used only when fee type is `Qrc20Gas` or `EthGas`; sets the gas price in `gwei` units. |
27042+
| gas\_price | number (double) | Used only when fee type is `CosmosGas`; sets the gas price. |
27043+
| gas | number (integer) | Used only when fee type is `EthGas`; sets the gas limit for transaction |
27044+
| gas\_limit | number (integer) | Used only when fee type is `Qrc20Gas` or `CosmosGas`; sets the gas limit for transaction |
27045+
27046+
<CollapsibleSection expandedText="Hide Example" collapsedText="Show Example">
27047+
#### Examples
27048+
27049+
```json
27050+
{
27051+
"type": "UtxoFixed",
27052+
"amount": "0.0001"
27053+
}
27054+
```
27055+
27056+
```json
27057+
{
27058+
"type": "UtxoPerKbyte",
27059+
"amount": "0.0001"
27060+
}
27061+
```
27062+
27063+
```json
27064+
{
27065+
"type": "EthGas",
27066+
"gas_price": "10",
27067+
"gas": 21000
27068+
}
27069+
```
27070+
27071+
```json
27072+
{
27073+
"type": "Qrc20Gas",
27074+
"gas_price": "10",
27075+
"gas_limit": 21000
27076+
}
27077+
```
27078+
27079+
```json
27080+
{
27081+
"type": "CosmosGas",
27082+
"gas_price": 0.05,
27083+
"gas_limit": 21000
27084+
}
27085+
```
27086+
</CollapsibleSection>
2704327087

2704427088
### ExtendedFeeInfo
2704527089

@@ -43159,20 +43203,6 @@ The request was failed due to an AtomicDEX API internal error.
4315943203
"id": 0
4316043204
}
4316143205
```
43162-
43163-
#### Response (InvalidFeePolicy error - attempt to use EthGas for UTXO coin)
43164-
43165-
```json
43166-
{
43167-
"mmrpc": "2.0",
43168-
"error": "Invalid fee policy: Expected 'UtxoFixed' or 'UtxoPerKbyte' fee types, found EthGas",
43169-
"error_path": "utxo_common",
43170-
"error_trace": "utxo_common:1371]",
43171-
"error_type": "InvalidFeePolicy",
43172-
"error_data": "Expected 'UtxoFixed' or 'UtxoPerKbyte' fee types, found EthGas",
43173-
"id": 0
43174-
}
43175-
```
4317643206
</CollapsibleSection>
4317743207

4317843208
#### Withdraw BTC, KMD, and other BTC-based forks, 1 coin per Kbyte fee
@@ -43494,7 +43524,7 @@ The request was failed due to an AtomicDEX API internal error.
4349443524
```
4349543525
</CollapsibleSection>
4349643526

43497-
##### Withdraw Tendermint coins with a memo
43527+
##### Withdraw Tendermint coins with a memo and custom gas fee
4349843528

4349943529
<CodeGroup title="Withdraw" tag="POST" label="withdraw" mm2MethodDecorate="true">
4350043530
```json
@@ -43506,7 +43536,12 @@ The request was failed due to an AtomicDEX API internal error.
4350643536
"coin": "IRIS",
4350743537
"to": "iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k",
4350843538
"amount": 13,
43509-
"memo": "It was a bright cold day in April, and the clocks were striking thirteen."
43539+
"memo": "It was a bright cold day in April, and the clocks were striking thirteen.",
43540+
"fee": {
43541+
"type": "CosmosGas",
43542+
"gas_price": 0.05,
43543+
"gas_limit": 150000
43544+
}
4351043545
},
4351143546
"id": 0
4351243547
}
@@ -43545,6 +43580,50 @@ The request was failed due to an AtomicDEX API internal error.
4354543580

4354643581
You can see the memo is included on the [block explorer](https://irishub.iobscan.io/#/txs/E00982A2A8442D7140916A34E29E287A0B1CBB4B38940372D1966BA7ACDE5BD6)
4354743582
</CollapsibleSection>
43583+
43584+
### Error Responses
43585+
43586+
#### InvalidRequest: Unknown fee type
43587+
43588+
```
43589+
{
43590+
"mmrpc": "2.0",
43591+
"error": "Error parsing request: unknown variant `Tendermint`, expected one of `UtxoFixed`, `UtxoPerKbyte`, `EthGas`, `Qrc20Gas`, `CosmosGas`",
43592+
"error_path": "dispatcher",
43593+
"error_trace": "dispatcher:109]",
43594+
"error_type": "InvalidRequest",
43595+
"error_data": "unknown variant `Tendermint`, expected one of `UtxoFixed`, `UtxoPerKbyte`, `EthGas`, `Qrc20Gas`, `CosmosGas`",
43596+
"id": 0
43597+
}
43598+
```
43599+
43600+
#### InvalidRequest: wrong parameter type
43601+
43602+
```
43603+
{
43604+
"mmrpc": "2.0",
43605+
"error": "Error parsing request: invalid type: string \"0.1\", expected f64",
43606+
"error_path": "dispatcher",
43607+
"error_trace": "dispatcher:109]",
43608+
"error_type": "InvalidRequest",
43609+
"error_data": "invalid type: string \"0.1\", expected f64",
43610+
"id": 0
43611+
}
43612+
```
43613+
43614+
#### InvalidFeePolicy: attempt to use EthGas for UTXO coin
43615+
43616+
```json
43617+
{
43618+
"mmrpc": "2.0",
43619+
"error": "Invalid fee policy: Expected 'UtxoFixed' or 'UtxoPerKbyte' fee types, found EthGas",
43620+
"error_path": "utxo_common",
43621+
"error_trace": "utxo_common:1371]",
43622+
"error_type": "InvalidFeePolicy",
43623+
"error_data": "Expected 'UtxoFixed' or 'UtxoPerKbyte' fee types, found EthGas",
43624+
"id": 0
43625+
}
43626+
```
4354843627
export const title = "AtomicDEX Method: Get Current MTP";
4354943628
export const description = "The get_current_mtp method returns the Median Time Past (MTP) from electrum servers for UTXO coins.";
4355043629

@@ -49229,9 +49308,13 @@ Unpack and follow the instructions here: [instructions link](https://cmake.org/r
4922949308
sudo apt-get install build-essential
4923049309
```
4923149310

49232-
##### Windows: [Follow these instructions for MSVC](https://learn.microsoft.com/en-us/cpp/build/vscpp-step-0-installation?view=msvc-170\&viewFallbackFrom=vs-2017)
49311+
##### Windows:
49312+
49313+
[Follow these instructions for MSVC](https://learn.microsoft.com/en-us/cpp/build/vscpp-step-0-installation?view=msvc-170\&viewFallbackFrom=vs-2017)
49314+
49315+
##### MacOS:
4923349316

49234-
##### MacOS: [Install XCode via the App Store](https://apps.apple.com/us/app/xcode/id497799835?mt=12)
49317+
[Install XCode via the App Store](https://apps.apple.com/us/app/xcode/id497799835?mt=12)
4923549318

4923649319
#### Install Additional Dependencies
4923749320

data-for-gpts/atomicdex-content.txt

+104-21
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,54 @@ The `FeeInfo` response object includes the following items for [withdraw (v2)](/
342342

343343
| Parameter | Type | Description |
344344
| ---------- | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
345-
| type | string | Type of transaction fee; possible values: `UtxoFixed`, `UtxoPerKbyte`, `EthGas` |
345+
| type | string | Type of transaction fee; possible values: `UtxoFixed`, `UtxoPerKbyte`, `EthGas`, `Qrc20Gas`, `CosmosGas` |
346346
| amount | string (numeric) | Fee amount in coin units, used only when type is `UtxoFixed` (fixed amount not depending on tx size) or `UtxoPerKbyte` (amount per Kbyte) |
347-
| gas\_price | string (numeric) | Used only when fee type is EthGas; sets the gas price in `gwei` units |
348-
| gas | number (integer) | Used only when fee type is EthGas; sets the gas limit for transaction |
347+
| gas\_price | string (numeric) | Used only when fee type is `Qrc20Gas` or `EthGas`; sets the gas price in `gwei` units. |
348+
| gas\_price | number (double) | Used only when fee type is `CosmosGas`; sets the gas price. |
349+
| gas | number (integer) | Used only when fee type is `EthGas`; sets the gas limit for transaction |
350+
| gas\_limit | number (integer) | Used only when fee type is `Qrc20Gas` or `CosmosGas`; sets the gas limit for transaction |
351+
352+
<CollapsibleSection expandedText="Hide Example" collapsedText="Show Example">
353+
#### Examples
354+
355+
```json
356+
{
357+
"type": "UtxoFixed",
358+
"amount": "0.0001"
359+
}
360+
```
361+
362+
```json
363+
{
364+
"type": "UtxoPerKbyte",
365+
"amount": "0.0001"
366+
}
367+
```
368+
369+
```json
370+
{
371+
"type": "EthGas",
372+
"gas_price": "10",
373+
"gas": 21000
374+
}
375+
```
376+
377+
```json
378+
{
379+
"type": "Qrc20Gas",
380+
"gas_price": "10",
381+
"gas_limit": 21000
382+
}
383+
```
384+
385+
```json
386+
{
387+
"type": "CosmosGas",
388+
"gas_price": 0.05,
389+
"gas_limit": 21000
390+
}
391+
```
392+
</CollapsibleSection>
349393

350394
### ExtendedFeeInfo
351395

@@ -16465,20 +16509,6 @@ The request was failed due to an AtomicDEX API internal error.
1646516509
"id": 0
1646616510
}
1646716511
```
16468-
16469-
#### Response (InvalidFeePolicy error - attempt to use EthGas for UTXO coin)
16470-
16471-
```json
16472-
{
16473-
"mmrpc": "2.0",
16474-
"error": "Invalid fee policy: Expected 'UtxoFixed' or 'UtxoPerKbyte' fee types, found EthGas",
16475-
"error_path": "utxo_common",
16476-
"error_trace": "utxo_common:1371]",
16477-
"error_type": "InvalidFeePolicy",
16478-
"error_data": "Expected 'UtxoFixed' or 'UtxoPerKbyte' fee types, found EthGas",
16479-
"id": 0
16480-
}
16481-
```
1648216512
</CollapsibleSection>
1648316513

1648416514
#### Withdraw BTC, KMD, and other BTC-based forks, 1 coin per Kbyte fee
@@ -16800,7 +16830,7 @@ The request was failed due to an AtomicDEX API internal error.
1680016830
```
1680116831
</CollapsibleSection>
1680216832

16803-
##### Withdraw Tendermint coins with a memo
16833+
##### Withdraw Tendermint coins with a memo and custom gas fee
1680416834

1680516835
<CodeGroup title="Withdraw" tag="POST" label="withdraw" mm2MethodDecorate="true">
1680616836
```json
@@ -16812,7 +16842,12 @@ The request was failed due to an AtomicDEX API internal error.
1681216842
"coin": "IRIS",
1681316843
"to": "iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k",
1681416844
"amount": 13,
16815-
"memo": "It was a bright cold day in April, and the clocks were striking thirteen."
16845+
"memo": "It was a bright cold day in April, and the clocks were striking thirteen.",
16846+
"fee": {
16847+
"type": "CosmosGas",
16848+
"gas_price": 0.05,
16849+
"gas_limit": 150000
16850+
}
1681616851
},
1681716852
"id": 0
1681816853
}
@@ -16851,6 +16886,50 @@ The request was failed due to an AtomicDEX API internal error.
1685116886

1685216887
You can see the memo is included on the [block explorer](https://irishub.iobscan.io/#/txs/E00982A2A8442D7140916A34E29E287A0B1CBB4B38940372D1966BA7ACDE5BD6)
1685316888
</CollapsibleSection>
16889+
16890+
### Error Responses
16891+
16892+
#### InvalidRequest: Unknown fee type
16893+
16894+
```
16895+
{
16896+
"mmrpc": "2.0",
16897+
"error": "Error parsing request: unknown variant `Tendermint`, expected one of `UtxoFixed`, `UtxoPerKbyte`, `EthGas`, `Qrc20Gas`, `CosmosGas`",
16898+
"error_path": "dispatcher",
16899+
"error_trace": "dispatcher:109]",
16900+
"error_type": "InvalidRequest",
16901+
"error_data": "unknown variant `Tendermint`, expected one of `UtxoFixed`, `UtxoPerKbyte`, `EthGas`, `Qrc20Gas`, `CosmosGas`",
16902+
"id": 0
16903+
}
16904+
```
16905+
16906+
#### InvalidRequest: wrong parameter type
16907+
16908+
```
16909+
{
16910+
"mmrpc": "2.0",
16911+
"error": "Error parsing request: invalid type: string \"0.1\", expected f64",
16912+
"error_path": "dispatcher",
16913+
"error_trace": "dispatcher:109]",
16914+
"error_type": "InvalidRequest",
16915+
"error_data": "invalid type: string \"0.1\", expected f64",
16916+
"id": 0
16917+
}
16918+
```
16919+
16920+
#### InvalidFeePolicy: attempt to use EthGas for UTXO coin
16921+
16922+
```json
16923+
{
16924+
"mmrpc": "2.0",
16925+
"error": "Invalid fee policy: Expected 'UtxoFixed' or 'UtxoPerKbyte' fee types, found EthGas",
16926+
"error_path": "utxo_common",
16927+
"error_trace": "utxo_common:1371]",
16928+
"error_type": "InvalidFeePolicy",
16929+
"error_data": "Expected 'UtxoFixed' or 'UtxoPerKbyte' fee types, found EthGas",
16930+
"id": 0
16931+
}
16932+
```
1685416933
export const title = "AtomicDEX Method: Get Current MTP";
1685516934
export const description = "The get_current_mtp method returns the Median Time Past (MTP) from electrum servers for UTXO coins.";
1685616935

@@ -22535,9 +22614,13 @@ Unpack and follow the instructions here: [instructions link](https://cmake.org/r
2253522614
sudo apt-get install build-essential
2253622615
```
2253722616

22538-
##### Windows: [Follow these instructions for MSVC](https://learn.microsoft.com/en-us/cpp/build/vscpp-step-0-installation?view=msvc-170\&viewFallbackFrom=vs-2017)
22617+
##### Windows:
22618+
22619+
[Follow these instructions for MSVC](https://learn.microsoft.com/en-us/cpp/build/vscpp-step-0-installation?view=msvc-170\&viewFallbackFrom=vs-2017)
22620+
22621+
##### MacOS:
2253922622

22540-
##### MacOS: [Install XCode via the App Store](https://apps.apple.com/us/app/xcode/id497799835?mt=12)
22623+
[Install XCode via the App Store](https://apps.apple.com/us/app/xcode/id497799835?mt=12)
2254122624

2254222625
#### Install Additional Dependencies
2254322626

0 commit comments

Comments
 (0)