Skip to content

Commit be03489

Browse files
committed
table formatting
1 parent 12d5db5 commit be03489

File tree

8 files changed

+24
-26
lines changed

8 files changed

+24
-26
lines changed

filepathSlugs.json

+1
Original file line numberDiff line numberDiff line change
@@ -3817,6 +3817,7 @@
38173817
"example-using-gas-api",
38183818
"example-wss-with-certificates",
38193819
"example-with-wallet-name-and-wallet-password",
3820+
"example-with-1inch-api",
38203821
"example-for-hd-wallets",
38213822
"coins-file-configuration",
38223823
"optional-environment-variables",

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

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

77
The `approve_token` method grants permission for a given smart contract to spend a defined amount of your tokens.
88

9-
Refer to the [1inch Classic Swap documentation](https://portal.1inch.dev/documentation/apis/swap/classic-swap/quick-start) for more information.
9+
Refer to the [1inch Classic Swap documentation](https://portal.1inch.dev/documentation/apis/swap/classic-swap/quick-start) for more information.
1010

1111
## Arguments
1212

13-
| Structure | Type | Description |
14-
| --------- | ------ | -------------------------------- |
15-
| coin | string | Token ticker |
16-
| spender | string | Address of smart contract to approve for spending |
17-
| amount | float | Approved amount to spend (in coins units) |
13+
| Structure | Type | Description |
14+
| --------- | ------ | ------------------------------------------------- |
15+
| coin | string | Token ticker |
16+
| spender | string | Address of smart contract to approve for spending |
17+
| amount | float | Approved amount to spend (in coins units) |
1818

1919
## Response
2020

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

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

77
The `get_token_allowance` method returns token allowance for address.
88

9-
Refer to the [1inch Classic Swap documentation](https://portal.1inch.dev/documentation/apis/swap/classic-swap/quick-start) for more information.
9+
Refer to the [1inch Classic Swap documentation](https://portal.1inch.dev/documentation/apis/swap/classic-swap/quick-start) for more information.
1010

1111
## Arguments
1212

13-
| Structure | Type | Description |
14-
| --------- | ------ | ------------------------------ |
15-
| coin | string | Token ticker |
13+
| Structure | Type | Description |
14+
| --------- | ------ | ----------------------------------------------------------------------------- |
15+
| coin | string | Token ticker |
1616
| spender | string | Smart contract address to query spendable coins amount granted prior approval |
1717

1818
## Response
1919

20-
| Structure | Type | Description |
21-
| --------- | ----- | -------------------------- |
20+
| Structure | Type | Description |
21+
| --------- | ----- | ------------------------------------------------------------------------------ |
2222
| result | float | Amount of coins approved for spending via the smart contract (in coins units). |
2323

2424
#### 📌 Examples

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ The `1inch_v6_0_classic_swap_create` method returns transaction data for classic
1111
You'll also need to set your 1inch API key as an environment variable called `ONE_INCH_API_TEST_AUTH`, e.g. `ONE_INCH_API_TEST_AUTH="Bearer YourAPIkey"`.
1212
</Note>
1313

14-
Refer to the [1inch Classic Swap documentation](https://portal.1inch.dev/documentation/apis/swap/classic-swap/quick-start) for more information.
15-
14+
Refer to the [1inch Classic Swap documentation](https://portal.1inch.dev/documentation/apis/swap/classic-swap/quick-start) for more information.
1615

1716
## Arguments
1817

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

+5-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The `1inch_v6_0_classic_swap_liquidity_sources` method returns liquidity sources
1111
You'll also need to set your 1inch API key as an environment variable called `ONE_INCH_API_TEST_AUTH`, e.g. `ONE_INCH_API_TEST_AUTH="Bearer YourAPIkey"`.
1212
</Note>
1313

14-
Refer to the [1inch Classic Swap documentation](https://portal.1inch.dev/documentation/apis/swap/classic-swap/quick-start) for more information.
14+
Refer to the [1inch Classic Swap documentation](https://portal.1inch.dev/documentation/apis/swap/classic-swap/quick-start) for more information.
1515

1616
## Arguments
1717

@@ -47,9 +47,9 @@ Refer to the [1inch Classic Swap documentation](https://portal.1inch.dev/documen
4747
#### Response
4848

4949
```json
50-
{
51-
"mmrpc": "2.0",
52-
"result": {
50+
{
51+
"mmrpc": "2.0",
52+
"result": {
5353
"protocols": [
5454
{
5555
"id": "UNISWAP_V1",
@@ -71,5 +71,6 @@ Refer to the [1inch Classic Swap documentation](https://portal.1inch.dev/documen
7171
}
7272
]
7373
}
74+
}
7475
```
7576
</CollapsibleSection>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The `1inch_v6_0_classic_swap_quote` method returns best quote from 1inch classic
1111
You'll also need to set your 1inch API key as an environment variable called `ONE_INCH_API_TEST_AUTH`, e.g. `ONE_INCH_API_TEST_AUTH="Bearer YourAPIkey"`.
1212
</Note>
1313

14-
Refer to the [1inch Classic Swap documentation](https://portal.1inch.dev/documentation/apis/swap/classic-swap/quick-start) for more information.
14+
Refer to the [1inch Classic Swap documentation](https://portal.1inch.dev/documentation/apis/swap/classic-swap/quick-start) for more information.
1515

1616
## Arguments
1717

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The `1inch_v6_0_classic_swap_tokens` method returns tokens for classic swaps fro
1111
You'll also need to set your 1inch API key as an environment variable called `ONE_INCH_API_TEST_AUTH`, e.g. `ONE_INCH_API_TEST_AUTH="Bearer YourAPIkey"`.
1212
</Note>
1313

14-
Refer to the [1inch Classic Swap documentation](https://portal.1inch.dev/documentation/apis/swap/classic-swap/quick-start) for more information.
14+
Refer to the [1inch Classic Swap documentation](https://portal.1inch.dev/documentation/apis/swap/classic-swap/quick-start) for more information.
1515

1616
## Arguments
1717

src/pages/komodo-defi-framework/setup/configure-mm2-json/index.mdx

+3-6
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ When running the Komodo DeFi API via commandline with the `mm2` binary, some bas
3737
| passphrase | string | Optional. Your passphrase (mnemonic phrase) in plain text. This is the source of each of your coins private keys. [**KEEP IT SAFE!**](https://www.youtube.com/watch?v=WFpxVbTqhB8). For more secure, encrypted storage in a local database, use the `wallet_name` and `wallet_password` parameters below. |
3838
| wallet\_name | string | Optional. An arbitrary name for the wallet. If no `passphrase` is provided, and the wallet has been used already, the `wallet_password` will be used to decrypt the local stored mnemonic phrase. If it has not been used before, a mnemonic will be generated and encrypted for local storage. The mnemonic phrase can be seen in plain text using the (/komodo-defi-framework/api/v20/get\_mnemonic)\[] method. |
3939
| wallet\_password | string | Optional, required if using `wallet_name`. The password use to encrypt your wallet's mnemonic phrase for local storage, and decrypt the wallet when logging in. |
40-
| 1inch\_api | string | Optional, required if using [1inch integration methods](/komodo-defi-framework/api/v20-dev/one_inch_v6_0_classic_swap_create/). URL for 1inch API, e.g. "https://api.1inch.dev" |
41-
42-
40+
| 1inch\_api | string | Optional, required if using [1inch integration methods](/komodo-defi-framework/api/v20-dev/one_inch_v6_0_classic_swap_create/). URL for 1inch API, e.g. "[https://api.1inch.dev](https://api.1inch.dev)" |
4341

4442
#### Example (allowing weak password):
4543

@@ -120,11 +118,11 @@ When running the Komodo DeFi API via commandline with the `mm2` binary, some bas
120118
"1inch_api": "https://api.1inch.dev"
121119
}
122120
```
121+
123122
<Note>
124123
To use methods which interface with the 1inch API, you'll also need to set your 1inch API key as an environment variable called `ONE_INCH_API_TEST_AUTH`, e.g. `ONE_INCH_API_TEST_AUTH="Bearer YourAPIkey"`.
125124
</Note>
126125

127-
128126
#### Example for HD Wallets:
129127

130128
If you are using HD wallets, you will need to set `enable_hd` to `true` in to your [MM2.json file](/komodo-defi-framework/setup/configure-mm2-json/).
@@ -166,8 +164,7 @@ The structure for adding additional coins can vary, please refer to the [listing
166164
| MM\_CERT\_PATH | string | Full path to TLS/SSL certificate file. |
167165
| MM\_CERT\_KEY\_PATH | string | Full path to TLS/SSL certificate key file. |
168166
| RUST\_LOG | string | Global default log level is `info`. To modify the log level for specific module (e.g. for debugging `atomicdex_gossipsub::behaviour`) and keep the default at `info`, use the format `"info,atomicdex_gossipsub::behaviour=debug"` |
169-
| ONE\_INCH\_API\_TEST\_AUTH | string | 1inch API key to authenticate for using [1inch integration methods](/komodo-defi-framework/api/v20-dev/one_inch_v6_0_classic_swap_create/). |
170-
167+
| ONE\_INCH\_API\_TEST\_AUTH | string | 1inch API key to authenticate for using [1inch integration methods](/komodo-defi-framework/api/v20-dev/one_inch_v6_0_classic_swap_create/). |
171168

172169
### What now?
173170

0 commit comments

Comments
 (0)