Skip to content

Commit e76a84b

Browse files
committed
linting
1 parent 3a603c4 commit e76a84b

File tree

4 files changed

+11
-12
lines changed
  • src/pages/komodo-defi-framework/api

4 files changed

+11
-12
lines changed

src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx

+3-4
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The `InputTxns` object includes the following items:
5555
| tx\_hash | string | The transaction id of an unspent transaction from the same wallet output. |
5656
| index | integer | The \[output index([https://bitcoin.stackexchange.com/questions/100765/what-does-the-index-of-an-utxo-stand-for](https://bitcoin.stackexchange.com/questions/100765/what-does-the-index-of-an-utxo-stand-for))] of this unspent transaction output. |
5757
| script\_pub\_key | string | The [scriptpubkey](https://learnmeabitcoin.com/technical/scriptPubKey) of this unspent transaction output. |
58-
| amount | float | The value of this unspent transaction output. |
58+
| amount | decimal | The value of this unspent transaction output. |
5959

6060
<CollapsibleSection expandedText="Hide Example" collapsedText="Show Example">
6161
```json
@@ -74,13 +74,12 @@ The `PayForGas` object includes the following items:
7474

7575
| Parameter | Type | Description |
7676
| ---------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
77-
| tx\_type | string | ETH/EVM coins and tokens only. Options are `Legacy` or `Eip1559`. The type of transaction values being configured. |
78-
| gas\_price | decimal | Only used if tx\_type is `Legacy`. Values are in Gwei. The maximium price per gas unit the user is willing to pay for the transaction. |
77+
| tx\_type | string | ETH/EVM coins and tokens only. Options are `Legacy` or `Eip1559`. The type of transaction values being configured. |
78+
| gas\_price | decimal | Only used if tx\_type is `Legacy`. Values are in Gwei. The maximium price per gas unit the user is willing to pay for the transaction. |
7979
| max\_fee\_per\_gas | decimal | Only used if tx\_type is `Eip1559`. Values are in Gwei. The maximum amount to pay per unit of gas to get your transaction included in a block. |
8080
| max\_priority\_fee\_per\_gas | decimal | Only used if tx\_type is `Eip1559`. Values are in Gwei. This is paid directly to the miner, and can be set by the user to attract minimal delay in transaction confirmation. |
8181
| min\_wait\_time | integer | Optional, only used if tx\_type is `Eip1559`. Estimated minimum transaction wait time in mempool (in ms) for this priority level. |
8282
| max\_wait\_time | integer | Optional, only used if tx\_type is `Eip1559`. Estimated maximum transaction wait time in mempool (in ms) for this priority level. |
83-
8483

8584
<Note>
8685
[Eip1559](https://www.coinbase.com/en-au/blog/the-technical-benefits-of-eip-1559) allows users to save on gas fees. To use this feature for a coin/token, its entry in your `coins` file must include fields for `chain_id` and `max_eth_tx_type`. To allow eip-1559 transactions, `max_eth_tx_type` should be set to `2`. To find the `chain_id` for an \[EVM network([https://blog.thirdweb.com/evm-compatible-blockchains-and-ethereum-virtual-machine/](https://blog.thirdweb.com/evm-compatible-blockchains-and-ethereum-virtual-machine/))], refer to [chainlist.org](https://chainlist.org). There is also a new `gas_fee_estimator` parameter in the coins file, which can be set to `provider` or `simple`.

src/pages/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/index.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export const description =
66

77
The `get_swap_transaction_fee_policy` method allows you to get the current gas fees policy used when estimating swap transaction fees for supported for ETH/EVM coins/tokens.
88

9-
| parameter | Type | Description |
10-
| --------- | ------ | ---------------------------------------------------------------------- |
9+
| parameter | Type | Description |
10+
| --------- | ------ | ---------------------------------------------------------------------------------------- |
1111
| coin | string | Ticker of the supported ETH/EVM coin/asset for which we want to view the fee policy for. |
1212

1313
## Request

src/pages/komodo-defi-framework/api/v20/fee_management/set_swap_transaction_fee_policy/index.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ export const description =
66

77
The `set_swap_transaction_fee_policy` method allows you to set the gas fee policy used by supported ETH/EVM coins or tokens when estimating swap transaction fees.
88

9-
| parameter | Type | Description |
10-
| --------------------- | ------ | --------------------------------------------------------------------- |
9+
| parameter | Type | Description |
10+
| --------------------- | ------ | ------------------------------------------------------------------------------------------- |
1111
| coin | string | Ticker of the supported ETH/EVM coin or tokens for which we want to set the fee policy for. |
12-
| swap\_tx\_fee\_policy | string | Possible values: `Low`, `Medium`, `High`, `Internal`. |
12+
| swap\_tx\_fee\_policy | string | Possible values: `Low`, `Medium`, `High`, `Internal`. |
1313

1414
## Request
1515

src/pages/komodo-defi-framework/api/v20/sign_raw_transaction/index.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ The transaction can then be broadcasted to the network using the [`send_raw_tran
123123
"value": "0.85",
124124
"gas_limit": "21000",
125125
"pay_for_gas": {
126-
"tx_type": "Eip1559",
127-
"max_fee_per_gas": "1234.567",
128-
"max_priority_fee_per_gas": "1.2"
126+
"tx_type": "Eip1559",
127+
"max_fee_per_gas": "1234.567",
128+
"max_priority_fee_per_gas": "1.2"
129129
}
130130
}
131131
}

0 commit comments

Comments
 (0)